problem to build binutils!

Ralf Corsepius ralf.corsepius at rtems.org
Mon Jan 30 16:41:16 UTC 2006


On Mon, 2006-01-30 at 17:11 +0100, Matteo wrote:
> Ubuntu doesn't have alien, but I have decided to use;

Time to switch the distro, I'd say ...

>  binutils-2.16.1 with his relative patch
>  gcc-3.2.3 with his reòative patch
>  newlib-1.11.0 with his relative patch

> I configured binutils with ;
> ../binutils-2.16.1/configure --target=i386-rtems4.7 \
> --prefix=/usr/local/rtems/rtems4.7
> and I built it with ; make -w all install
> 
> I configured gcc with ;
> ../gcc-3.2.3/configure --target=i386-rtems4.7 \
> --prefix=/usr/local/rtems/rtems4.7 \
> --with-gnu-as --with-gnu-ld --with-newlib --verbose \
> --with-system-zlib --disable-nls \
> --enable-version-specific-runtime-libs \
> --enable-threads=rtems \
> --enable-languages=c,c++
Why are you trying to build --target=i386-rtems4.7, if you plan to use
rtems-4.6.x?

i386-rtems4.7 is meant to be used with rtems-CVS, and i386-rtems4.6 is
meant to be used with rtems-4.6.x.

However this has nothing to do with your toolchain build issues.

> ../../gcc-3.2.3/gcc/read-rtl.c: In function ‘fatal_with_file_and_line’:
> ../../gcc-3.2.3/gcc/read-rtl.c:62: warning: traditional C rejects ISO C style
> function definitions
> ../../gcc-3.2.3/gcc/read-rtl.c: In function ‘read_rtx’:
> ../../gcc-3.2.3/gcc/read-rtl.c:662: error: invalid lvalue in increment
Here, your native gcc (presumably 4.x) trips a bug in gcc-3.x's sources.

Either you switch to using an older native gcc or you switch to using a
newer rtems-gcc from the gcc-3.x series for rtems-4.6.x rsp to gcc-4.0.x
for rtems-CVS/4.7

Ralf





More information about the users mailing list