您的位置:首页 > 运维架构 > Linux

编译linux2.6.27出错 invalid option `abi=aapcs-linux' - 博文 - 社区 - ChinaAET电子技术应用网

2011-06-24 15:34 633 查看

编译内核出错:invalid option `abi=aapcs-linux'

使用arm-linux-gcc 3.4.1编译器,编译出错:
gouwa@gouwa:~/project/kernel/linux-2.6.27$ arm-linux-gcc -v
Reading specs from /usr/local/arm/3.4.1/bin/../lib/gcc/arm-linux/3.4.1/specs
Configured with: /opt/crosstool/crosstool-0.28/build/arm-linux/gcc-3.4.1-glibc-2.3.2/gcc-3.4.1/configure --target=arm-linux --host=i686-host_pc-linux-gnu --prefix=/opt/crosstool/arm-linux/gcc-3.4.1-glibc-2.3.2 --with-float=soft --with-headers=/opt/crosstool/arm-linux/gcc-3.4.1-glibc-2.3.2/arm-linux/include --with-local-prefix=/opt/crosstool/arm-linux/gcc-3.4.1-glibc-2.3.2/arm-linux --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long
Thread model: posix
gcc version 3.4.1

错误信息如下:
gouwa@gouwa:~/project/kernel/linux-2.6.27$ make
scripts/kconfig/conf -s arch/arm/Kconfig
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
cc1: error: invalid option `abi=aapcs-linux'
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2

错误分析:
arm-linux-gcc 3.4.1编译器可能是用OABI的,而配置内核时又选择了使用EABI的,修改内核配置:
Kernel Features ---->Use the ARM EABIto compile the kernel
不选EABI,编译器再编译,通过。

引文来源 编译linux2.6.27出错 invalid option `abi=aapcs-linux' - 博文 - 社区 - ChinaAET电子技术应用网
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: