On Thu, Jul 07, 2011 at 11:34:59AM +0800, mins.lin@globalunichip.com wrote:
Hi, I used Linaro cross-toolchain version 4.5 (gcc-4.5-arm-linux-gnueabi) to compile linux-linaro-11.05 for beagle board, but got the following error messages:
AS arch/arm/boot/compressed/head.o arch/arm/boot/compressed/head.S: Assembler messages: arch/arm/boot/compressed/head.S:127: Error: selected processor does not support requested special purpose register -- `mrs r2,cpsr' arch/arm/boot/compressed/head.S:134: Error: selected processor does not support requested special purpose register -- `mrs r2,cpsr' arch/arm/boot/compressed/head.S:136: Error: selected processor does not support requested special purpose register -- `msr cpsr_c,r2' make[2]: *** [arch/arm/boot/compressed/head.o] Error 1 make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2 make: *** [uImage] Error 2
The .config file I used for kernel build is
"config-2.6.38-1003-linaro-omap" which is from hwpack_linaro-omap3-x11-base_20110526-5_armel_supported.tar.gz My host development platform is 64-bit Ubuntu 10.04.2 LTS (Linux ubuntu 2.6.32-32-generic #62-Ubuntu SMP Wed Apr 20 21:52:38 UTC 2011 x86_64 GNU/Linux).
Is this a known bug, or did I miss anything else ?
I don't think this normally happens. Using the same source and config, it doesn't seem to happen for me. It looks like your compiler may be getting invoked with the wrong arguments for some reason.
Can you attach the contents of .config after the build?
Can you also attach the output from:
make V=1 arch/arm/boot/compressed/head.o
This may give some clues about what's going wrong.
Cheers ---Dave