[Nix-dev] ghcWithPackages appears broken in nixpkgs HEAD?

Christian Lask lists at elfsechsundzwanzig.de
Wed Mar 25 12:12:04 CET 2015


Hi Peter!

Peter Simons <simons at cryp.to> writes:
> my guess is that you've run into a design problem in GHC that causes the
> compiler to assign randomly differing package IDs every now and then.
> The result is that libraries built locally don't fit to ones downloaded
> from Hydra. The only way out of this mess is to garbage collect all
> Haskell packages by running
>
>   $ nix-store --delete /nix/store/*-ghc-7.8.4
>
> and to compile or download everything again from scratch.

I have the same problem and tried what you mentioned. It alas doesn't
work:

  > sudo nix-store --delete /nix/store/*-ghc-7.8.4
  finding garbage collector roots...
  error: cannot delete path ‘/nix/store/rnxk1a1bz4rgy1rw4973blbfp9f0ic89-ghc-7.8.4’ since it is still alive
  0 store paths deleted, 0.00 MiB freed

When I try to see why it is still alive, I fail to see why:

> nix-store --query --referrers /nix/store/rnxk1a1bz4rgy1rw4973blbfp9f0ic89-ghc-7.8.4
/nix/store/rnxk1a1bz4rgy1rw4973blbfp9f0ic89-ghc-7.8.4
/nix/store/lwrqj5k67i3c34zldxwk4ccm2109hx47-haskell-byteable-0.1.1
/nix/store/hsnwkz9gmrbg8pbagykjdprj501zd6hq-haskell-securemem-0.1.7
/nix/store/0d1h1abird7a9idn7l4i8iv82xv4hwbr-haskell-crypto-cipher-types-0.0.9
/nix/store/0gxfk0vlk4b3z02wv1ns80vv8kpzs50m-haskell-text-1.2.0.4
/nix/store/0jz3slz7gyal3wvpg90r8h5p25hl66cp-haskell-SHA-1.6.4.1
/nix/store/kzyg3zgrwm1b0p7ginb9rxbmqbjf3s8c-haskell-dlist-0.7.1.1
/nix/store/xrfzki6gd2j0fmraf148mwmzzzfja4ig-haskell-data-default-class-0.0.1
/nix/store/dd0jf60aylv75mdbhpfsvlgrpim4dw5i-haskell-data-default-instances-dlist-0.0.1
/nix/store/gr9zzr5i62lfpzy8d3lcg1y7xnn25lyz-haskell-data-default-instances-old-locale-0.0.1
/nix/store/q1sn778yncv5gn16xakpcbphwmgkspzc-haskell-data-default-instances-base-0.0.1
/nix/store/w247rzq77kgd4kzrpaaw69c46zv6sjqg-haskell-data-default-instances-containers-0.0.1
/nix/store/5rcxvls53bmd1a5rh2v6zhsmykvz4sx7-haskell-data-default-0.5.3
/nix/store/rfb3wsf432s5qnagcb1kxnm9lva2piz5-haskell-blaze-builder-0.3.3.4
/nix/store/0pb8gamfns7n2zrgz6kjac7qix8bad7q-haskell-cookie-0.4.1.4
/nix/store/q8xq1rvdz1j4wzh98mr9v89av4vyz7w9-haskell-hashable-1.2.3.2
/nix/store/ppz6b2cyzmxww4pk2hsrdjqwgi2vsbp2-haskell-case-insensitive-1.2.0.4
/nix/store/0wbw38mbszrsv2ih1zk8a9cspzcfsqh2-haskell-http-types-0.8.6
/nix/store/17zzgwmvg332f60584ah7cx8kc4xjv3s-haskell-scientific-0.3.3.8
/nix/store/1b2lb0cp0i31lqz90vzgvlvkdphy98zr-haskell-Diff-0.3.0
/nix/store/1nq33mdg37k1l8cmx2lw8f42026g8y5n-haskell-cryptohash-0.11.6
/nix/store/2lkhk67f083xlr8skri3sqp97f9yq4q8-haskell-hourglass-0.2.8
/nix/store/456w82cfq0r3gg5paks77k33v03y8x06-haskell-stm-2.4.4
/nix/store/9c47n1jhmsmjqicmd08l8d640zvqinm6-haskell-mtl-2.1.3.1
/nix/store/rnqmydi4fsg0gd0ja24hz031fjlzdmra-haskell-asn1-types-0.3.0
/nix/store/bi5rafpsqp29vslcijsasmf16j71ivjj-haskell-asn1-encoding-0.9.0
/nix/store/4aa5l5gr9c3lr7jisyhqxc2bdmhw1b61-haskell-asn1-parse-0.9.0
/nix/store/hnnrvpskkax4q2pk72csj2kwg4yv55f2-haskell-primitive-0.5.4.0
/nix/store/gjn4k2w6g4vivfmjz2lclwl04s533qk9-haskell-vector-0.10.12.2
/nix/store/p0axhmphf4wp6kw930bn1kb9wr6mbzh7-haskell-crypto-random-0.0.9
/nix/store/5cgldb487hff9fh2ryl16ydh9kzz1yci-haskell-crypto-numbers-0.2.7
/nix/store/6qhps0hlnpya8yvv9ysvcd9lnx30nx3a-haskell-base64-bytestring-1.0.0.1
/nix/store/9sh3qrqhn43hw0g1q7l5z7jihv5wl595-haskell-cipher-aes-0.2.10
/nix/store/fqlfvhjjhibzwl0vrp9fhp6f3h9cnbqn-haskell-parsec-3.1.8
/nix/store/a7mrk1r9ph28nmvkgs9ayqc0b60brc75-haskell-network-uri-2.6.0.1
/nix/store/ascjm233bmiwp6s2hvl4sqfa03yxfz06-haskell-cereal-0.4.1.1
/nix/store/hkj4yshg7w0kwai6gz8w2v4kv1jnnrrs-haskell-pem-0.2.2
/nix/store/vabhxr18pfw0llim8x07r26l3fdxrn8p-haskell-crypto-pubkey-types-0.4.3
/nix/store/grnwbwl0kidp4s6zashh8gd7zyncnq1v-haskell-x509-1.5.0.1
/nix/store/mhhq57n3jar73g52xl30x21nzdplwrdy-haskell-x509-store-1.5.0
/nix/store/bgf1m26zd3ybwa7bn9yknk3yfpargsda-haskell-x509-system-1.5.0
/nix/store/lxv2nq9h50n4ygqi4fr5wxykr2dicz6c-haskell-transformers-compat-0.4.0.4
/nix/store/c97j8fg5a9xk2j89dk059cr0vhfl9lp7-haskell-exceptions-0.8.0.2
/nix/store/cralxfda85gij7607pnf82r06mqzg0hm-haskell-async-2.0.2
/nix/store/fhx3s3pjx9wk4gmvxa71hfp3b2wqkdik-haskell-utf8-string-0.3.8
/nix/store/lhwr48ay1ibc2gpjnjh9ba7lp06676kr-haskell-network-2.6.0.2

Am I missing something here?

Best regards
Christian.
-- 


More information about the nix-dev mailing list