主题 : 用arm-linux-gcc-4.3.2 with EABI 编译U-BOOT1.1.6发生的错误 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 3934
精华: 0
发帖: 37
金钱: 325 两
威望: 276 点
综合积分: 74 分
注册时间: 2009-02-17
最后登录: 2013-03-08
楼主  发表于: 2009-07-20 22:27

 用arm-linux-gcc-4.3.2 with EABI 编译U-BOOT1.1.6发生的错误

-Map u-boot.map -o u-boot
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/armv4t/libgcc.a(_udivsi3.o): In function `__aeabi_uidiv':
(.text+0x0): multiple definition of `__udivsi3'
lib_arm/libarm.a(_udivsi3.o):/u-boot-1.1.6/lib_arm/_udivsi3.S:17: first defined here
arm-linux-ld: ERROR: Source object /usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/armv4t/libgcc.a(_udivdi3.o) has EABI version 5, but target u-boot has EABI version 0
arm-linux-ld: failed to merge target specific data of file /usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/armv4t/libgcc.a(_udivdi3.o)
arm-linux-ld: ERROR: Source object /usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/armv4t/libgcc.a(_udivsi3.o) has EABI version 5, but target u-boot has EABI version 0
arm-linux-ld: failed to merge target specific data of file /usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/armv4t/libgcc.a(_udivsi3.o)
arm-linux-ld: ERROR: Source object /usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/armv4t/libgcc.a(_dvmd_lnx.o) has EABI version 5, but target u-boot has EABI version 0
arm-linux-ld: failed to merge target specific data of file /usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/armv4t/libgcc.a(_dvmd_lnx.o)
arm-linux-ld: ERROR: Source object /usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/armv4t/libgcc.a(_clz.o) has EABI version 5, but target u-boot has EABI version 0
arm-linux-ld: failed to merge target specific data of file /usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/armv4t/libgcc.a(_clz.o)
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/armv4t/libgcc.a(_dvmd_lnx.o): In function `__aeabi_ldiv0':
(.text+0x8): undefined reference to `raise'
make: *** [u-boot] 错误 1
[root@localhost u-boot-1.1.6]#


请问有哪位同仁碰到过这个问题
级别: 新手上路
UID: 7419
精华: 0
发帖: 12
金钱: 115 两
威望: 111 点
综合积分: 24 分
注册时间: 2009-07-14
最后登录: 2010-01-25
1楼  发表于: 2009-07-20 22:48
我 也一样
后来我编译VIVI时也不 成功,我看了下makefile文件,发现它那里面不是用的arm-linux-gcc 4.3.2而是2.6.2,改过来后编译还是不成功。。。
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2009-07-20 23:55
不要用EABI的arm-linux-gcc-4.3.2去编译古董级的u-boot 1.1.6, 那时候还没有EABI呢
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 3934
精华: 0
发帖: 37
金钱: 325 两
威望: 276 点
综合积分: 74 分
注册时间: 2009-02-17
最后登录: 2013-03-08
3楼  发表于: 2009-07-21 14:17

 回 2楼(kasim) 的帖子

呵呵,u-boot1.1.6是还没有EABI,那你是怎么弄的呢
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2009-07-21 14:45

 Re:回 2楼(kasim) 的帖子

引用第3楼g0314023于2009-07-21 14:17发表的 回 2楼(kasim) 的帖子 :
呵呵,u-boot1.1.6是还没有EABI,那你是怎么弄的呢

既然不能用EABI的,你觉得我是怎么搞定的?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 3934
精华: 0
发帖: 37
金钱: 325 两
威望: 276 点
综合积分: 74 分
注册时间: 2009-02-17
最后登录: 2013-03-08
5楼  发表于: 2009-07-21 16:14
呵呵,看来你也是换其他版本的编译器了
级别: 新手上路
UID: 10222
精华: 0
发帖: 4
金钱: 35 两
威望: 16 点
综合积分: 8 分
注册时间: 2009-10-28
最后登录: 2012-07-18
6楼  发表于: 2009-10-28 11:27
我也遇到同样的问题,解决了再把问题的解决方法贴上来。