This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See crosstool-NG for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, I created my toolchain by using crosstool-ng 1.17 on Fedora 16 x86_64 host and the target arch. is ARM. I wanna compile the kernel for Raspberry Pi so I download rpi-3.6.y latest kernel repo and execute following command then encounter those errors. [huli@localhost rpi-3.6.y]$ make CC=/home/huli/Projects/arm-devel/bin/arm-unknown-linux-gnueabi-gcc ARCH=arm V=1 make -f /home/huli/Projects/rpi-3.6.y/Makefile silentoldconfig make -f scripts/Makefile.build obj=scripts/basic rm -f .tmp_quiet_recordmcount mkdir -p include/linux include/config make -f scripts/Makefile.build obj=scripts/kconfig silentoldconfig mkdir -p include/generated scripts/kconfig/conf --silentoldconfig Kconfig rm -f include/config/kernel.release echo "3.6.11$(/bin/sh /home/huli/Projects/rpi-3.6.y/scripts/setlocalversion /home/huli/Projects/rpi-3.6.y)" > include/config/kernel.release make -f /home/huli/Projects/rpi-3.6.y/scripts/Makefile.asm-generic \ obj=arch/arm/include/generated/asm echo "#include <asm-generic/auxvec.h>" >arch/arm/include/generated/asm/auxvec.h echo "#include <asm-generic/bitsperlong.h>" >arch/arm/include/generated/asm/bitsperlong.h echo "#include <asm-generic/cputime.h>" >arch/arm/include/generated/asm/cputime.h echo "#include <asm-generic/emergency-restart.h>" >arch/arm/include/generated/asm/emergency-restart.h echo "#include <asm-generic/errno.h>" >arch/arm/include/generated/asm/errno.h echo "#include <asm-generic/ioctl.h>" >arch/arm/include/generated/asm/ioctl.h echo "#include <asm-generic/irq_regs.h>" >arch/arm/include/generated/asm/irq_regs.h echo "#include <asm-generic/kdebug.h>" >arch/arm/include/generated/asm/kdebug.h echo "#include <asm-generic/local.h>" >arch/arm/include/generated/asm/local.h echo "#include <asm-generic/local64.h>" >arch/arm/include/generated/asm/local64.h echo "#include <asm-generic/percpu.h>" >arch/arm/include/generated/asm/percpu.h echo "#include <asm-generic/poll.h>" >arch/arm/include/generated/asm/poll.h echo "#include <asm-generic/resource.h>" >arch/arm/include/generated/asm/resource.h echo "#include <asm-generic/sections.h>" >arch/arm/include/generated/asm/sections.h echo "#include <asm-generic/siginfo.h>" >arch/arm/include/generated/asm/siginfo.h echo "#include <asm-generic/sizes.h>" >arch/arm/include/generated/asm/sizes.h set -e; : ' CHK include/linux/version.h'; mkdir -p include/linux/; (echo \#define LINUX_VERSION_CODE 198155; echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))';) < /home/huli/Projects/rpi-3.6.y/Makefile > include/linux/version.h.tmp; if [ -r include/linux/version.h ] && cmp -s include/linux/version.h include/linux/version.h.tmp; then rm -f include/linux/version.h.tmp; else : ' UPD include/linux/version.h'; mv -f include/linux/version.h.tmp include/linux/version.h; fi set -e; : ' CHK include/generated/utsrelease.h'; mkdir -p include/generated/; if [ `echo -n "3.6.11+" | wc -c ` -gt 64 ]; then echo '"3.6.11+" exceeds 64 characters' >&2; exit 1; fi; (echo \#define UTS_RELEASE \"3.6.11+\";) < include/config/kernel.release > include/generated/utsrelease.h.tmp; if [ -r include/generated/utsrelease.h ] && cmp -s include/generated/utsrelease.h include/generated/utsrelease.h.tmp; then rm -f include/generated/utsrelease.h.tmp; else : ' UPD include/generated/utsrelease.h'; mv -f include/generated/utsrelease.h.tmp include/generated/utsrelease.h; fi mkdir -p .tmp_versions ; rm -f .tmp_versions/* make -f scripts/Makefile.build obj=scripts/basic (cat /dev/null; ) > scripts/basic/modules.order rm -f .tmp_quiet_recordmcount make -f scripts/Makefile.build obj=arch/arm/tools include/generated/mach-types.h Generating include/generated/mach-types.h awk -f arch/arm/tools/gen-mach-types arch/arm/tools/mach-types > include/generated/mach-types.h || { rm -f include/generated/mach-types.h; /bin/false; } make -f scripts/Makefile.build obj=. (cat /dev/null; ) > modules.order mkdir -p kernel/ /home/huli/Projects/arm-devel/bin/arm-unknown-linux-gnueabi-gcc -Wp,-MD,kernel/.bounds.s.d -nostdinc -isystem /home/huli/Projects/arm-devel/lib/gcc/arm-unknown-linux-gnueabi/4.7.2/include -I/home/huli/Projects/rpi-3.6.y/arch/arm/include -Iarch/arm/include/generated -Iinclude -include /home/huli/Projects/rpi-3.6.y/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-versatile/include -Iarch/arm/plat-versatile/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -marm -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=apcs-gnu -mno-thumb-interwork -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(bounds)" -D"KBUILD_MODNAME=KBUILD_STR(bounds)" -fverbose-asm -S -o kernel/bounds.s kernel/bounds.c In file included from include/linux/irqflags.h:15:0, from /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/bitops.h:27, from include/linux/bitops.h:22, from include/linux/kernel.h:19, from include/asm-generic/bug.h:13, from /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/bug.h:59, from include/linux/bug.h:4, from include/linux/page-flags.h:9, from kernel/bounds.c:9: /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/irqflags.h:11:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] In file included from include/linux/bitops.h:22:0, from include/linux/kernel.h:19, from include/asm-generic/bug.h:13, from /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/bug.h:59, from include/linux/bug.h:4, from include/linux/page-flags.h:9, from kernel/bounds.c:9: /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/bitops.h:217:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] In file included from include/linux/swab.h:6:0, from include/linux/byteorder/little_endian.h:12, from /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/byteorder.h:21, from include/asm-generic/bitops/le.h:5, from /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/bitops.h:308, from include/linux/bitops.h:22, from include/linux/kernel.h:19, from include/asm-generic/bug.h:13, from /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/bug.h:59, from include/linux/bug.h:4, from include/linux/page-flags.h:9, from kernel/bounds.c:9: /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/swab.h:26:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/swab.h:46:29: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] mkdir -p include/generated/ (set -e; echo "#ifndef __LINUX_BOUNDS_H__"; echo "#define __LINUX_BOUNDS_H__"; echo "/*"; echo " * DO NOT MODIFY."; echo " *"; echo " * This file was generated by Kbuild"; echo " *"; echo " */"; echo ""; sed -ne "/^->/{s:->#\(.*\):/* \1 */:; s:^->\([^ ]*\) [\$#]*\([-0-9]*\) \(.*\):#define \1 \2 /* \3 */:; s:^->\([^ ]*\) [\$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}" kernel/bounds.s; echo ""; echo "#endif" ) > include/generated/bounds.h mkdir -p arch/arm/kernel/ /home/huli/Projects/arm-devel/bin/arm-unknown-linux-gnueabi-gcc -Wp,-MD,arch/arm/kernel/.asm-offsets.s.d -nostdinc -isystem /home/huli/Projects/arm-devel/lib/gcc/arm-unknown-linux-gnueabi/4.7.2/include -I/home/huli/Projects/rpi-3.6.y/arch/arm/include -Iarch/arm/include/generated -Iinclude -include /home/huli/Projects/rpi-3.6.y/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-versatile/include -Iarch/arm/plat-versatile/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -marm -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=apcs-gnu -mno-thumb-interwork -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(asm_offsets)" -D"KBUILD_MODNAME=KBUILD_STR(asm_offsets)" -fverbose-asm -S -o arch/arm/kernel/asm-offsets.s arch/arm/kernel/asm-offsets.c In file included from include/linux/irqflags.h:15:0, from /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/bitops.h:27, from include/linux/bitops.h:22, from include/linux/kernel.h:19, from include/linux/sched.h:55, from arch/arm/kernel/asm-offsets.c:13: /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/irqflags.h:11:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] In file included from include/linux/bitops.h:22:0, from include/linux/kernel.h:19, from include/linux/sched.h:55, from arch/arm/kernel/asm-offsets.c:13: /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/bitops.h:217:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] In file included from include/linux/swab.h:6:0, from include/linux/byteorder/little_endian.h:12, from /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/byteorder.h:21, from include/asm-generic/bitops/le.h:5, from /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/bitops.h:308, from include/linux/bitops.h:22, from include/linux/kernel.h:19, from include/linux/sched.h:55, from arch/arm/kernel/asm-offsets.c:13: /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/swab.h:26:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/swab.h:46:29: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] In file included from /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/thread_info.h:16:0, from include/linux/thread_info.h:54, from include/linux/preempt.h:9, from include/linux/spinlock.h:50, from include/linux/seqlock.h:29, from include/linux/time.h:8, from include/linux/timex.h:56, from include/linux/sched.h:57, from arch/arm/kernel/asm-offsets.c:13: /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/fpstate.h:32:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] In file included from /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/domain.h:14:0, from /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/thread_info.h:28, from include/linux/thread_info.h:54, from include/linux/preempt.h:9, from include/linux/spinlock.h:50, from include/linux/seqlock.h:29, from include/linux/time.h:8, from include/linux/timex.h:56, from include/linux/sched.h:57, from arch/arm/kernel/asm-offsets.c:13: /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/barrier.h:9:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/barrier.h:10:3: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/barrier.h:16:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/barrier.h:20:35: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] In file included from include/linux/spinlock_up.h:8:0, from include/linux/spinlock.h:89, from include/linux/seqlock.h:29, from include/linux/time.h:8, from include/linux/timex.h:56, from include/linux/sched.h:57, from arch/arm/kernel/asm-offsets.c:13: /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/processor.h:82:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/processor.h:102:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] In file included from /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/atomic.h:18:0, from include/linux/atomic.h:4, from include/linux/spinlock.h:384, from include/linux/seqlock.h:29, from include/linux/time.h:8, from include/linux/timex.h:56, from include/linux/sched.h:57, from arch/arm/kernel/asm-offsets.c:13: /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/cmpxchg.h: In function '__xchg': /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/cmpxchg.h:33:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/cmpxchg.h:40:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] In file included from /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/atomic.h:18:0, from include/linux/atomic.h:4, from include/linux/spinlock.h:384, from include/linux/seqlock.h:29, from include/linux/time.h:8, from include/linux/timex.h:56, from include/linux/sched.h:57, from arch/arm/kernel/asm-offsets.c:13: /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/cmpxchg.h: At top level: /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/cmpxchg.h:108:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] In file included from include/linux/atomic.h:4:0, from include/linux/spinlock.h:384, from include/linux/seqlock.h:29, from include/linux/time.h:8, from include/linux/timex.h:56, from include/linux/sched.h:57, from arch/arm/kernel/asm-offsets.c:13: /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/atomic.h:32:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] In file included from include/linux/time.h:9:0, from include/linux/timex.h:56, from include/linux/sched.h:57, from arch/arm/kernel/asm-offsets.c:13: include/linux/math64.h: In function 'div_u64_rem': include/linux/math64.h:55:15: error: '__LINUX_ARM_ARCH__' undeclared (first use in this function) include/linux/math64.h:55:15: note: each undeclared identifier is reported only once for each function it appears in In file included from /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/cacheflush.h:15:0, from arch/arm/kernel/asm-offsets.c:16: /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/glue-cache.h: At top level: /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/glue-cache.h:129:2: error: #error Unknown cache maintenance model In file included from /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/cacheflush.h:17:0, from arch/arm/kernel/asm-offsets.c:16: /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/cachetype.h:28:5: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/cachetype.h:33:7: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] In file included from arch/arm/kernel/asm-offsets.c:16:0: /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/cacheflush.h:194:7: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/cacheflush.h:196:7: warning: "__LINUX_ARM_ARCH__" is not defined [-Wundef] In file included from arch/arm/kernel/asm-offsets.c:17:0: /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/glue-df.h:99:2: error: #error Unknown data abort handler type In file included from arch/arm/kernel/asm-offsets.c:18:0: /home/huli/Projects/rpi-3.6.y/arch/arm/include/asm/glue-pf.h:54:2: error: #error Unknown prefetch abort handler type make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1 make: *** [prepare0] Error 2 Can anyone tell me how to fix those issues? Is there anything wrong w/ my toolchain? Thanks. Eric -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |