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