我正在尝试使用开源 arm-none-eabi- 编译器编译从他们的网站获取的 android 内核。但我不断收到此错误
as: unrecognized option '-EL'
即使我已经设置了交叉编译选项,我也不明白为什么它使用as而不是arm-none-eabi-as。话虽如此
我在 x86_64 ubuntu 12.04.4 上运行它。奇怪的是,当我还在 12.04.3 时,它没有任何错误。我目前的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