2.6.12: arm compilation problems
Hi!
I get this, trying to cross-compile 2.6.12 for arm. I tried different configs... What am I doing wrong? [2.6.11 compiles ok, and even works on my zaurus after some patches. I tried unpatched 2.6.12, too.]
GEN .version CHK include/linux/compile.h UPD include/linux/compile.h CC init/version.o LD init/built-in.o LD .tmp_vmlinux1
/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-ld:arch/arm/kernel/vmlinux.lds:648:
syntax error
make: *** [.tmp_vmlinux1] Error 1
207.04user 14.19system 237.78 (3m57.784s) elapsed 93.04%CPU pavel@amd:/data/l/linux-delme$
Pavel
Signature · 1 line
teflon -- maybe it is a trademark, but it should not be.
Quoted 4 lines · Pavel Machek
I get this, trying to cross-compile 2.6.12 for arm. I tried different configs... What am I doing wrong? [2.6.11 compiles ok, and even works on my zaurus after some patches. I tried unpatched 2.6.12, too.]
Quoted 8 lines
GEN .version CHK include/linux/compile.h UPD include/linux/compile.h CC init/version.o LD init/built-in.o LD .tmp_vmlinux1/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-ld:arch/arm/kernel/vmlinux.lds:648:
syntax error
Your binutils is probably too old and therefore buggy. 2.16 seems reasonable, others prefer the known-buggy in other respects 2.15 version (iirc assembler doesn't complain about undefined constant symbols, doesn't correctly hide $a, $d, $t symbols.)
The exact problem is the ASSERT() macro in the linker script - it appears some versions of binutils are documented to accept this but unfortunately it incorrectly errors out with a ficticious syntax error.
Signature · 3 lines
Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 Serial core