gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’


s@s:~/桌面/code/linux-4.0$ make dtbs
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: “include/generated/mach-types.h”已是最新。
CC kernel/bounds.s
gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-mno-thumb-interwork’
gcc: error: unrecognized command line option ‘-mfpu=vfp’
make[1]: *** [Kbuild:43:kernel/bounds.s] 错误 1
make: *** [Makefile:990:prepare0] 错误 2

 

查看顶级的Makefile

将 CROSS_COMPILE 参数修改为工具链的路径 比如 /opt/gcc-5.4/bin/arm-linux-gnueabi-


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM