[U-Boot-Users] build error probably due to include file paths problem

Anders Larsen alarsen at rea.de
Mon Dec 5 18:20:11 CET 2005

Surinder <satluj at runbox.com> schrieb am Montag, 5. Dezember 2005 um 17:35 +0100:
>changed the CROSS_COMPILE in file u-boot-1.1.3/Makefile
>CROSS_COMPILE = arm-elf-

The preferred way is to either export CROSS_COMPILE to your
environment, or pass it on the make command line, like e.g.:
$ make CROSS_COMPILE=arm-elf-

>make -C tools all
>make[1]: Entering directory `/export/em/u-boot/u-boot-1.1.3/tools'

In the tools sub-directory your native compiler is used, not
the cross-compiler.

>gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x11080000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
^^^ (native compiler)
>img2srec.c:55:20: stddef.h: No such file or directory
>img2srec.c:56:19: stdio.h: No such file or directory

Your native compiler is unable to find headers that were supposed
to be installed from the same package as the compiler itself.

Something is _seriously_ broken (and it has nothing to do with
U-Boot nor with the cross-compiler)!

More information about the U-Boot mailing list