主题 : 编译u-boot-2008-10 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 9415
精华: 0
发帖: 11
金钱: 95 两
威望: 43 点
综合积分: 22 分
注册时间: 2009-09-28
最后登录: 2010-07-26
楼主  发表于: 2009-10-13 17:41

 编译u-boot-2008-10

for dir in tools examples api_examples ; do make -C $dir _depend ; done
make[1]: Entering directory `/opt/samba/u-boot-2008.10/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/samba/u-boot-2008.10/tools'
make[1]: Entering directory `/opt/samba/u-boot-2008.10/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/samba/u-boot-2008.10/examples'
make[1]: Entering directory `/opt/samba/u-boot-2008.10/api_examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/samba/u-boot-2008.10/api_examples'
make -C tools all
make[1]: Entering directory `/opt/samba/u-boot-2008.10/tools'
gcc -Wall -pedantic -idirafter /opt/samba/u-boot-2008.10/include -idirafter /opt/samba/u-boot-2008.10/include2 -idirafter /opt/samba/u-boot-2008.10/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
/usr/libexec/gcc/i386-redhat-linux/4.3.2/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
make[1]: *** [img2srec.o] 错误 1
make[1]: Leaving directory `/opt/samba/u-boot-2008.10/tools'
make: *** [tools] 错误 2
[root@localhost u-boot-2008.10]#

我用同样的编译器,编出来错误不同,请高手指教!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-10-14 13:42
看起来你的gcc-4.3.2没有安装正确,找不到gcc运行所必需的libmpfr.so.1
"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: 9415
精华: 0
发帖: 11
金钱: 95 两
威望: 43 点
综合积分: 22 分
注册时间: 2009-09-28
最后登录: 2010-07-26
2楼  发表于: 2009-10-14 18:08
重装操作系统ok

系统为redhat EL5