LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 802|回复: 0

移植u-boot出错

[复制链接]
发表于 2006-8-9 09:38:22 | 显示全部楼层 |阅读模式
小弟在移植u-boot的时候,出现了以下错误信息


  1. /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
  2. cc1: Invalid option `abi=apcs-gnu'
  3. make[1]: *** [hello_world.o] Error 1
  4. make[1]: Leaving directory `/home/armwork/u-boot-1.1.4/examples'
  5. make: *** [examples] Error 2
复制代码


前面在论坛上看到上一篇文章,讲到了arm-elf-gcc和 arm-linux-toolchain 两者有区别

可我在执行



  1. export CC=arm-elf-gcc
  2. export LD=arm-elf-gcc -Wl -elf2flt

复制代码


出现以下错误信息


  1. bash: export: `-Wl': not a valid identifier
  2. bash: export: `-elf2flt': not a valid identifier

复制代码


小弟新手,不懂之处,还请大家多多指教!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表