编译u-boot出错,这次真心不知道怎么回事

2019-07-16 09:52发布

[root@czp u-boot-2013.04-rc1]# make all
Generating include/autoconf.mk
cc1: error: bad value (ARMv5t) for -march= switch
cc1: error: bad value (armv5t) for -mtune= switch

Generating include/autoconf.mk.dep
cc1: error: bad value (armv5t) for -march= switch
cc1: error: bad value (armv5t) for -mtune= switch
gcc -DDO_DEPS_ONLY
  -g  -Os   -fno-common -ffixed-r8 -msoft-float  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x57e00000 -I/home/wander/u-boot-2013.04-rc1/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/i686-redhat-linux/4.4.6/include -pipe  -DCONFIG_ARM -D__ARM__    -march=armv5t -march=armv5t -Wall -Wstrict-prototypes      
  -o lib/asm-offsets.s lib/asm-offsets.c -c -S
lib/asm-offsets.c:1: error: bad value (armv5t) for -march= switch
lib/asm-offsets.c:1: error: bad value (armv5t) for -mtune= switch
make: *** [lib/asm-offsets.s] Error 1
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。