This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: cannot build gcc 3.2.3 in Suse 10.3 (gcc 4.2.1)
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
regards,
Matteo
On Jan 5, 2008 2:36 PM, Andrew Haley <aph@redhat.com> wrote:
>
> Matteo Rama writes:
> > hello,
> > I've installed Suse 10.3, which has gcc version 4.2.1 .
> > I need also an older version of gcc, for example 3.2.3 but I haven't managed
> > to install it.
> >
> > I downloaded gcc-3.2.3.tar.gz (the md5sum check was ok) then:
> >
> > >tar -zxf gcc-3.2.3.tar.gz
> > (the dir. gcc-3.2.3 is created)
> > >mkdir obj
> > >cd obj
> > > ../gcc-3.2.3/configure --prefix=/usr/local/gcc/3.2.3
> > Here is the output:
> > http://docs.google.com/Doc?id=dgwhbj6q_56mg3db2fd
> > >make
> > here the compilation fails. The output I get is here:
> > http://docs.google.com/Doc?id=dgwhbj6q_57f39sdqcp
> >
> > Any help in understanding how to fix the problem would be very much appreciated.
>
> I think it's complaining about an lvalue cast.
>
> It might be as simple as changing that line to
>
> obstack_ptr_grow (&vector_stack, read_rtx (infile));
>
> Andrew.
>
> --
> Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
> Registered in England and Wales No. 3798903
>