From: Wolfgang Denk Date: Wed, 09 Jun 2004 09:10:28 +0200 Subject: [U-Boot-Users] An error when I am compiling the u-boot 1.1.1 for VPB In-Reply-To: Your message of "Wed, 09 Jun 2004 10:50:35 +0800." <20040609025035.93031.qmail@web15207.mail.bjs.yahoo.com> Message-ID: <1BatoT-0M1YsC0@fmrl08.sul.t-online.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <20040609025035.93031.qmail@web15207.mail.bjs.yahoo.com> you wrote: > > When I am compiling the u-boot 1.1.1 for Versatile PB, > a strange problem encounters. ...in a strange system setup. > gcc -Wall -pedantic -I../include -I.. > -DTEXT_BASE=0x01000000 -DUSE_HOSTCC -O -c -o > bmp_logo.o bmp_logo.c > gcc -Wall -pedantic -I../include -I.. > -DTEXT_BASE=0x01000000 -DUSE_HOSTCC -O -o bmp_logo > bmp_logo.o Here the native (host) gcc is needed and used. > strip bmp_logo > ./bmp_logo logos/denx.bmp > >/home/roc/bootloader/u-boot-1.1.1/include/bmp_logo.h > /bin/sh: line 1: ./bmp_logo: cannot execute binary > file But obviously your native gcc does not create native code. I can only speculate and guess that your PATH must be set wrong, so that a cross gcc is picked up instead. > So I want to know which version of gcc is best for > compiling the u-boot? This has nothing to do with GCC versions, but with the local stup of the PATH on your system. "gcc" should never pick up a cross compiler. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de There has been an alarming increase in the number of things you know nothing about.