Cross-Compiling mn10300: Assembler messages: junk at end of line: 0
Hi,
defconfig build:
+ make ARCH=mn10300 HOSTCC=gcc-4.0 CROSS_COMPILE=mn10300-elf- CROSS32_COMPILE= O=../2.6.25-rc1-mn10300/ Using /usr/src/xtest/linux-2.6 as source for kernel
GEN /usr/src/xtest/2.6.25-rc1-mn10300/Makefile CHK include/linux/version.h CHK include/linux/utsrelease.h CALL /usr/src/xtest/linux-2.6/scripts/checksyscalls.sh CHK include/linux/compile.h AS arch/mn10300/kernel/kernel_execve.o
/usr/src/xtest/linux-2.6/arch/mn10300/kernel/kernel_execve.S: Assembler messages:/usr/src/xtest/linux-2.6/arch/mn10300/kernel/kernel_execve.S:33: Error: junk at end of line: 0' /usr/src/xtest/linux-2.6/arch/mn10300/kernel/kernel_execve.S:34: Error: junk at end of line, first unrecognized character is m' make[2]: *** [arch/mn10300/kernel/kernel_execve.o] Error 1
make[1]: *** [arch/mn10300/kernel] Error 2
make: *** [sub-make] Error 2
Expected? Toolchain problem? Tools from ftp.redhat.com, Version 3.4-am33-04r2-5. Host is x86.
Thanks,
Jan Dittmer
Quoted 2 lines · Jan Dittmer
+ make ARCH=mn10300 HOSTCC=gcc-4.0 CROSS_COMPILE=mn10300-elf- CROSS32_COMPILE= O=../2.6.25-rc1-mn10300/
Hmmm... There seems to be some confusion somewhere, probably because the documentation there doesn't say which compiler you should use for what. Can you try this toolchain instead:
i686-pc-linux-gnulibc2.3-x-am33_2.0-linux-gnu.tar.bz2
rather than the:
i686-pc-linux-gnulibc2.3-x-mn10300-elf.tar.bz2
in the location:
ftp://ftp.redhat.com/pub/redhat/gnupro/AM33/am33-04r2-5/tools/
Note that the MN10300 arch needs some patches to get it to compile due to some changes that Linus merged that weren't in the -mm tree.
David