[U-Boot-Users] About the compile problem for eldk4.1+u-boot.1.3.1

jxnuxdy
2007-12-29T02:43:15Z

Hi Folks,

I encounter may mess message when compile u-boot-1.3.1, is this due to the gcc version of my ubuntun7.1.0?
is there anyone even encounter this issue?

denny at ubuntu:/arm44b0/u-boot-1.3.1$ arm-linux-gcc -v
Reading specs from /arm44b0/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/specs
Target: arm-linux
Configured with: /opt/eldk/build/arm-2007-01-22-uclibc/work/usr/src/denx/BUILD/crosstool-0.35/build/gcc-4.0.0-uclibc-0.9.27-eldk/arm-linux/gcc-4.0.0/configure --target=arm-linux --host=i686-host_pc-linux-gnu --prefix=/var/tmp/eldk.aLIfDn/usr/crosstool/gcc-4.0.0-uclibc-0.9.27-eldk/arm-linux --with-headers=/var/tmp/eldk.aLIfDn/usr/crosstool/gcc-4.0.0-uclibc-0.9.27-eldk/arm-linux/arm-linux/include --with-local-prefix=/var/tmp/eldk.aLIfDn/usr/crosstool/gcc-4.0.0-uclibc-0.9.27-eldk/arm-linux/arm-linux --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long --disable-__cxa_atexit
Thread model: posix
gcc version 4.0.0 (DENX ELDK 4.1 4.0.0)
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)
denny at ubuntu:/arm44b0/u-boot-1.3.1$ make
for dir in tools examples ; do make -C $dir _depend ; done
make[1]: Entering directory `/arm44b0/u-boot-1.3.1/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/arm44b0/u-boot-1.3.1/tools'
make[1]: Entering directory `/arm44b0/u-boot-1.3.1/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/arm44b0/u-boot-1.3.1/examples'
make -C tools all
make[1]: Entering directory `/arm44b0/u-boot-1.3.1/tools'
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
In file included from img2srec.c:57:
/usr/local/include/stdlib.h:296: error: expected ????or ????before ????token
/usr/local/include/stdlib.h:302: error: expected ????or ????before ????token
/usr/local/include/stdlib.h:308: error: expected ????or ????before ????token
/usr/local/include/stdlib.h:329: error: expected ????or ????before ????token
/usr/local/include/stdlib.h:335: error: expected ????or ????before ????token
/usr/local/include/stdlib.h:344: error: expected ????or ????before ????token
/usr/local/include/stdlib.h:350: error: expected ????or ????before ????token
/usr/local/include/stdlib.h:357: error: expected ????or ????before ????token
/usr/local/include/stdlib.h:362: error: expected ????or ????before ????token
/usr/local/include/stdlib.h:367: error: expected ????or ????before ????token
/usr/local/include/stdlib.h:374: error: expected ????or ????before ????token
In file included from img2srec.c:58:
/usr/local/include/ctype.h:170: error: expected ????or ????before ????token
/usr/local/include/ctype.h:176: error: expected ????or ????before ????token
make[1]: *** [img2srec.o] Error 1
make[1]: Leaving directory `/arm44b0/u-boot-1.3.1/tools'
make: *** [tools] Error 2
denny at ubuntu:/arm44b0/u-boot-1.3.1$

,Thanks
- Denny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20071229/c9c3f8a4/attachment.htm