Unable to install gcc 3.3 on redhat linux

  • linuxlearn
  • Born
  • Born
  • linuxlearn
  • Posts: 1

Post 3+ Months Ago

Hi all,

I am trying to install gc 3.3.2 on redhat linux machine which has gcc 3.2.3 on it already.

I installed gcc3.3.3 .tar.gz file and followed the steps,

> tar zxvf gcc3.3.3 .tar.gz
> ./configure --prefix=<install_dir>
> ./make
I am getting the following error message , Can anybody please let em knwo the solution to succesffuly install gcc.

bip/cad/linux/gcc/gcc-3.3.2/gcc/xgcc -B/bip/cad/linux/gcc/gcc-3.3.2/gcc/ -B/bip/cad/linux/gcc/x86_64-unknown-linux-gnu/bin/ -B/bip/cad/linux/gcc/x86_64-unknown-linux-gnu/lib/ -isystem /bip/cad/linux/gcc/x86_64-unknown-linux-gnu/include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc/32/libgcc.map -o 32/libgcc_s.so.1 -m32 libgcc/32/_muldi3.o libgcc/32/_negdi2.o libgcc/32/_lshrdi3.o libgcc/32/_ashldi3.o libgcc/32/_ashrdi3.o libgcc/32/_ffsdi2.o libgcc/32/_clz.o libgcc/32/_cmpdi2.o libgcc/32/_ucmpdi2.o libgcc/32/_floatdidf.o libgcc/32/_floatdisf.o libgcc/32/_fixunsdfsi.o libgcc/32/_fixunssfsi.o libgcc/32/_fixunsdfdi.o libgcc/32/_fixdfdi.o libgcc/32/_fixunssfdi.o libgcc/32/_fixsfdi.o libgcc/32/_fixxfdi.o libgcc/32/_fixunsxfdi.o libgcc/32/_floatdixf.o libgcc/32/_fixunsxfsi.o libgcc/32/_fixtfdi.o libgcc/32/_fixunstfdi.o libgcc/32/_floatditf.o libgcc/32/_clear_cache.o libgcc/32/_trampoline.o libgcc/32/__main.o libgcc/32/_exit.o libgcc/32/_absvsi2.o libgcc/32/_absvdi2.o libgcc/32/_addvsi3.o libgcc/32/_addvdi3.o libgcc/32/_subvsi3.o libgcc/32/_subvdi3.o libgcc/32/_mulvsi3.o libgcc/32/_mulvdi3.o libgcc/32/_negvsi2.o libgcc/32/_negvdi2.o libgcc/32/_ctors.o libgcc/32/_divdi3.o libgcc/32/_moddi3.o libgcc/32/_udivdi3.o libgcc/32/_umoddi3.o libgcc/32/_udiv_w_sdiv.o libgcc/32/_udivmoddi4.o libgcc/32/unwind-dw2.o libgcc/32/unwind-dw2-fde-glibc.o libgcc/32/unwind-sjlj.o libgcc/32/unwind-c.o -lc && rm -f libgcc_s_32.so && ln -s 32/libgcc_s.so.1 libgcc_s_32.so
/usr/bin/ld: cannot open crti.o: No such file or directory
collect2: ld returned 1 exit status
make[2]: *** [32/libgcc_s_32.so] Error 1
make[2]: Leaving directory `/bip/cad/linux/gcc/gcc-3.3.2/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/bip/cad/linux/gcc/gcc-3.3.2/gcc'
make: *** [all-gcc] Error 2
233.000u 25.240s 5:49.02 73.9% 0+0k 0+0io 1228349pf+0w
But I am getting following error,

Thanks in advance.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • this213
  • Guru
  • Guru
  • User avatar
  • Posts: 1260
  • Loc: ./

Post 3+ Months Ago

Is this RHEL? If not, you should upgrade to either CentOS or Fedora as the newest RHL is at least 3 years old by now. If this is a production machine, don't touch gcc! If it's not a production machine, upgrade to something with gcc 4.

Anywho... You shouldn't be installing *anything* from source on any RPM based distribution. By doing so, you're creating huge holes in RPM's dependency database. This is exceptionally true for gcc - which is as core to Linux as the kernel itself.

Your actual error is that it cannot find crti.o. See if you have this file in /usr/lib/. You probably do, but best to check the simple stuff first.

If for some odd reason you absolutely cannot upgrade the OS yet need to upgrade gcc, you have 2 options: You can either install yum, find a repository for your distribution and just "yum upgrade gcc", or you can check in to dependency hell.

If you must enter dependency hell, move the gcc RPM that you're going to download into its own directory and do "rpm -Uvh *.rpm" then write down the 500 or so dependencies that show up ("SOME_PACKAGE/LIBRARY >= SOME_VERSION is needed by PACKAGENAME"), then go download all of the packages that provide whatever is asked for and put them into the same directory as your gcc rpm, then repeat the process until the middle of next month when you finally complete it. While you're at it, you might as well do the kernel and just upgrade to the latest gcc you can find an rpm for (or get a spec file for).

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 30 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.