upgrading g++ but not gcc

Gregory Nowak greg at romuald.net.eu.org
Sat Sep 21 20:04:13 EDT 2002


My main reason for sticking with gcc 2.95.3 is for compiling the kernel, since people (including myself) have experienced problems when compiling early 2.4.x versions with gcc 3.x. Is it ok to compile the newer 2.4.x releases with gcc 3.2?

Greg


On Sun, Sep 22, 2002 at 08:51:37AM +1000, Aaron Howell wrote:
> Hi Greg,
> No you cannot upgrade just g++, internally under /usr/lib/gcc-lib/whatever-version there are a whole bunch of interdepent programs what call one another,
> as well as more headers which are compiler version dependent (which is why they don't live under /usr/include.)
> However, there's no reason why you can't have more than one version of the compiler installed on your system at once.
> Just be careful when you install the new binaries that they end up being called gcc3, c++3 etc,
> then edit the CC define inyour Makefile to point to gcc3.
> Redhat does this in their current beta, they have gcc, which is gcc 3.2 and gcc295 which is gcc 2.95
> (for those who still have code that won't compile under gcc 3.2).
> You can elect not to install the gcc295 package, or you can elect to remove it once you have fixed up all your source code so that it compiles under gcc 3.2.
> Hope that helps.
> Regards
> Aaron




More information about the Speakup mailing list