This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Installing GCC 4.9.0 breaks GCC 4.8.2 when using -static-libstdc++
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Csaba Raduly <rcsaba at gmail dot com>
- Cc: gcc-help at gnu dot org
- Date: Sun, 1 Jun 2014 12:35:43 +0100
- Subject: Re: Installing GCC 4.9.0 breaks GCC 4.8.2 when using -static-libstdc++
- Authentication-results: sourceware.org; auth=none
- References: <CAEhDDbA0oms0rcoFEKmvLejTS5NFjdV8FkoB4G4987N1T8sqUA at mail dot gmail dot com> <CAH6eHdRU669gppaS5mhQdrz6ePJ5hGbNL4EJoqfOaN0qVUzUqw at mail dot gmail dot com> <CAEhDDbBb-7K3JoQYruCpGqpGh9-BF2omxjeG8tQhxGk8GRtU4Q at mail dot gmail dot com>
On 1 June 2014 07:53, Csaba Raduly wrote:
> On Fri, May 30, 2014 at 4:48 PM, Jonathan Wakely wrote:
>> On 30 May 2014 15:29, Csaba Raduly wrote:
>>> Do I have to give up on
>>> switching back and forth between 4.8.2 and 4.9.0?
>>
>> No, you just need to install them so that they don't overwrite each
>> other's files.
>
> How am I supposed to do that? I just ran "make install" , and all the
> compiler versions live happily next to each other, except for
> libstdc++.a :(
The obvious way is to install the different versions to different prefixes.
You can also use the --enable-version-specific-runtime-libs but it is
broken for multilib (e.g. x86 and x86_64) compilers, see
https://gcc.gnu.org/PR32415