From: Anders Larsen Date: Mon, 05 Dec 2005 18:20:11 +0100 Subject: [U-Boot-Users] build error probably due to include file paths problem In-Reply-To: <43946C3C.8080200@runbox.com> References: <43946C3C.8080200@runbox.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Surinder 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)! > Cheers Anders