ithelp@xxxxxxxxxxxxxxxxx wrote:
I am unable to install gcc-3.2.3 on RHEL5 64 bit machine. While compiling
it gives multiple errors. (I have downloaded gcc from the site
ftp://ftp.gwdg.de/pub/misc/gcc/releases/gcc-3.2.3/). Can you please
suggest me a method for installation.
Please refresh your short-time memory with :
http://gcc.gnu.org/ml/gcc-help/2008-07/msg00077.html
Quite clearly Andrew suggests installing some patches for the gcc-3.2.3
sources when compiling them with the newer GCCs ! Among them a patch
for the error you got :
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. -I./. -I./config
-I./../include ./read-rtl.c -o read-rtl.o
In file included from ./read-rtl.c:24:
/rtl.h:125: warning: type of bit-field âcodeâ is a GCC extension
/rtl.h:128: warning: type of bit-field âmodeâ is a GCC extension
/read-rtl.c: In function âfatal_with_file_and_lineâ:
/read-rtl.c:62: warning: traditional C rejects ISO C style function
definitions
/read-rtl.c: In function âread_rtxâ:
/read-rtl.c:662: error: invalid lvalue in increment
make[2]: *** [read-rtl.o] Error 1
The row 662 requires a patch, the patch was given but for some weird
reason you didn't install it :(