gnu tools update

Eric Norum eric.norum at usask.ca
Mon Feb 25 16:40:29 UTC 2002


Joel Sherrill wrote:
> 
> gcc 3.0.4 was released. It should include all necessary RTEMS
> 
>   patches.  The only issue is a minor one of using a deprecated
>   form of something internal in a couple of target specific files.
>   Not all RTEMS targets that built for 2.95.x build.  I only
>   build and report on C/C++.

Two steps forward, one step back....
I picked up gcc-3.0.4, configured it with:
../gcc-3.0.4/configure --target=i386-rtems --prefix=/opt/rtems
--with-gnu-as --with-gnu-ld --with-newlib --enable-threads
--enable-languages=c,c++

then ran `gmake -w' and after a while got:
.
.
.
gmake[1]: Leaving directory `/usr/local/source/RTEMS/tools/build/gcc'
Configuring in i386-rtems/newlib
Created "Makefile" in
/usr/local/source/RTEMS/tools/build/i386-rtems/newlib
/opt/rtems/i386-rtems/bin/ld: cannot open crti.o: No such file or
directory
collect2: ld returned 1 exit status
*** The command '/usr/local/source/RTEMS/tools/build/gcc/xgcc
-B/usr/local/source/RTEMS/tools/build/gcc/ -nostdinc
-B/usr/local/source/RTEMS/tools/build/i386-rtems/newlib/ -isystem
/usr/local/source/RTEMS/tools/build/i386-rtems/newlib/targ-include
-isystem /usr/local/source/RTEMS/tools/gcc-3.0.4/newlib/libc/include
-B/opt/rtems/i386-rtems/bin/ -B/opt/rtems/i386-rtems/lib/ -isystem
/opt/rtems/i386-rtems/include -o conftest -g -O2   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
gmake: *** [configure-target-newlib] Error 1



When I configure and build for --target=m68k-rtems the above error does
not occur.  There's a warning at the same point:
.
.
.
gmake[1]: Leaving directory `/usr/local/source/RTEMS/tools/build/gcc'
Configuring in m68k-rtems/newlib
Created "Makefile" in
/usr/local/source/RTEMS/tools/build/m68k-rtems/newlib
/opt/rtems/m68k-rtems/bin/ld: warning: cannot find entry symbol _start;
defaulting to 8000007c

but it doesn't seem to cause any problems.


> 
> gcc 3.1 branch should be cut shortly.  There are no known
>   RTEMS patches for that.  The state is better that 3.0.  I still
>   only build and report on C/C++.  The target release date is in
>   a "couple of months".

Except that as of today the compiler still gets a fatal internal error
when trying to compile libgcc2.c with -msoft-float for i386 targets....

> 
> binutils 2.12 should be out any day.  I tested and reported
>   test results on 40 targets.  No RTEMS patches needed.

Good.

> 
> newlib 1.10.0 is out and requires a couple of minor patches that
>   actually are not RTEMS specific. :)
>   There are no immediate plans for 1.10.1.

Not so good.  I would have thought that a generic problem like that
would trigger a x.x.1 release quite quickly.


-- 
Eric Norum                                 eric.norum at usask.ca
Department of Electrical Engineering       Phone: (306) 966-5394
University of Saskatchewan                 FAX:   (306) 966-5407
Saskatoon, Canada.



More information about the users mailing list