[Nix-dev] gcc for MacOS X

Konrad Hinsen konrad.hinsen at fastmail.net
Mon Apr 23 11:12:19 CEST 2012


Ludovic Courtès writes:

 > The attached patch incorporates all these changes.

I tried to install gcc46 after applying your patches. stdenv builds fine, but
mpfr (a dependency of gcc46) fails at the link stage:

  ld: pointer in read-only segment not allowed in slidable image, used in ___gmpn_divexact_1 from /usr/local/lib/libgmp.a(dive_1.o)

I don't know what that message really means, but I wonder if it's OK to see it
linking to /usr/local/lib/libgmp.a. When I try

  nix-instantiate pkgs/top-level/all-packages.nix -A gmp

Nix tells me this gives gmp-5.0.3, which is in my Nix store. So I suspect that
the builder for mpfr picks up the wrong version of gmp.

Konrad.


More information about the nix-dev mailing list