[Nix-dev] cabal install vs. libgcc_s.so.1 must be installed for pthread_cancel to work
Eelco Dolstra
eelco.dolstra at logicblox.com
Tue Aug 12 13:53:20 CEST 2014
Hi,
On 12/08/14 03:53, Gergely Risko wrote:
> I see the following possible solutions to this problem:
> - adopt the hack from Ceh to the GHC wrapper in some form,
> - ship libgcc_s.so with glibc (copy it there from the gcc distribution
> that we use to compile the glibc in the first place),
This is not a good idea because the libgcc_s.so from the bootstrap compiler is
not in sync with the actual gcc. So it might lack features required by the
current gcc.
Can't we just automatically pass -lgcc_s everywhere (at least for dynamic
links)? I don't know if that would cause problems for some programs, but it
probably shouldn't.
> - patch glibc to look for libgcc_s.so everywhere where the normal
> dynamic linker would look (LD_LIBRARY_PATH, current binary's rpath,
> etc.).
Yeah, if it searched the executable's RPATH, we could pass "-rpath ${gcc}/lib"
instead of "-lgcc_s", which would prevent unnecessarily loading libgcc_s.
--
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
More information about the nix-dev
mailing list