[Nix-dev] Re: stdenv-linux depending on bootstrap-tools in stdenv-updates

Lluís Batlle i Rossell viriketo at gmail.com
Thu Aug 5 08:39:02 CEST 2010


On Wed, Aug 04, 2010 at 12:29:11AM +0200, Lluís Batlle i Rossell wrote:
> Hello,
> 
> in stdenv-updates we have had, since the usage of ppl in the main gcc, a
> dependency of gcc on libstdc++ (that is, the c++ runtime library available at
> bootstrap tools). This makes all to hold the bootstrap-tools in the system.
> 
> I could link statically ppl, gmpxx and cloog-ppl to gcc, but gcc keeps on
> linking to libtsdc++ (because the c++ code in ppl,. needs it), so this now has
> three solutions:
> - Switch the gcc's libstdc++ dynamic dependency to that just built using a
>   patchelf trick. This may work or not depending on how close the libstdc++ of
>   the bootstrap tools is to to that of the new gcc.
I did this; 'rpath' changes where to take the libstdc++ from.

Nevertheless, the 'ppl' and 'cloog-ppl' libraries have c++ binaries that keep
references to bootstrap-tools' libstdc++; They are: "ppl-config" and alike. 
And gcc keeps references to those libraries (only to show how gcc was built).

So now 'gcc' does not refer to bootstrap-tools directly, but the libs
derivations do. How to break this reference to the bootstrap-tools?

Maybe what we should do is copy all those libraries to gcc's $out/lib, and build
gcc pointing to them?



More information about the nix-dev mailing list