arm-linux-ld: ERROR: Source object init.o has EABI version 0, but target lcd_elf has EABI version 5

编译的时候,遇到了一些问题,我一开始用的交叉编译器版本是arm-linux-gcc3.4.1,出现了网络频现的软浮点问题,如下:

arm-linux-ld: ERROR: /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/libgcc.a(_udivsi3.oS) uses hardware FP, whereas u-boot uses software FP

arm-linux-ld: failed to merge target specific data of file /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/libgcc.a(_udivsi3.oS)

arm-linux-ld: ERROR: /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/libgcc.a(_divsi3.oS) uses hardware FP, whereas u-boot uses software FP

arm-linux-ld: failed to merge target specific data of file /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/libgcc.a(_divsi3.oS)

arm-linux-ld: ERROR: /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/libgcc.a(_umodsi3.oS) uses hardware FP, whereas u-boot uses software FP

arm-linux-ld: failed to merge target specific data of file /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/libgcc.a(_umodsi3.oS)

arm-linux-ld: ERROR: /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/libgcc.a(_modsi3.oS) uses hardware FP, whereas u-boot uses software FP

arm-linux-ld: failed to merge target specific data of file /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/libgcc.a(_modsi3.oS)

arm-linux-ld: ERROR: /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/libgcc.a(_dvmd_lnx.oS) uses hardware FP, whereas u-boot uses software FP

arm-linux-ld: failed to merge target specific data of file /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/libgcc.a(_dvmd_lnx.oS)

arm-linux-ld: ERROR: /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/libgcc.a(_lshrdi3.oS) uses hardware FP, whereas u-boot uses software FP

arm-linux-ld: failed to merge target specific data of file /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/libgcc.a(_lshrdi3.oS)

arm-linux-ld: ERROR: /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/libgcc.a(_ashldi3.oS) uses hardware FP, whereas u-boot uses software FP

arm-linux-ld: failed to merge target specific data of file /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/libgcc.a(_ashldi3.oS)

于是更换编译器为arm-linux-gcc4.3.2,并把config.mk文件还源后,直接make,这时是会出现问题的,如下:

arm-linux-ld: ERROR: Source object init.o has EABI version 0, but target lcd_elf has EABI version 5
arm-linux-ld: failed to merge target specific data of file init.o
arm-linux-ld: ERROR: Source object nand.o has EABI version 0, but target lcd_elf has EABI version 5
arm-linux-ld: failed to merge target specific data of file nand.o
arm-linux-ld: ERROR: Source object interrupt.o has EABI version 0, but target lcd_elf has EABI version 5
arm-linux-ld: failed to merge target specific data of file interrupt.o
arm-linux-ld: ERROR: Source object serial.o has EABI version 0, but target lcd_elf has EABI version 5
arm-linux-ld: failed to merge target specific data of file serial.o
arm-linux-ld: ERROR: Source object lcddrv.o has EABI version 0, but target lcd_elf has EABI version 5
arm-linux-ld: failed to merge target specific data of file lcddrv.o
arm-linux-ld: ERROR: Source object lcdlib.o has EABI version 0, but target lcd_elf has EABI version 5
arm-linux-ld: failed to merge target specific data of file lcdlib.o
arm-linux-ld: ERROR: Source object main.o has EABI version 0, but target lcd_elf has EABI version 5
arm-linux-ld: failed to merge target specific data of file main.o
arm-linux-ld: ERROR: Source object lib/libc.a(printf.o) has EABI version 0, but target lcd_elf has EABI version 5
arm-linux-ld: failed to merge target specific data of file lib/libc.a(printf.o)
arm-linux-ld: ERROR: Source object lib/libc.a(string.o) has EABI version 0, but target lcd_elf has EABI version 5
arm-linux-ld: failed to merge target specific data of file lib/libc.a(string.o)
arm-linux-ld: ERROR: Source object lib/libc.a(vsprintf.o) has EABI version 0, but target lcd_elf has EABI version 5
arm-linux-ld: failed to merge target specific data of file lib/libc.a(vsprintf.o)
arm-linux-ld: ERROR: Source object lib/libc.a(ctype.o) has EABI version 0, but target lcd_elf has EABI version 5
arm-linux-ld: failed to merge target specific data of file lib/libc.a(ctype.o)
arm-linux-ld: ERROR: Source object lib/libc.a(muldi3.o) has EABI version 0, but target lcd_elf has EABI version 5
arm-linux-ld: failed to merge target specific data of file lib/libc.a(muldi3.o)

其实这个问题很简单,只是自己忽略了而已。这是因为更换编译器后,未进行清除才导致的。即:执行make clean 后,再make,就可编译成功了!


  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

HeroKern

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值