gcc-3.2.3 installation failed on RHEL5 -64 bit machine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

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.

Details of RHEL5 OS

 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64
GNU/Linux
Red Hat Enterprise Linux Server release 5.2 (Tikanga)


I tried the following steps
---------------------------------------------------------------------------
1) tar xvf gcc-3.2.3.tar
2) cd gcc-3.2.3
3) ./configure --prefix=/picobuild/ithelp/gcc
4) make bootstrap

Gives the following errors

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 rtl.c -o rtl.o
In file included from 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
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
make[2]: Leaving directory `/picobuild/ithelp/gcc-3.2.3/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/picobuild/ithelp/gcc-3.2.3/gcc'
make: *** [bootstrap] Error 2

----------------------------------------------------------------------------

1) tar xvf gcc-3.2.3.tar
3) mkdir /picobuild/ithelp/gcc
4) cd /picobuild/ithelp/gcc-3.2.3
2) ./configure --prefix=/picobuild/ithelp/gcc --enable-languages=c++
3) make bootstrap

Gives the following errors

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 rtl.c -o rtl.o
In file included from 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
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
make[2]: Leaving directory `/picobuild/ithelp/gcc-3.2.3/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/picobuild/ithelp/gcc-3.2.3/gcc'
make: *** [bootstrap] Error 2

---------------------------------------------------------------------------

Thanks
Prasanth



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux