[#5006] build mkimage and gen_eth_addr in the way that BuildToolchain use sometimes fails

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

[#5006] build mkimage and gen_eth_addr in the way that BuildToolchain use sometimes fails

Submitted By: Mingquan Pan

Open Date

2009-03-19 06:25:54     Close Date

2009-07-10 10:54:30

Priority:

Medium     Assignee:

Mike Frysinger

Category:

N/A     Fixed In Release:

2009R1

Found In Release:

2009R1     Status:

Closed

Board:

N/A     Processor:

BF537

Silicon Revision:

    Resolution:

Fixed

Is the bug repeatable?:

N/A     

Summary: build mkimage and gen_eth_addr in the way that BuildToolchain use sometimes fails

Details:

 

build mkimage and gen_eth_addr in the way that BuildToolchain use sometimes fails.

After make preparation and run "make O="/home/test/0323" BIN_FILES='mkimage gen_eth_addr' tools", for the first time, it exit. And run the second time at once, it builds out.

 

 

test@my-local-machine:~/checkouts/u-boot.trunk/u-boot-2008.10> svn up

At revision 1714.

 

test@my-local-machine:~/checkouts/u-boot.trunk/u-boot-2008.10> mkdir -p "/home/test/0323/include"

test@my-local-machine:~/checkouts/u-boot.trunk/u-boot-2008.10>

test@my-local-machine:~/checkouts/u-boot.trunk/u-boot-2008.10> touch /home/test/0323/include/config.mk /home/test/0323/include/config.h

test@my-local-machine:~/checkouts/u-boot.trunk/u-boot-2008.10> make O="/home/test/0323" BIN_FILES='mkimage gen_eth_addr' tools

Generating /home/test/0323/include/autoconf.mk.dep

In file included from include/common.h:36:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/linux/bitops.h:69:24: asm/bitops.h: No such file or directory

In file included from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/linux/types.h:8,

                 from include/common.h:37:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/linux/posix_types.h:46:29: asm/posix_types.h: No such file or directory

In file included from include/common.h:37:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/linux/types.h:9:23: asm/types.h: No such file or directory

In file included from include/common.h:38:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/linux/string.h:21:24: asm/string.h: No such file or directory

include/common.h:39:24: asm/ptrace.h: No such file or directory

In file included from include/common.h:112:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/image.h:36:27: asm/byteorder.h: No such file or directory

In file included from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/image.h:40,

                 from include/common.h:112:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/lmb.h:5:23: asm/types.h: No such file or directory

In file included from include/common.h:112:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/image.h:42:24: asm/u-boot.h: No such file or directory

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/image.h:466:3: #error Unknown CPU type

include/common.h:132:64: asm/u-boot.h: No such file or directory

include/common.h:133:77: asm/global_data.h: No such file or directory

make: *** [/home/test/0323/include/autoconf.mk.dep] Error 1

test@my-local-machine:~/checkouts/u-boot.trunk/u-boot-2008.10>

test@my-local-machine:~/checkouts/u-boot.trunk/u-boot-2008.10>

test@my-local-machine:~/checkouts/u-boot.trunk/u-boot-2008.10>

test@my-local-machine:~/checkouts/u-boot.trunk/u-boot-2008.10> make O="/home/test/0323" BIN_FILES='mkimage gen_eth_addr' tools

Generating /home/test/0323/include/autoconf.mk

In file included from include/common.h:36:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/linux/bitops.h:69:24: asm/bitops.h: No such file or directory

In file included from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/linux/types.h:8,

                 from include/common.h:37:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/linux/posix_types.h:46:29: asm/posix_types.h: No such file or directory

In file included from include/common.h:37:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/linux/types.h:9:23: asm/types.h: No such file or directory

In file included from include/common.h:38:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/linux/string.h:21:24: asm/string.h: No such file or directory

include/common.h:39:24: asm/ptrace.h: No such file or directory

In file included from include/common.h:112:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/image.h:36:27: asm/byteorder.h: No such file or directory

In file included from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/image.h:40,

                 from include/common.h:112:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/lmb.h:5:23: asm/types.h: No such file or directory

In file included from include/common.h:112:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/image.h:42:24: asm/u-boot.h: No such file or directory

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/image.h:466:3: #error Unknown CPU type

include/common.h:132:64: asm/u-boot.h: No such file or directory

include/common.h:133:77: asm/global_data.h: No such file or directory

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

make[1]: Entering directory `/home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools'

ln -s /home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools/../include/zlib.h /home/test/0323/tools/zlib.h

ln -s /home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools/../lib_generic/crc32.c /home/test/0323/tools/crc32.c

ln -s /home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools/../lib_generic/md5.c /home/test/0323/tools/md5.c

ln -s /home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools/../lib_generic/sha1.c /home/test/0323/tools/sha1.c

ln -s /home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools/../common/image.c /home/test/0323/tools/image.c

if [ ! -f /home/test/0323/tools/mkimage.h ] ; then \

                ln -s /home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools/../tools/mkimage.h /home/test/0323/tools/mkimage.h; \

        fi

if [ ! -f /home/test/0323/tools/fdt_host.h ] ; then \

                ln -s /home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools/../tools/fdt_host.h /home/test/0323/tools/fdt_host.h; \

        fi

make[1]: Leaving directory `/home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools'

make[1]: Entering directory `/home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools'

ln -s /home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools/../lib_generic/crc32.c /home/test/0323/tools/crc32.c

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

make[1]: Leaving directory `/home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools'

make[1]: Entering directory `/home/test/checkouts/u-boot.trunk/u-boot-2008.10/examples'

In file included from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/common.h:36,

                 from hello_world.c:24:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/linux/bitops.h:69:24: asm/bitops.h: No such file or directory

In file included from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/linux/types.h:8,

                 from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/common.h:37,

                 from hello_world.c:24:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/linux/posix_types.h:46:29: asm/posix_types.h: No such file or directory

In file included from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/common.h:37,

                 from hello_world.c:24:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/linux/types.h:9:23: asm/types.h: No such file or directory

In file included from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/common.h:38,

                 from hello_world.c:24:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/linux/string.h:21:24: asm/string.h: No such file or directory

In file included from hello_world.c:24:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/common.h:39:24: asm/ptrace.h: No such file or directory

In file included from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/common.h:112,

                 from hello_world.c:24:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/image.h:36:27: asm/byteorder.h: No such file or directory

In file included from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/image.h:40,

                 from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/common.h:112,

                 from hello_world.c:24:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/lmb.h:5:23: asm/types.h: No such file or directory

In file included from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/common.h:112,

                 from hello_world.c:24:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/image.h:42:24: asm/u-boot.h: No such file or directory

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/image.h:466:3: #error Unknown CPU type

In file included from hello_world.c:24:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/common.h:132:64: asm/u-boot.h: No such file or directory

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/common.h:133:77: asm/global_data.h: No such file or directory

In file included from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/common.h:36,

                 from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/exports.h:6,

                 from stubs.c:1:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/linux/bitops.h:69:24: asm/bitops.h: No such file or directory

In file included from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/linux/types.h:8,

                 from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/common.h:37,

                 from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/exports.h:6,

                 from stubs.c:1:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/linux/posix_types.h:46:29: asm/posix_types.h: No such file or directory

In file included from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/common.h:37,

                 from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/exports.h:6,

                 from stubs.c:1:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/linux/types.h:9:23: asm/types.h: No such file or directory

In file included from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/common.h:38,

                 from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/exports.h:6,

                 from stubs.c:1:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/linux/string.h:21:24: asm/string.h: No such file or directory

In file included from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/exports.h:6,

                 from stubs.c:1:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/common.h:39:24: asm/ptrace.h: No such file or directory

In file included from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/common.h:112,

                 from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/exports.h:6,

                 from stubs.c:1:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/image.h:36:27: asm/byteorder.h: No such file or directory

In file included from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/image.h:40,

                 from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/common.h:112,

                 from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/exports.h:6,

                 from stubs.c:1:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/lmb.h:5:23: asm/types.h: No such file or directory

In file included from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/common.h:112,

                 from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/exports.h:6,

                 from stubs.c:1:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/image.h:42:24: asm/u-boot.h: No such file or directory

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/image.h:466:3: #error Unknown CPU type

In file included from /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/exports.h:6,

                 from stubs.c:1:

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/common.h:132:64: asm/u-boot.h: No such file or directory

/home/test/checkouts/u-boot.trunk/u-boot-2008.10/include/common.h:133:77: asm/global_data.h: No such file or directory

stubs.c:189:2: #error stubs definition missing for this architecture

make[1]: *** [/home/test/0323/examples/.depend] Error 1

make[1]: Leaving directory `/home/test/checkouts/u-boot.trunk/u-boot-2008.10/examples'

make[1]: Entering directory `/home/test/checkouts/u-boot.trunk/u-boot-2008.10/api_examples'

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

make[1]: Leaving directory `/home/test/checkouts/u-boot.trunk/u-boot-2008.10/api_examples'

make -C tools all

make[1]: Entering directory `/home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools'

ln -s /home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools/../lib_generic/crc32.c /home/test/0323/tools/crc32.c

gcc -g -Wall -idirafter /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include -idirafter /home/test/0323/include2 -idirafter /home/test/0323/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o /home/test/0323/tools/mkimage.o /home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools/mkimage.c

gcc -g -Wall -pedantic -idirafter /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include -idirafter /home/test/0323/include2 -idirafter /home/test/0323/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o /home/test/0323/tools/crc32.o /home/test/0323/tools/crc32.c

gcc -g -Wall -idirafter /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include -idirafter /home/test/0323/include2 -idirafter /home/test/0323/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o /home/test/0323/tools/image.o /home/test/0323/tools/image.c

gcc -g -Wall -pedantic -idirafter /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include -idirafter /home/test/0323/include2 -idirafter /home/test/0323/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o /home/test/0323/tools/md5.o /home/test/0323/tools/md5.c

gcc -g -Wall -pedantic -idirafter /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include -idirafter /home/test/0323/include2 -idirafter /home/test/0323/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o /home/test/0323/tools/sha1.o /home/test/0323/tools/sha1.c

ln -s /home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools/../libfdt/libfdt_internal.h /home/test/0323/tools/libfdt_internal.h

ln -s /home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools/../libfdt/fdt.c /home/test/0323/tools/fdt.c

gcc -g -Wall -idirafter /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include -idirafter /home/test/0323/include2 -idirafter /home/test/0323/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o /home/test/0323/tools/fdt.o /home/test/0323/tools/fdt.c

ln -s /home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools/../libfdt/fdt_ro.c /home/test/0323/tools/fdt_ro.c

gcc -g -Wall -idirafter /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include -idirafter /home/test/0323/include2 -idirafter /home/test/0323/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o /home/test/0323/tools/fdt_ro.o /home/test/0323/tools/fdt_ro.c

ln -s /home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools/../libfdt/fdt_rw.c /home/test/0323/tools/fdt_rw.c

gcc -g -Wall -idirafter /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include -idirafter /home/test/0323/include2 -idirafter /home/test/0323/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o /home/test/0323/tools/fdt_rw.o /home/test/0323/tools/fdt_rw.c

ln -s /home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools/../libfdt/fdt_strerror.c /home/test/0323/tools/fdt_strerror.c

gcc -g -Wall -idirafter /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include -idirafter /home/test/0323/include2 -idirafter /home/test/0323/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o /home/test/0323/tools/fdt_strerror.o /home/test/0323/tools/fdt_strerror.c

ln -s /home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools/../libfdt/fdt_wip.c /home/test/0323/tools/fdt_wip.c

gcc -g -Wall -idirafter /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include -idirafter /home/test/0323/include2 -idirafter /home/test/0323/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o /home/test/0323/tools/fdt_wip.o /home/test/0323/tools/fdt_wip.c

gcc -Wall -pedantic -idirafter /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include -idirafter /home/test/0323/include2 -idirafter /home/test/0323/include -DTEXT_BASE= -DUSE_HOSTCC -O  -o /home/test/0323/tools/mkimage /home/test/0323/tools/mkimage.o /home/test/0323/tools/crc32.o /home/test/0323/tools/image.o /home/test/0323/tools/md5.o /home/test/0323/tools/sha1.o /home/test/0323/tools/fdt.o /home/test/0323/tools/fdt_ro.o /home/test/0323/tools/fdt_rw.o /home/test/0323/tools/fdt_strerror.o /home/test/0323/tools/fdt_wip.o

strip /home/test/0323/tools/mkimage

gcc -g -Wall -pedantic -idirafter /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include -idirafter /home/test/0323/include2 -idirafter /home/test/0323/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o /home/test/0323/tools/gen_eth_addr.o /home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools/gen_eth_addr.c

gcc -Wall -pedantic -idirafter /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include -idirafter /home/test/0323/include2 -idirafter /home/test/0323/include -DTEXT_BASE= -DUSE_HOSTCC -O  -o /home/test/0323/tools/gen_eth_addr /home/test/0323/tools/gen_eth_addr.o

strip /home/test/0323/tools/gen_eth_addr

gcc -Wall -pedantic -idirafter /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include -idirafter /home/test/0323/include2 -idirafter /home/test/0323/include -DTEXT_BASE= -DUSE_HOSTCC -O -c -o /home/test/0323/tools/bmp_logo.o bmp_logo.c

gcc -Wall -pedantic -idirafter /home/test/checkouts/u-boot.trunk/u-boot-2008.10/include -idirafter /home/test/0323/include2 -idirafter /home/test/0323/include -DTEXT_BASE= -DUSE_HOSTCC -O  -o /home/test/0323/tools/bmp_logo /home/test/0323/tools/bmp_logo.o

strip /home/test/0323/tools/bmp_logo

/home/test/0323/tools/./bmp_logo logos/denx.bmp >/home/test/0323/include/bmp_logo.h

make[1]: Leaving directory `/home/test/checkouts/u-boot.trunk/u-boot-2008.10/tools'

 

Follow-ups

 

--- Mike Frysinger                                           2009-03-19 06:46:32

did you do *exactly* what the buildscript is doing ?  if you skip any of the

steps, it'll fail.  also, there will be a lot of warnings and "errors"

in the output, but they can be ignored as long as the requested binaries were

actually built.

 

why are you trying to build these anyways ?  they're part of the toolchain for

a reason ...

 

--- Mingquan Pan                                             2009-03-30 04:07:28

I came across this on the toolchain regression machine, which show up this fail

from time to time at the end of running BuildToolChain.

When I tried last time, it looks the first time build the two tools from the

clean source, it would fail and exit. but the second time, it would build ok.

 

--- Mike Frysinger                                           2009-06-22 15:40:37

still works fine for me, but re-open if 2009.06 doesnt work for you.  the tools/

handling has been rewritten.

 

--- Mike Frysinger                                           2009-07-10 10:54:30

i tweaked the commands in the buildscript to workaround a bug in make-3.80.

that should fix the issue for you too.

 

--- Mingquan Pan                                             2009-07-17 00:05:09

Have you checked the fix to 09R1 branch? I still see this issue on toolchain

branch head and even with 2009.06 u-boot.

 

--- Mike Frysinger                                           2009-07-17 00:11:32

i dont see the point of fixing the branch

 

are you using the exact method as seen in the trunk buildscript ?  why are you

even building this by hand in the first place ?

 

--- Mingquan Pan                                             2009-07-17 00:31:32

But I still need to test branch head toolchain which needs to include u-boot

tools. It still fails on the machines that install with make 3.80.

 

--- Mingquan Pan                                             2009-07-17 01:36:30

I tried with the method in the trunk buildscript, and it do fix this issue. But

as toolchain gdbproxy changes and we still need do another round testing of 09R1

toolchain. So would you please check in this fix to toolchain 09R1 branch?

 

--- Mike Frysinger                                           2009-07-17 23:50:06

i dont see why you should care.  if you're testing the toolchain, you should be

testing the binaries that Bernd has compiled, not the source code.  testing the

source only provides little confidence in the toolchain binaries that Bernd

produces.

 

--- Sonic Zhang                                              2009-07-19 23:04:40

Robin wants to know the test result of the latest jtag speedup patch. So testing

the 2009R1 branch head is a temporary solution before we decide if tag RC11.

 

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes