小弟在移植u-boot的时候,出现了以下错误信息
- /usr/local/bin/arm-elf-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE= -I/home/armwork/u-boot-1.1.4/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/lib/gcc-lib/arm-elf/2.95.3/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv4 -mtune=arm7tdmi -msoft-float -mabi=apcs-gnu -Wall -Wstrict-prototypes -c -o hello_world.o hello_world.c
- cc1: Invalid option `abi=apcs-gnu'
- make[1]: *** [hello_world.o] Error 1
- make[1]: Leaving directory `/home/armwork/u-boot-1.1.4/examples'
- make: *** [examples] Error 2
复制代码
前面在论坛上看到上一篇文章,讲到了arm-elf-gcc和 arm-linux-toolchain 两者有区别
可我在执行
- export CC=arm-elf-gcc
- export LD=arm-elf-gcc -Wl -elf2flt
复制代码
出现以下错误信息
- bash: export: `-Wl': not a valid identifier
- bash: export: `-elf2flt': not a valid identifier
复制代码
小弟新手,不懂之处,还请大家多多指教! |