2010-07-17 07:31:46     u-boot compile problem: gcc folder changed

Document created by Aaronwu Employee on Sep 25, 2013
Version 1Show Document
  • View in full screen mode

2010-07-17 07:31:46     u-boot compile problem: gcc folder changed

Ray Chow (SINGAPORE)

Message: 91394   

 

Hi, There,

 

I was trying to compile a uboot project previously worked on. It was ok last month.

 

this time it prompts me an error msg after just a few line of compilation.

 

the err msg says,

 

make bf533-mybd_config

make[1]: Entering directory `/home/atomboy/workspace/uboot/u-boot-2008.10-2009R1.1-rc1'

Configuring for bf533-mybd board...

make[2]: Entering directory `/home/atomboy/workspace/uboot/u-boot-2008.10-2009R1.1-rc1'

make[2]: Leaving directory `/home/atomboy/workspace/uboot/u-boot-2008.10-2009R1.1-rc1'

make[2]: Entering directory `/home/atomboy/workspace/uboot/u-boot-2008.10-2009R1.1-rc1'

make[2]: Leaving directory `/home/atomboy/workspace/uboot/u-boot-2008.10-2009R1.1-rc1'

make[2]: Entering directory `/home/atomboy/workspace/uboot/u-boot-2008.10-2009R1.1-rc1'

make[2]: Leaving directory `/home/atomboy/workspace/uboot/u-boot-2008.10-2009R1.1-rc1'

make[2]: Entering directory `/home/atomboy/workspace/uboot/u-boot-2008.10-2009R1.1-rc1'

make[2]: Leaving directory `/home/atomboy/workspace/uboot/u-boot-2008.10-2009R1.1-rc1'

make[1]: Leaving directory `/home/atomboy/workspace/uboot/u-boot-2008.10-2009R1.1-rc1'

make

make[1]: Entering directory `/home/atomboy/workspace/uboot/u-boot-2008.10-2009R1.1-rc1'

for dir in tools examples api_examples ; do make -C $dir _depend ; done

make[2]: Entering directory `/home/atomboy/workspace/uboot/u-boot-2008.10-2009R1.1-rc1/tools'

make[2]: Nothing to be done for `_depend'.

make[2]: Leaving directory `/home/atomboy/workspace/uboot/u-boot-2008.10-2009R1.1-rc1/tools'

make[2]: Entering directory `/home/atomboy/workspace/uboot/u-boot-2008.10-2009R1.1-rc1/examples'

make[2]: Nothing to be done for `_depend'.

make[2]: Leaving directory `/home/atomboy/workspace/uboot/u-boot-2008.10-2009R1.1-rc1/examples'

make[2]: Entering directory `/home/atomboy/workspace/uboot/u-boot-2008.10-2009R1.1-rc1/api_examples'

make[2]: Nothing to be done for `_depend'.

make[2]: Leaving directory `/home/atomboy/workspace/uboot/u-boot-2008.10-2009R1.1-rc1/api_examples'

make -C tools all

make[2]: Entering directory `/home/atomboy/workspace/uboot/u-boot-2008.10-2009R1.1-rc1/tools'

make[2]: *** No rule to make target `/usr/lib/gcc/i686-redhat-linux/4.4.3/include/stddef.h', needed by `img2srec.o'.  Stop.

make[2]: Leaving directory `/home/atomboy/workspace/uboot/u-boot-2008.10-2009R1.1-rc1/tools'

make[1]: *** [tools] Error 2

make[1]: Leaving directory `/home/atomboy/workspace/uboot/u-boot-2008.10-2009R1.1-rc1'

make: *** [bf533-mybd] Error 2

 

 

Seems uboot is complaining not able to find stddef.h under earlier defined path. So I checked the folder '/usr/lib/gcc/i686-redhat-linux', there is only a /4.4.4/ folder. Did I changed the system setting accidentally? if so, how do i make uboot adept to this new change?

 

I searched '/uboot/u-boot-2008.10-2009R1.1-rc1/tools' folder, cannot find the path settings in the Makefile there.

 

where to change it?

 

 

 

Thanks

QuoteReplyEditDelete

 

 

2010-07-17 14:56:22     Re: u-boot compile problem: gcc folder changed

Mike Frysinger (UNITED STATES)

Message: 91398   

 

`make distclean`

QuoteReplyEditDelete

 

 

2010-07-18 03:13:40     Re: u-boot compile problem: gcc folder changed

Ray Chow (SINGAPORE)

Message: 91402   

 

Hi, Mike,

 

wonderful! it works.

 

may I know why? or is there any doc page I can refer to?

 

 

 

Thanks & Regards

 

Ray

QuoteReplyEditDelete

 

 

2010-07-18 03:41:14     Re: u-boot compile problem: gcc folder changed

Mike Frysinger (UNITED STATES)

Message: 91406   

 

you took a folder full of generated files that included info about your host toolchain and then either upgraded your host toolchain or moved the folder to another machine

 

either way, those generated files became stale

Attachments

    Outcomes