This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: install older version than 4.0.0
- From: Ian Lance Taylor <ian at airs dot com>
- To: "Qinghai Zhang" <qz27 at cornell dot edu>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 03 Jul 2005 15:07:39 -0700
- Subject: Re: install older version than 4.0.0
- References: <49409.24.59.73.0.1120422926.squirrel@24.59.73.0>
"Qinghai Zhang" <qz27@cornell.edu> writes:
> I have Fedora Core 4 installed on my PC and the gcc installed is 4.0.0.
> To compile some other older software, I have to have gcc3.3.2
> installed. So I following the standard steps on the website of
> gcc.gnu.org:
>
> tar zxf gcc-3.3.2.tar
> ../gccObj/configure --prefix=/usr/local/gcc-3.3.2
> make bootstrap
>
> However, 'make bootstrap' spat out the following error shortly after it
> was launched:
>
> ../../gcc-3.3.2/gcc/read-rtl.c: In function Âfatal_with_file_and_lineÂ:
> ../../gcc-3.3.2/gcc/read-rtl.c:53: warning: traditional C rejects ISO C
> style fu nction definitions
> ../../gcc-3.3.2/gcc/read-rtl.c: In function Âread_rtxÂ:
> ../../gcc-3.3.2/gcc/read-rtl.c:653: error: invalid lvalue in increment
> make[2]: *** [read-rtl.o] Error 1
> make[2]: Leaving directory `/home/qz27/gccObj/gcc'
> make[1]: *** [stage1_build] Error 2
> make[1]: Leaving directory `/home/qz27/gccObj/gcc'
> make: *** [bootstrap] Error 2
>
>
> Could you please give me some idea about how to work around this?
> Thanks a lot for your help!
Use gcc 3.3.6 instead. It's unlikely that there is a program which
requires 3.3.2 but can not be built with 3.3.6.
If you really just want to patch 3.3.2, this is the patch you want:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/include/obstack.h.diff?r1=1.5&r2=1.5.50.1
Ian