没有规则可制作目标 Linux内核编译,make[1]: *** 没有规则可以创建“img2srec.o”需要的目标“/usr/lib/gcc-lib/i386-redhat-linux/4.2.2/...

出现的问题如下:

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就可以了。