Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-04-28 Thread Jose Fonseca
On 28/04/15 12:22, Emil Velikov wrote: On 28 April 2015 at 11:16, Jose Fonseca wrote: Hi, I don't know if in the end of this thread there was an agreement that Valve should only use bundled libstdc++ if it's newer than the system's libstdc++, or just no agreement at all. It seems to me tha

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-04-28 Thread Emil Velikov
On 28 April 2015 at 11:16, Jose Fonseca wrote: > Hi, > > > I don't know if in the end of this thread there was an agreement that Valve > should only use bundled libstdc++ if it's newer than the system's libstdc++, > or just no agreement at all. > > It seems to me that there is no agreement atm :-(

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-04-28 Thread Jose Fonseca
Hi, I don't know if in the end of this thread there was an agreement that Valve should only use bundled libstdc++ if it's newer than the system's libstdc++, or just no agreement at all. But just for future reference (or in case any distro decides to apply the patches themselves), I'd like

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-20 Thread Julien Cristau
On Thu, Mar 12, 2015 at 16:15:56 +0900, Michel Dänzer wrote: > On 11.03.2015 05:07, Vivek Dasmohapatra wrote: > > Hi - As you probably already know, there can only be one version of > > libstdc++.so in your runtime link chain - This is usually not a problem, > > but when things are linked against

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-17 Thread Emil Velikov
On 16/03/15 23:44, Ian Romanick wrote: > On 03/13/2015 02:32 PM, Emil Velikov wrote: >> * Allow people to static link against libgcc/libstdc++. >> >> Imho this should be option, disabled by default provided at configure >> time. This way builders/distributions can op-in if they choose to do so. >

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-16 Thread Ian Romanick
On 03/13/2015 02:32 PM, Emil Velikov wrote: > * Allow people to static link against libgcc/libstdc++. > > Imho this should be option, disabled by default provided at configure > time. This way builders/distributions can op-in if they choose to do so. I'm very strongly opposed to this. We alread

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-15 Thread Francisco Jerez
Emil Velikov writes: > On 14 March 2015 at 13:04, Emil Velikov wrote: >> On 13/03/15 22:10, Francisco Jerez wrote: >>> Emil Velikov writes: > ... * Use bundled library if newer (check the SONAME). For libgcc_s at least, the library does not seems to be forward compatible. >

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-15 Thread Emil Velikov
On 14 March 2015 at 13:04, Emil Velikov wrote: > On 13/03/15 22:10, Francisco Jerez wrote: >> Emil Velikov writes: ... >>> >>> * Use bundled library if newer (check the SONAME). >>> >>> For libgcc_s at least, the library does not seems to be forward compatible. >>> >> >> That belongs to your lis

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-14 Thread Emil Velikov
On 13/03/15 22:10, Francisco Jerez wrote: > Emil Velikov writes: > >> Hi all, >> >> Allow me to sum all that is said here, plus elaborate on some of the >> myths and alternative solutions proposed. >> >> Considering that this is a never ending and somewhat emotional topic, I >> would kindly ask p

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-13 Thread Francisco Jerez
Emil Velikov writes: > Hi all, > > Allow me to sum all that is said here, plus elaborate on some of the > myths and alternative solutions proposed. > > Considering that this is a never ending and somewhat emotional topic, I > would kindly ask people to read this while in their happy place. > > >

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-13 Thread Emil Velikov
Hi all, Allow me to sum all that is said here, plus elaborate on some of the myths and alternative solutions proposed. Considering that this is a never ending and somewhat emotional topic, I would kindly ask people to read this while in their happy place. Myths - * "The LLVM-enabled varia

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-12 Thread Michel Dänzer
On 13.03.2015 03:07, Pierre-Loup A. Griffais wrote: > On 03/11/2015 09:40 AM, Ian Romanick wrote: >> On 03/11/2015 09:31 AM, Tobias Klausmann wrote: >>> The problem in not forcing this to link statically is, that if a >>> distribution decides to not use this static option, the problem persists >>>

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-12 Thread Pierre-Loup A. Griffais
On 03/11/2015 09:40 AM, Ian Romanick wrote: On 03/11/2015 09:31 AM, Tobias Klausmann wrote: The problem in not forcing this to link statically is, that if a distribution decides to not use this static option, the problem persists on that distribution. On top every lib pulled in by steam from the

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-12 Thread Kai Wasserbäch
Michel Dänzer wrote on 12.03.2015 08:15: > On 11.03.2015 05:07, Vivek Dasmohapatra wrote: >> Hi - As you probably already know, there can only be one version of >> libstdc++.so in your runtime link chain - This is usually not a problem, >> but when things are linked against the Steam runtime (for e

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-12 Thread Francisco Jerez
Ian Romanick writes: > On 03/11/2015 09:31 AM, Tobias Klausmann wrote: >> The problem in not forcing this to link statically is, that if a >> distribution decides to not use this static option, the problem persists >> on that distribution. On top every lib pulled in by steam from the >> system wo

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-12 Thread Ilia Mirkin
On Wed, Mar 11, 2015 at 12:40 PM, Ian Romanick wrote: > On 03/11/2015 09:31 AM, Tobias Klausmann wrote: >> The problem in not forcing this to link statically is, that if a >> distribution decides to not use this static option, the problem persists >> on that distribution. On top every lib pulled i

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-12 Thread Jose Fonseca
On 11/03/15 16:01, Francisco Jerez wrote: Vivek Dasmohapatra writes: Hi - Hi, As you probably already know, there can only be one version of libstdc++.so in your runtime link chain That's a common misconception, in principle several versions of libstdc++.so with different DT_SONAME (i.e.

[Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-12 Thread Vivek Dasmohapatra
Hi - As you probably already know, there can only be one version of libstdc++.so in your runtime link chain - This is usually not a problem, but when things are linked against the Steam runtime (for example), they can end up with two - one from the steam runtime, and one pulled in via the mesa dri

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-12 Thread Francisco Jerez
Vivek Dasmohapatra writes: > Hi - Hi, > As you probably already know, there can only be one version of > libstdc++.so in your runtime link chain That's a common misconception, in principle several versions of libstdc++.so with different DT_SONAME (i.e. with mutually incompatible ABIs) can be l

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-12 Thread Michel Dänzer
On 11.03.2015 05:07, Vivek Dasmohapatra wrote: > Hi - As you probably already know, there can only be one version of > libstdc++.so in your runtime link chain - This is usually not a problem, > but when things are linked against the Steam runtime (for example), they > can end up with two - one from

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-11 Thread Vivek Dasmohapatra
Here's a version of the mesa build patches rolled into one patch, and driven by a configure argument --enable-static-libstdc++ which defaults to being off.From 2e967e89fefc2a107c29c6581c9885475a7b7a84 Mon Sep 17 00:00:00 2001 From: vivek Date: Thu, 12 Mar 2015 01:30:19 + Subject: [PATCH 1/2]

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-11 Thread Ian Romanick
On 03/11/2015 09:32 AM, Jose Fonseca wrote: > I can almost bet that NVIDIA uses C++ somewhere, but no dependencies on > libstdc++. Not sure if they chose to statically link libstdc++ to > support multiple distros, or to avoid issues like applications shipping > their own libstdc++... My recollect

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-11 Thread Ian Romanick
On 03/11/2015 09:31 AM, Tobias Klausmann wrote: > The problem in not forcing this to link statically is, that if a > distribution decides to not use this static option, the problem persists > on that distribution. On top every lib pulled in by steam from the > system would need to be link staticall

Re: [Mesa-dev] Statically linking libstdc++ and libgcc

2015-03-11 Thread Tobias Klausmann
On 11.03.2015 17:01, Francisco Jerez wrote: Vivek Dasmohapatra writes: Hi - Hi, As you probably already know, there can only be one version of libstdc++.so in your runtime link chain That's a common misconception, in principle several versions of libstdc++.so with different DT_SONAME (i.