Chinaunix首页 | 论坛 | 博客
  • 博客访问: 64637
  • 博文数量: 12
  • 博客积分: 331
  • 博客等级: 一等列兵
  • 技术积分: 196
  • 用 户 组: 普通用户
  • 注册时间: 2012-02-16 10:40
文章分类
文章存档

2012年(12)

我的朋友

分类: LINUX

2012-04-01 15:56:20

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就可以了。
阅读(5603) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~