I am trying to build gcc-4.1-20050909 on a G4 with YellowDog Linux 3 (2.4 ppc kernel). The configure script is run as:
#!/bin/bash PREFIX=/usr/gcc-4.1-20050909 mkdir -p build cd build CC=/usr/gcc-4.0.1/bin/gcc CXX=/usr/gcc-4.0.1/bin/g++ \ /home/lipovsky/gccstuff/gcc-4.1-20050909/configure \ --with-cpu=7450 \ --enable-altivec \ --enable-shared \ --enable-threads=posix \ --enable-languages=c,c++ \ --disable-checking \ --with-system-zlib \ --enable-__cxa_atexit \ --enable-c99 \ --enable-long-long \ --prefix=$PREFIX make The build stops with this: /home/lipovsky/gccstuff/build/./gcc/xgcc -B/home/lipovsky/gccstuff/build/./gcc/ -B/usr/gcc-4.1-20050909/powerpc-unknown-linux-gnu/bin/ -B/usr/gcc-4.1-20050909/powerpc-unknown-linux-gnu/lib/ -isystem /usr/gcc-4.1-20050909/powerpc-unknown-linux-gnu/include -isystem /usr/gcc-4.1-20050909/powerpc-unknown-linux-gnu/sys-include -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I/home/lipovsky/gccstuff/gcc-4.1-20050909/gcc -I/home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/. -I/home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/../include -I/home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/../libcpp/include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -msdata=none \ -c /home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/crtstuff.c -DCRT_BEGIN \ -o crtbegin.o In file included from ./tconfig.h:8, from /home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/crtstuff.c:61: /home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/../include/ansidecl.h:179:6: warning: integer overflow in preprocessor expression /home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/../include/ansidecl.h:246:6: warning: integer overflow in preprocessor expression /home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/../include/ansidecl.h:252:7: warning: integer overflow in preprocessor expression /home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/../include/ansidecl.h:261:33: warning: integer overflow in preprocessor expression /home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/../include/ansidecl.h:286:7: warning: integer overflow in preprocessor expression /home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/../include/ansidecl.h:295:7: warning: integer overflow in preprocessor expression /home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/../include/ansidecl.h:319:7: warning: integer overflow in preprocessor expression /home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/../include/ansidecl.h:334:7: warning: integer overflow in preprocessor expression /home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/../include/ansidecl.h:348:7: warning: integer overflow in preprocessor expression /home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/../include/ansidecl.h:357:7: warning: integer overflow in preprocessor expression /home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/../include/ansidecl.h:367:5: warning: integer overflow in preprocessor expression In file included from ./tm.h:13, from /home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/crtstuff.c:64: /home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/defaults.h:558:1: warning: "PREFERRED_DEBUGGING_TYPE" redefined In file included from ./tm.h:11, from /home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/crtstuff.c:64: /home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/config/rs6000/sysv4.h:646:1: warning: this is the location of the previous definition In file included from /home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/crtstuff.c:65: /home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/unwind-dw2-fde.h:1: error: expected identifier or '(' before 'PRAGMA' token /home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/unwind-dw2-fde.h:175: warning: unused parameter 'obj' /home/lipovsky/gccstuff/gcc-4.1-20050909/gcc/unwind-dw2-fde.h:182: error: expected identifier or '(' before 'PRAGMA' token make[1]: *** [crtbegin.o] Error 1 make[1]: Leaving directory `/home/lipovsky/gccstuff/build/gcc' make: *** [all-gcc] Error 2 -- Summary: crtstuff.c:65 Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: lipovsky at skycomputers dot com CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23801