cannot build gcc 3.2.3 in Suse 10.3 (gcc 4.2.1)

Tim Prince tprince@myrealbox.com
Sun Jan 6 15:54:00 GMT 2008


Matteo Rama wrote:
> thanks for the reply. It looks like replacing line 662 of read-rtl.c with
> obstack_ptr_grow (&vector_stack, read_rtx (infile));
> doesn't fix the problem. The error is still there:
> ....
> .../../gcc-3.2.3/gcc/read-rtl.c: In function 'read_rtx':
> .../../gcc-3.2.3/gcc/read-rtl.c:662: error: lvalue required as increment operand
> .../../gcc-3.2.3/gcc/read-rtl.c:662:60: warning: C++ style comments are
> not allowed in ISO C90
> .../../gcc-3.2.3/gcc/read-rtl.c:662:60: warning: (this will be reported
> only once per input file)
> make[1]: *** [read-rtl.o] Error 1
> make[1]: Leaving directory `/root/gcc/obj/gcc'
> make: *** [all-gcc] Error 2

I thought the usual suggestion, if you don't want to fix the source
code, was to build one of the earliest gcc versions which has this bug
fixed.  Then you should be able to use this older version to build the
buggy version.



More information about the Gcc-help mailing list