Re: [Nix-dev] cabal install vs. libgcc_s.so.1 must be installed for pthread_cancel to work

2014-08-12 Thread Eelco Dolstra
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

Re: [Nix-dev] cabal install vs. libgcc_s.so.1 must be installed for pthread_cancel to work

2014-08-12 Thread Malcolm Matalka
As a bandaid, I have gotten around this in some ocaml packages by using LD_PRELOAD: export LD_PRELOAD=$HOME/.nix-profile/lib/libgcc_s.so This 'solves' the problem for me. Gergely Risko writes: > Hi, > > Sorry for the long email, this is a somewhat complicated topic. > > I hope both Eelco and P

Re: [Nix-dev] cabal install vs. libgcc_s.so.1 must be installed for pthread_cancel to work

2014-08-11 Thread Gergely Risko
Hi, Further updates on this. The origin of this "glibc without gcc_s" feature is: https://github.com/nixos/nixpkgs/commit/4b27d2870197b26b7c170caa333944231715d4a3 Someone did an svn merge without keeping the commit messages, so the original reasoning is lost. (I'm not willing to get an old s

[Nix-dev] cabal install vs. libgcc_s.so.1 must be installed for pthread_cancel to work

2014-08-11 Thread Gergely Risko
Hi, Sorry for the long email, this is a somewhat complicated topic. I hope both Eelco and Peter will find the time to read through though, thanks! :) I started to get "libgcc_s.so.1 must be installed for pthread_cancel to work" errors randomly with the new parallel cabal install. This is only a