[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RTEMS vs. egcs-1.1a



My attempts at building an m68k-rtems egcs-1.1 haven't been very  
successful.

1) I downloaded egcs-1.1a and installed in in my .../RTEMS/src/tools  
directory.
2) I changed GCC=egcs-1.0.2 to GCC=egcs-1.1.a the RTEMS  
tool-building script.
3) I turned it loose!
4) It chugged away for a couple of hours only to die while trying to  
build the target libiberty library:
=====================================================================
test x"no" != xyes || \
  /shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/gcc/xgcc  
-B/shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/gcc/ -idirafter  
/shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/m68k-rtems/newlib/targ-include  
-idirafter /shareNeXT/OS4.2/RTEMS/src/tools/src/newlib/libc/include  
-nostdinc -c -DHAVE_CONFIG_H -O2 -I.  
-I../../../src/libiberty/../include    
../../../src/libiberty/vprintf.c -o pic/vprintf.o
/shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/gcc/xgcc  
-B/shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/gcc/ -idirafter  
/shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/m68k-rtems/newlib/targ-include  
-idirafter /shareNeXT/OS4.2/RTEMS/src/tools/src/newlib/libc/include  
-nostdinc -c -DHAVE_CONFIG_H -O2 -I.  
-I../../../src/libiberty/../include  ../../../src/libiberty/vprintf.c
test x"no" != xyes || \
  /shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/gcc/xgcc  
-B/shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/gcc/ -idirafter  
/shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/m68k-rtems/newlib/targ-include  
-idirafter /shareNeXT/OS4.2/RTEMS/src/tools/src/newlib/libc/include  
-nostdinc -c -DHAVE_CONFIG_H -O2 -I.  
-I../../../src/libiberty/../include    
../../../src/libiberty/vsprintf.c -o pic/vsprintf.o
/shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/gcc/xgcc  
-B/shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/gcc/ -idirafter  
/shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/m68k-rtems/newlib/targ-include  
-idirafter /shareNeXT/OS4.2/RTEMS/src/tools/src/newlib/libc/include  
-nostdinc -c -DHAVE_CONFIG_H -O2 -I.  
-I../../../src/libiberty/../include   
../../../src/libiberty/vsprintf.c
../../../src/libiberty/vsprintf.c: In function `vsprintf':
../../../src/libiberty/vsprintf.c:47: structure has no member named  
`_flag'
../../../src/libiberty/vsprintf.c:47: `_IOWRT' undeclared (first use  
in this function)
../../../src/libiberty/vsprintf.c:47: (Each undeclared identifier is  
reported only once
../../../src/libiberty/vsprintf.c:47: for each function it appears in.)
../../../src/libiberty/vsprintf.c:47: `_IOSTRG' undeclared (first  
use in this function)
../../../src/libiberty/vsprintf.c:48: structure has no member named `_ptr'
../../../src/libiberty/vsprintf.c:49: structure has no member named `_cnt'
gmake[1]: *** [vsprintf.o] Error 1
gmake: *** [all-target-libiberty] Error 2
=====================================================================



5) I modified the tool-building script to add --with-newlib to the  
configure options.
6) A couple of hours later it again dies.  This time it's an error  
in the cross-compiler!
=====================================================================
test x"no" != xyes || \
  /shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/gcc/xgcc  
-B/shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/gcc/ -idirafter  
/shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/m68k-rtems/newlib/targ-include  
-idirafter /shareNeXT/OS4.2/RTEMS/src/tools/src/newlib/libc/include  
-nostdinc -c -g -O2 -fno-implicit-templates -I. -I../../../src/libio  
-nostdinc++   ../../../src/libio/parsestream.cc -o pic/parsestream.o
/shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/gcc/xgcc  
-B/shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/gcc/ -idirafter  
/shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/m68k-rtems/newlib/targ-include  
-idirafter /shareNeXT/OS4.2/RTEMS/src/tools/src/newlib/libc/include  
-nostdinc -c -g -O2 -fno-implicit-templates -I. -I../../../src/libio  
-nostdinc++  ../../../src/libio/parsestream.cc
test x"no" != xyes || \
  /shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/gcc/xgcc  
-B/shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/gcc/ -idirafter  
/shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/m68k-rtems/newlib/targ-include  
-idirafter /shareNeXT/OS4.2/RTEMS/src/tools/src/newlib/libc/include  
-nostdinc -c -g -O2 -fno-implicit-templates -I. -I../../../src/libio  
-nostdinc++   ../../../src/libio/pfstream.cc -o pic/pfstream.o
/shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/gcc/xgcc  
-B/shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/gcc/ -idirafter  
/shareNeXT/OS4.2/RTEMS/src/tools/build-m68k-tools/m68k-rtems/newlib/targ-include  
-idirafter /shareNeXT/OS4.2/RTEMS/src/tools/src/newlib/libc/include  
-nostdinc -c -g -O2 -fno-implicit-templates -I. -I../../../src/libio  
-nostdinc++  ../../../src/libio/pfstream.cc
../../src/gcc/../../src/gcc/cse.c:2043: Internal compiler error in  
function canon_hash
gmake[1]: *** [pfstream.o] Error 1
=====================================================================


7) I gave up.

---
Eric Norum                                 eric at skatter.usask.ca
Saskatchewan Accelerator Laboratory        Phone: (306) 966-6308
University of Saskatchewan                 FAX:   (306) 966-6058
Saskatoon, Canada.