Errors Compiling GCC 3.2.2 on Fedora Core4

Mike Gatford
Mon Dec 5 14:51:00 GMT 2005


I'm having trouble compiling GCC 3.2.2 on Fedora Core 4.

I have untarred the source to:


I have created the directory


I cd into /export/packages/gcc/objdir and type


and then

make bootstrap

I eventually get the error:

make[2]: Entering directory `/export/packages/gcc/objdir/gcc'
gcc -c -DIN_GCC -g -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long 
-DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I../../gcc-3.2.2/gcc 
-I../../gcc-3.2.2/gcc/. -I../../gcc-3.2.2/gcc/config 
-I../../gcc-3.2.2/gcc/../include ../../gcc-3.2.2/gcc/read-rtl.c -o 
In file included from ../../gcc-3.2.2/gcc/read-rtl.c:24:
../../gcc-3.2.2/gcc/rtl.h:125: warning: type of bit-field ‘code’ is a 
GCC extension
../../gcc-3.2.2/gcc/rtl.h:128: warning: type of bit-field ‘mode’ is a 
GCC extension
../../gcc-3.2.2/gcc/read-rtl.c: In function ‘fatal_with_file_and_line’:
../../gcc-3.2.2/gcc/read-rtl.c:62: warning: traditional C rejects ISO C 
style function definitions
../../gcc-3.2.2/gcc/read-rtl.c: In function ‘read_rtx’:
../../gcc-3.2.2/gcc/read-rtl.c:662: error: invalid lvalue in increment
make[2]: *** [read-rtl.o] Error 1
make[2]: Leaving directory `/export/packages/gcc/objdir/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/export/packages/gcc/objdir/gcc'
make: *** [bootstrap] Error 2

I have gcc 4.0.0 installed on teh box too.

Any help would be gratefully received.


More information about the Gcc-help mailing list