Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9207
  • 博文数量: 3
  • 博客积分: 29
  • 博客等级: 民兵
  • 技术积分: 10
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-17 16:17
文章分类
文章存档

2017年(1)

2014年(2)

我的朋友
最近访客

分类: LINUX

2014-11-11 16:08:55

make[1]: *** 没有规则可以创建“img2srec.o”需要的目标“/usr/lib/gcc-lib/i386-redhat-linux/4.2.2/(2011-12-01 12:00:51) 当编译uboot的时候出现这样的错误:
   解决:  #make distclean  
          #make open24x0_config
          #make
出现的问题如下:
rm -f board/trab/trab_fkt board/voiceblue/eeprom
rm -f board/integratorap/u-boot.lds board/integratorcp/u-boot.lds
[root@localhost u-boot-1.1.4]# make UB4020_config
Configuring for UB4020 board...
[root@localhost u-boot-1.1.4]# make
make[1]: Entering directory `/work/linux-armfans/SCRubootnorV11/u-boot-1.1.4/tools'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/work/linux-armfans/SCRubootnorV11/u-boot-1.1.4/tools'
make[1]: Entering directory `/work/linux-armfans/SCRubootnorV11/u-boot-1.1.4/examples'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/work/linux-armfans/SCRubootnorV11/u-boot-1.1.4/examples'
make[1]: Entering directory `/work/linux-armfans/SCRubootnorV11/u-boot-1.1.4/post'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/work/linux-armfans/SCRubootnorV11/u-boot-1.1.4/post'
make[1]: Entering directory `/work/linux-armfans/SCRubootnorV11/u-boot-1.1.4/post/cpu'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/work/linux-armfans/SCRubootnorV11/u-boot-1.1.4/post/cpu'
make -C tools all
make[1]: Entering directory `/work/linux-armfans/SCRubootnorV11/u-boot-1.1.4/tools'
make[1]: *** No rule to make target `/usr/lib/gcc/i386-redhat-linux/4.1.2/include/stddef.h', needed by `img2srec.o'.  Stop.
make[1]: Leaving directory `/work/linux-armfans/SCRubootnorV11/u-boot-1.1.4/tools'
make: *** [tools] Error 2
[root@localhost u-boot-1.1.4]#

解决方法是:执行make distclean 在进行config和make就可以了。
阅读(1191) | 评论(0) | 转发(0) |
0

上一篇:ORR R0,R0,#R1_nF:OR:R1_iA

下一篇:LC_ALL=C的含义

给主人留下些什么吧!~~