[U-Boot-Users] About the compile problem for eldk4.1+u-boot.1.3.1
Wolfgang Denk
wd at denx.de
Sat Dec 29 15:21:12 CET 2007
In message <10584250.108351198896195167.JavaMail.coremail at bj163app65.163.com> you wrote:
>
> I encounter may mess message when compile u-boot-1.3.1, is this due to the
> gcc version of my ubuntun7.1.0?
I don't know what sort of native gcc you have installed in your
system, but it looks pretty strange to me...
> denny at ubuntu:/arm44b0/u-boot-1.3.1$ gcc -v
> Using built-in specs.
> Target: i486-linux-gnu
> Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
> Thread model: posix
> gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
Is this the gcc that comes with Ubuntu, or something you compiled
yourself?
> gcc -Wall -pedantic -idirafter /arm44b0/u-boot-1.3.1/include -idirafter /arm44b0/u-boot-1.3.1/include2 -idirafter /arm44b0/u-boot-1.3.1/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
This looks good to me, but...
> In file included from img2srec.c:57:
> /usr/local/include/stdlib.h:296: error: expected â?â?or â?â?before â{â?token
... I have not the slightest idea why your compiler might have the
funny idea to pull in files from /usr/local/include ?
And obviously these header files are broken, too.
> ------=_Part_28757_21520426.1198896195166
> Content-Type: text/html; charset=gbk
> Content-Transfer-Encoding: quoted-printable
Stop posting HTML, please.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Documentation is the castor oil of programming.
Managers know it must be good because the programmers hate it so much.
More information about the U-Boot
mailing list