gcc2.96 (20000619) ppc-rtems doesn't build.

Sergei Organov osv@javad.ru
Fri Jun 23 04:39:00 GMT 2000


'gcc_latest_snapshot' from anon cvs doesn't build for 'powerpc-rtems' target
apparently due to bug in the C preprocessor. For stand-alone test case that
shows bug in 'cpp' refer to my a few days old posting "cpp (2.96) search path
bug" to this mailing list (gcc-bugs@gcc.gnu.org).

Below is session that shows the building problem, but I'd also like to mention
that while investigating the problem I also noticed that the path
"$prefix/$target/include" (in my case it's "/home/osv/try/ppc-rtems/include")
is the first path in the set of -I include flags when 'libgcc2.c' is
compiled. This may lead to different build process behavior depending on
either previous version of 'newlib' is already installed in the
"$prefix/$target" directory.

osv@osv$ uname -a
Linux osv 2.2.10 #2 Wed Jun 16 00:23:31 EST 1999 i686 unknown
osv@osv$ ~/cygnus/gcc/configure --prefix=/home/osv/try --target=ppc-rtems \
  --disable-haifa \
  --disable-newlib-hw-fp \
  --with-gnu-as --with-gnu-ld -with-newlib \
osv@osv$ make \
 CFLAGS="-O2" \
 CFLAGS_FOR_TARGET="-O4 -fno-common -ffunction-sections" \
 TARGET_CFLAGS="-O4 -fno-common -ffunction-sections" \

/home/osv/build/ppc-rtems/gcc-try/gcc/xgcc -B/home/osv/build/ppc-rtems/gcc-try/gcc/ -B/home/osv/try/ppc-rtems/bin/ -I/home/osv/try/ppc-rtems/include -O2 -I/home/osv/cygnus/gcc/gcc/../newlib/libc/sys/rtems/include -DCROSS_COMPILE -DIN_GCC    -O2 -isystem ./include   -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I/home/osv/cygnus/gcc/gcc -I/home/osv/cygnus/gcc/gcc/config -I/home/osv/cygnus/gcc/gcc/../include  -fno-common -mno-relocatable -mno-relocatable-lib -mcpu=505 -mstrict-align -mcall-sysv-eabi -msdata=default -DL_fixunsdfsi -c /home/osv/cygnus/gcc/gcc/libgcc2.c -o libgcc/./_fixunsdfsi.o
In file included from /home/osv/build/ppc-rtems/gcc-try/gcc/include/limits.h:117,
                 from /home/osv/build/ppc-rtems/gcc-try/gcc/include/limits.h:117,
                 from /home/osv/build/ppc-rtems/gcc-try/gcc/include/limits.h:117,
                 from /home/osv/build/ppc-rtems/gcc-try/gcc/include/syslimits.h:7,
                 from /home/osv/build/ppc-rtems/gcc-try/gcc/include/limits.h:11,
                 from /home/osv/cygnus/gcc/newlib/libc/sys/rtems/include/limits.h:14,
                 from /home/osv/cygnus/gcc/gcc/libgcc2.c:994:
/home/osv/build/ppc-rtems/gcc-try/gcc/include/limits.h:117:61: macro or `#include' recursion too deep
make[2]: *** [libgcc/./_fixunsdfsi.o] Error 1
make[2]: Leaving directory `/home/osv/build/ppc-rtems/gcc-try/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/home/osv/build/ppc-rtems/gcc-try/gcc'
make: *** [all-gcc] Error 2


More information about the Gcc-bugs mailing list