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,就可编译成功了!


目录
相关文章
|
6月前
|
Kubernetes Java Linux
Linux|操作系统|Error: Could not create the Java Virtual Machine 报错的解决思路
Linux|操作系统|Error: Could not create the Java Virtual Machine 报错的解决思路
1519 0
|
6月前
|
关系型数据库 MySQL
mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file
mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file
323 0
|
5月前
|
Python
【Error】DeprecationWarning: executable_path has been deprecated, please pass in a Service object
【Error】DeprecationWarning: executable_path has been deprecated, please pass in a Service object
89 2
|
2月前
|
存储 Java 关系型数据库
LDAP: error code 32 - No Such Object
`亲测可用,之前搜索了很多博客,啥样的都有,就是不介绍报错以及配置用处,根本不懂照抄那些配置是干啥的,稀里糊涂的按照博客搭完也跑不起来,因此记录这个。` `项目背景`:公司项目当前采用http协议+shiro+mysql的登录认证方式,而现在想支持ldap协议认证登录然后能够访问自己公司的项目网站。 `举例说明`:假设我们公司有自己的门户网站,现在我们收购了一家公司,他们数据库采用ldap存储用户数据,那么为了他们账户能登陆我们公司项目所以需要集成,而不是再把他们的账户重新在mysql再创建一遍,万一人家有1W个账户呢,不累死了且也不现实啊。
105 14
|
2月前
|
Oracle Java 关系型数据库
Linux下JDK环境的配置及 bash: /usr/local/java/bin/java: cannot execute binary file: exec format error问题的解决
如果遇到"exec format error"问题,文章建议先检查Linux操作系统是32位还是64位,并确保安装了与系统匹配的JDK版本。如果系统是64位的,但出现了错误,可能是因为下载了错误的JDK版本。文章提供了一个链接,指向Oracle官网上的JDK 17 Linux版本下载页面,并附有截图说明。
Linux下JDK环境的配置及 bash: /usr/local/java/bin/java: cannot execute binary file: exec format error问题的解决
|
3月前
|
Ubuntu Linux 编译器
在ubantu/linux系统出现parse error(语法错误)
本文讨论了在Ubuntu/Linux系统中遇到"parse error"(语法错误)的问题,并提供了将非声明语句移动到所有声明语句下方以解决该问题的解决方案。
在ubantu/linux系统出现parse error(语法错误)
|
3月前
|
Kubernetes Linux Docker
【Azure 应用服务】使用Docker Compose创建App Service遇见"Linux Version is too long. It cannot be more than 4000 characters"错误
【Azure 应用服务】使用Docker Compose创建App Service遇见"Linux Version is too long. It cannot be more than 4000 characters"错误
|
3月前
|
Java Linux Shell
【Azure 应用服务】部署Jar到App Service for Linux,因启动命令路径配置错误而引起:( Application Error 问题
【Azure 应用服务】部署Jar到App Service for Linux,因启动命令路径配置错误而引起:( Application Error 问题
|
3月前
|
Oracle Java 关系型数据库
简单记录在Linux上安装JDK环境的步骤,以及解决运行Java程序时出现Error Could not find or load main class XXX问题
本文记录了在Linux系统上安装JDK环境的步骤,并提供了解决运行Java程序时出现的"Error Could not find or load main class XXX"问题的方案,主要是通过重新配置和刷新JDK环境变量来解决。
145 0
|
4月前
|
关系型数据库 MySQL
mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file
mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file
339 2

热门文章

最新文章

下一篇
无影云桌面