gcc:错误:无法识别的命令行选项

问题描述 投票:1回答:1

我正在尝试创建u-boot映像文件。但是我有什么错误吗?

gcc version: 7.3.0

make PATH=/opt/CodeSourcery/Sourcery_G++_Lite/arm-2011.03-41-arm-none-linux-gnueabi:$PATH
export CROSS_COMPILE=arm-linux-gnueabihf-(or arm-none-linux-gnueabi)
make ARCH=arm xilinx_zynq_defconfig
make -j ARCH=arm UIMAGE_LOADADDR=0x8000 uImage

错误:

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’; did you mean ‘-fconvert=little-endian’?
gcc: error: unrecognized command line option ‘-mfpu=vfp’; did you mean ‘-mcpu=’?
  CC      scripts/mod/devicetable-offsets.s

我该如何解决?有什么主意吗?

linux gcc arm centos7 u-boot
1个回答
0
投票
您的路径指向一些2011 GCC交叉编译器。您至少需要2016年发布的GCC6。请安装最新版本的GCC。
© www.soinside.com 2019 - 2024. All rights reserved.