PDA

View Full Version : Trouble after installing GCC 3.3.2



Obli
02-10-2004, 11:44 AM
My apologies for asking this since it's all but related to GL however, after installing the new GCC I get this error from the program:
"/usr/lib/libgcc_s.so.1: version `GCC_3.3' not found (required by /usr/local/lib/libstdc++.so.5)"
I rebuilt and reinstalled libgcc as stated on GCC's homepage, however problem is still there.
How this can be fixed?

idr
02-11-2004, 10:52 AM
Looks like you got a bad gcc install. Are you using the same gcc to link as the one you use to compile? The fact that it's looking for libgcc in one place and libstdc++ in another is suspicious, at best.

Obli
02-12-2004, 09:00 AM
Originally posted by idr:
Looks like you got a bad gcc install.[B]Do you mean a corrupted package or a wrong installation? I installed just as specified in the docs.
Originally posted by idr:
[B]Are you using the same gcc to link as the one you use to compile?[B]Yes. After the new GCC were in place I rebuilt libgcc. This was suggested by google (which found very few references anyway). This was also being stated on some well-hidden docs.
Looks like there's also a problem in how program code is linked since the new GCC ABI looks to be incompatible with the old one (not sure I understood it correctly since this would be a real pain).
Actually, looks like the open source community suggest to "reinstall the distro from scratch". Wow.
Google found very few references to that problem. Looks like everybody is more interested in running the whole OS and all its services rather that keeping a vehicle development machine up to date.

Originally posted by idr:
[B]The fact that it's looking for libgcc in one place and libstdc++ in another is suspicious, at best.Oh well, if you say so. I really don't noticed this however, I checked those files and everything seems to be at its place (also checked file date and the date of the new libgcc is the same as the new installation).

Thank you for your answer, at least you spent some time on my problem.

idr
02-12-2004, 01:35 PM
Well the compiler output you posted said "/usr/lib/libgcc_s.so.1 ... /usr/local/lib/libstdc++.so.5". It looks like one is coming from /usr/lib and the other is coming from /usr/local/lib.

I'm guessing that your distro was gcc 2.* based. When I've built gcc 3.* on distros like that, I've built with '--prefix=/usr/local/gcc-<version>' and '--program-suffix=-<version>'. Then, after building and installing, I just add gcc-<version>/bin to my path and explicitly invoke gcc-<version> or g++-<version>. Following the configuration (http://gcc.gnu.org/install/configure.html) , build (http://gcc.gnu.org/install/build.html) ,
and installation (http://gcc.gnu.org/install/finalinstall.html) directions carefully, I've never had any problems. Some distros may have problems if you install gcc 3.* over top of gcc 2.*, but I don't know for sure one way or the other...

Obli
02-13-2004, 10:55 AM
Originally posted by idr:
Some distros may have problems if you install gcc 3.* over top of gcc 2.*, but I don't know for sure one way or the other...Well, I figure out I'll have to reinstall everything (the browser also blown up some time ago).