• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : uboot 1.1.6 编译出现错误: libgcc.a(_udivdi3.os) uses hardware FP,whereas u-boot uses software FP 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 9254
精华: 0
发帖: 44
金钱: 450 两
威望: 225 点
贡献值: 0 点
综合积分: 88 分
注册时间: 2009-09-23
最后登录: 2009-12-12
楼主  发表于: 2009-10-21 17:59

 uboot 1.1.6 编译出现错误: libgcc.a(_udivdi3.os) uses hardware FP,whereas u-boot uses software FP

管理提醒: 本帖被 qq2440 从 Linux技术交流专区 移动到本区(2010-02-08)
请教版主,,uboot编译出现错误,,用3.3.2和3.4.1出现不支持uboot软件浮点运算,用2.95.3也出现错误,,版主给些建议
[ 此帖被kasim在2009-10-22 17:44重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-10-21 18:20
uboot有很多,最起码你得告诉我你用哪个吧?
另外,把出错信息贴出来,我没兴趣去猜你遇到什么问题了
"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: 9254
精华: 0
发帖: 44
金钱: 450 两
威望: 225 点
贡献值: 0 点
综合积分: 88 分
注册时间: 2009-09-23
最后登录: 2009-12-12
2楼  发表于: 2009-10-21 18:59
不好意思啊,版主,我忘记了 uboot-1.1.6
当我用2.95.3时出现
cmd_bootm.c:469: undefined or invalid #dirrective
cmd_bootm.c:475: undefined or invalid #dirrective
当我用3.3.2和3.4.1时
/usr/local/arm/3.3.2./bin/am-linux-ld :ERROR: /usr/local/arm/3.3.2/lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_udivdi3.os) uses hardware FP,whereas u-boot uses software FP
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2009-10-21 20:25
1. 不要再用2.95.3这种古董级的gcc,它除了用来编译另外一个古董级的vivi之外一点用处也没用;
2. uboot默认需要用支持软浮点(soft float)的编译器,http://www.aiothome.com/bbs/read.php?tid-1693-keyword-whereas%7Cu-boot%7Cuses%7Csoftware%7CFP.html
"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: 9254
精华: 0
发帖: 44
金钱: 450 两
威望: 225 点
贡献值: 0 点
综合积分: 88 分
注册时间: 2009-09-23
最后登录: 2009-12-12
4楼  发表于: 2009-10-22 09:54
版主,我用你说的那个编译工具出现错误,总提示arm-linux-gcc:没有那个文件或目录。。
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2009-10-22 10:00
不是所有的交叉编译器都叫arm-linux-gcc的,根据它的名字修改u-boot 1.1.6 顶层Makefile中的CROSS_COMPILE值,另外不要忘了把它所在的路径加入到PATH环境变量里
"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: 9254
精华: 0
发帖: 44
金钱: 450 两
威望: 225 点
贡献值: 0 点
综合积分: 88 分
注册时间: 2009-09-23
最后登录: 2009-12-12
6楼  发表于: 2009-10-22 10:19
我将它解压到/usr/local/arm/下
export PATH=/usr/local/arm/scratchbox/compiles/arm-linux-gcc3.4.cs-glibc2.3-nofpu/bin:$PATH
make CROSS_COMPILE==/usr/local/arm/scratchbox/compiles/arm-linux-gcc3.4.cs-glibc2.3-nofpu/bin/arm-linux-
我的操作。。。
我见bin目录下有sbox-arm-linux- 但是它们都是链接到arm-linux-,所有我觉得没有错啊。。
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
7楼  发表于: 2009-10-22 10:49
1. "export PATH=/usr/local/arm/scratchbox/compiles/arm-linux-gcc3.4.cs-glibc2.3-nofpu/bin:$PATH" 应该是
    “export PATH=/usr/local/arm/scratchbox/compilers/arm-linux-gcc3.4.cs-glibc2.3-nofpu/bin:$PATH”

2. “make CROSS_COMPILE==/usr/local/arm/scratchbox/compiles/arm-linux-gcc3.4.cs-glibc2.3-nofpu/bin/arm-linux-” 应该是
    “make CROSS_COMPILE=/usr/local/arm/scratchbox/compilers/arm-linux-gcc3.4.cs-glibc2.3-nofpu/bin/arm-linux-”
"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: 9254
精华: 0
发帖: 44
金钱: 450 两
威望: 225 点
贡献值: 0 点
综合积分: 88 分
注册时间: 2009-09-23
最后登录: 2009-12-12
8楼  发表于: 2009-10-22 10:54
哦,上面的错误是我拼写的错误,,我在linux下做的就是compilers...这样做以后,就是我刚说的那种错误。。。
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
9楼  发表于: 2009-10-22 11:15
那我就不知道了,事实上我就是这样编译u-boot 1.1.6的,而且还编译成功了。这是我的编译log,你可以拿去和你的比比,看看有什么不一样。
附件: build.log.zip (10 K) 下载次数:36
"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."
  • «
  • 1
  • 2
  • »
  • Pages: 1/2     Go