我正在尝试使用开源arm-none-eabi-编译器编译从他们的网站获取的android内核。但我一直收到这个错误
as: unrecognized option '-EL'
即使我已经设置了交叉编译选项,我也不明白为什么它使用作为而不是 arm-none-eabi-as 。那就是说
我在x86_64 ubuntu 12.04.4上运行它。 奇怪的是,当我还在12.04.3时它没有任何错误。 我当前的 as 是2.22版本。 endianness [EL | EB]选项仍存在于其文档中。 1)即使使用作为,为什么-EL无法识别 2)为什么要使用GNU汇编程序..
有人可以帮我解决这个问题吗。
和 这是我尝试编译goldfish-2.6.29内核时的输出
....
....
make -f scripts/Makefile.build obj=. missing-syscalls
/bin/bash scripts/checksyscalls.sh arm-none-eabi-gcc -Wp,-MD,./.missing-syscalls.d -nostdinc -isystem /home/naruto/Android/gcc-arm-none-eabi-4_6-2012q3/bin/../lib/gcc/arm-none-eabi/4.6.2/include -Iinclude -I/home/naruto/Android/goldfish_plain/arch/arm/include -include include/linux/autoconf.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-goldfish/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=7 -march=armv5t -Wa,-march=armv7-a -msoft-float -Uarm -fno-omit-frame-pointer -fno-optimize-sibling-calls -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(missing_syscalls)" -D"KBUILD_MODNAME=KBUILD_STR(missing_syscalls)"
:1097:2: warning: #warning syscall fadvise64 not implemented [-Wcpp]
:1265:2: warning: #warning syscall migrate_pages not implemented [-Wcpp]
:1321:2: warning: #warning syscall pselect6 not implemented [-Wcpp]
:1325:2: warning: #warning syscall ppoll not implemented [-Wcpp]
:1365:2: warning: #warning syscall epoll_pwait not implemented [-Wcpp]
make -f scripts/Makefile.build obj=scripts
make -f scripts/Makefile.build obj=scripts/mod
(cat /dev/null; ) > scripts/mod/modules.order
arm-none-eabi-gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -isystem /home/naruto/Android/gcc-arm-none-eabi-4_6-2012q3/bin/../lib/gcc/arm-none-eabi/4.6.2/include -Iinclude -I/home/naruto/Android/goldfish_plain/arch/arm/include -include include/linux/autoconf.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-goldfish/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=7 -march=armv5t -Wa,-march=armv7-a -msoft-float -Uarm -fno-omit-frame-pointer -fno-optimize-sibling-calls -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(empty)" -D"KBUILD_MODNAME=KBUILD_STR(empty)" -c -o scripts/mod/empty.o scripts/mod/empty.c
as: unrecognized option '-EL'
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2