主题 : u-boot编译不过啊 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 53197
精华: 0
发帖: 10
金钱: 50 两
威望: 10 点
贡献值: 0 点
综合积分: 20 分
注册时间: 2011-08-02
最后登录: 2012-04-29
楼主  发表于: 2011-11-06 10:16

 u-boot编译不过啊

弄了很多天了。。。百度、谷歌了很多遍。。。还没能解决。。。各位大大帮帮忙呃。。。u-boot怎么也编译不过去。。。下面是消息:

[root@localhost u-boot]# pwd
/root/workspace/u-boot
[root@localhost u-boot]# make smdk2410_config
Configuring for smdk2410 board...
/root/workspace/u-boot/mkconfig,smdk2410,arm,arm920t,smdk2410,NULL,s3c24x0
[root@localhost u-boot]# make CROSS_COMPILE=arm-linux-
Generating include/autoconf.mk.dep
for dir in tools examples api_examples ; do make -C $dir _depend ; done
make[1]: Entering directory `/root/workspace/u-boot/tools'
make[1]: *** 没有规则可以创建目标“_depend”。 停止。
make[1]: Leaving directory `/root/workspace/u-boot/tools'
make[1]: Entering directory `/root/workspace/u-boot/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/root/workspace/u-boot/examples'
make[1]: Entering directory `/root/workspace/u-boot/api_examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/root/workspace/u-boot/api_examples'
Generating include/autoconf.mk
make -C tools all
make[1]: Entering directory `/root/workspace/u-boot/tools'
System not configured - see README
make[1]: *** [all] 错误 1
make[1]: Leaving directory `/root/workspace/u-boot/tools'
make: *** [tools] 错误 2
[root@localhost u-boot]#


我用的是友善之臂光碟配来的arm-linux-gcc-4.4.3.tar
u-boot是国嵌光碟里的u-boot-2008.10.tar
系统是Red Hat Enterprise Linux 5
级别: 新手上路
UID: 58614
精华: 0
发帖: 2
金钱: 10 两
威望: 2 点
贡献值: 0 点
综合积分: 4 分
注册时间: 2011-11-10
最后登录: 2011-11-25
1楼  发表于: 2011-11-10 15:21
这位仁兄:
  这个问题怎么样了。现在我也遇到了同样的问题。
  不知道怎么解决。换了编译器,也是 一样。
  郁闷···
只要学就会有进步
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2011-11-10 16:12
1. 确保你没有把源代码解压在FAT或者NTFS的分区上;
2. 在make之前先用make clean把源代码包里可能有的垃圾清理掉。
"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: 52583
精华: 0
发帖: 83
金钱: 420 两
威望: 84 点
贡献值: 0 点
综合积分: 166 分
注册时间: 2011-07-21
最后登录: 2013-01-15
3楼  发表于: 2011-11-25 23:36
u-boot是国嵌光碟里的u-boot-2008.10.tar
楼主,能发份这个u-boot-2888.10.tar给小弟吗?谢谢哈
级别: 新手上路
UID: 64564
精华: 0
发帖: 24
金钱: 120 两
威望: 24 点
贡献值: 0 点
综合积分: 48 分
注册时间: 2012-03-06
最后登录: 2012-06-02
4楼  发表于: 2012-03-24 17:33
我以前也遇到这个问题,但我换了个gcc-3.4.5-glibc-2.3.6编译器后,编译就成功了,我猜可能是编译器的问题,出现不兼容
级别: 新手上路
UID: 64564
精华: 0
发帖: 24
金钱: 120 两
威望: 24 点
贡献值: 0 点
综合积分: 48 分
注册时间: 2012-03-06
最后登录: 2012-06-02
5楼  发表于: 2012-03-24 17:35
我以前也遇到这个问题,但我换了个gcc-3.4.5-glibc-2.3.6编译器后,编译就成功了,我猜应该是编译器的问题,希望能帮到你