RE: [opensuse] Downgrading gcc



|-----Original Message-----
|From: Adrian Vraciu
|It depends wat version of gcc you want. Generally, is not a
|good idea to downgrade the compiler because the binaries from
|your system are compiled with the gcc that comes with the
|system. So, if you downgrade the gcc you could experience
|problems with the compatibility with current binaries.
|First, you have to interest that binaries built with gcc 4.1
|are comaptible with binaries built with gcc 3.x. More about
|that you can find at www.gentoo.org or gentoo official forum.
|
|On Wednesday 28 February 2007 01:18:36 pm Donato Azevedo wrote:
|> Hi guys,
|> I'd like to know if there's a way to downgrade gcc from 4.1 to 3.X.
|>
|> I mean a manageable way, in the sense that I need not compile a new
|> gcc and remove the old one by hand.
|>

You can use environment modules:
http://www-theor.ch.cam.ac.uk/IT/software/modules.html

Install separate instances of the software under /opt
and play with the environment variables like PATH, LD_LIBRARY_PATH etc.

I went through the same process back during the Redhat RH2.1 to RH3 transisiton.
glibc3.3 where not compatible with glibc3.2 so we used modules to
manage to run expensive HPC software not yet released/compiled for RH3.

--
MortenB
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Compiling MPlayer under gcc 4.0.2
    ... I recently decided I would install MPlayer onto my Suse 10 box and have ... me to downgrade my gcc compiler from 4.0.2 to gcc 3.x. ... Is this a difficult process to downgrade my C compiler? ...
    (alt.os.linux.suse)
  • Re: Heisenbergsche Segfaults
    ... > Binaries, oder habe ich das jetzt falsch verstanden? ... Die Compiler werden einmal gebaut, ... Bei meinem ersten LFS-System wurde der gcc dreimal gebaut, ... Mir ist z.B. seit meinem ersten LFS noch nie die Bash ...
    (de.comp.os.unix.linux.misc)
  • Re: Install different libs for different C++ compilers?
    ... You're not going to get the gcc 3 C++ libraries unless you compile your ... then are to build your software once with each compiler ... and get binaries that will work on either platform. ...
    (RedHat)
  • Re: Install different libs for different C++ compilers?
    ... > software on 7.3 and get binaries that will work on either platform. ... I view this from the more practical side: The installation has gcc 3 ... libs by default. ... if I compile using the default C++ compiler ...
    (RedHat)
  • Re: Multi kernel tree support on the same distro?
    ... This means 2.6 supports both gcc versions. ... If you don't want to recompile gcc, simply rename the binaries and you're ... kernel with is totally independant on the compiler you build your apps with. ...
    (Linux-Kernel)