[Nix-dev] haskell-env-ghc-7.8.3 fails to build

Charles Strahan charles.c.strahan at gmail.com
Sat Jul 26 19:45:33 CEST 2014


Hi Tom,

It looks like the problem is that GHC includes its own `terminfo' package,
and now that GHC uses shared libraries, it includes a `
libHSterminfo-0.4.0.0-ghc7.8.3.so' that collides with `terminfo' from
cabal. Peter Simons has a description of the problem as it relates to
`xhtml'
<http://lists.science.uu.nl/pipermail/nix-dev/2014-April/012992.html>, and
the gist of it was that you could use `ghcWithPackagesOld' to step around
the problem for now. If I've read GHC ticket #
<https://ghc.haskell.org/trac/ghc/ticket/8919>8919
<https://ghc.haskell.org/trac/ghc/ticket/8919> correctly, it looks like
commit 4caadb7cb
<https://ghc.haskell.org/trac/ghc/changeset/4caadb7cbee5c176abb99df25c4cc1657ae57f40/ghc>
(which landed on master about 7 weeks ago) should resolve the problem. I'm
not sure if that's something that we might want to cherry-pick, or if we'll
just need to wait for GHC 7.8.4.

Cheers,
-Charles


On Fri, Jul 25, 2014 at 7:23 AM, Tom Dimiduk <tom at dimiduk.net> wrote:

> I was looking forward to playing with ghc-7.8 when unstable pushed out the
> new version this week, but things won't quite build. Any advice on how to
> debug this?
>
> nixos-rebuild --upgrade
> test
>> downloading Nix expressions from `
> http://releases.nixos.org/nixos/unstable/nixos-14.10pre46074.4e06537/nixexprs.tar.xz'.
> ..
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time
> Current
>                                  Dload  Upload   Total   Spent    Left
> Speed
> 100 3738k  100 3738k    0     0   286k      0  0:00:13  0:00:13 --:--:--
> 553k
> unpacking channels...
> created 2 symlinks in user environment
> building Nix...
> building the system configuration...
> these derivations will be built:
>   /nix/store/14zdm2xf0zxwcpgkipkfyljpak7qw3cd-haskell-env-ghc-7.8.3.drv
>   /nix/store/2bqxkycdz6cyn06mfzdr383yj4pzri6m-unit.drv
>   /nix/store/61qv9b7pv7fvccc7iifqsm791dx1frfz-system-crontab.drv
>   /nix/store/7zrsqigl5l4qssq31hv88s098njkljjy-dbus-conf.drv
>   /nix/store/jqr4zl9skbvnsq6sr58b4xq5jkp5azmb-etc.drv
>
> /nix/store/n1z9rzpd3dkc2d0xm08rla3gm5qwyym4-nixos-14.10pre45979.0d23cf8.drv
>   /nix/store/snl5xyrgbbddgvpi59hv1733cscx74p8-system-path.drv
>   /nix/store/vdngyxaiashq5c531dr9g3znkg6vqw1c-system-units.drv
> building path(s)
> `/nix/store/k1k6hdjd071il8z6mpl7n00rkrjix5b4-haskell-env-ghc-7.8.3'
> building /nix/store/k1k6hdjd071il8z6mpl7n00rkrjix5b4-haskell-env-ghc-7.8.3
> collision between
> `/nix/store/hb92nfw5iapmrgy7c12h04vhp6yqb85b-ghc-7.8.3/lib/ghc-7.8.3/terminfo-0.4.0.0/
> libHSterminfo-0.4.0.0-ghc7.8.3.so' and
> `/nix/store/8jq44m6r7nakl2hqfp11pbz93wr2p0gh-haskell-terminfo-ghc7.8.3-0.4.0.0-shared/lib/ghc-7.8.3/terminfo-0.4.0.0/
> libHSterminfo-0.4.0.0-ghc7.8.3.so' at /nix/store/
> 9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 72.
> note: keeping build directory `/tmp/nix-build-haskell-env-ghc-7.8.3.drv-7'
> builder for
> `/nix/store/14zdm2xf0zxwcpgkipkfyljpak7qw3cd-haskell-env-ghc-7.8.3.drv'
> failed with exit code 2
> cannot build derivation
> `/nix/store/snl5xyrgbbddgvpi59hv1733cscx74p8-system-path.drv': 1
> dependencies couldn't be built
> cannot build derivation
> `/nix/store/61qv9b7pv7fvccc7iifqsm791dx1frfz-system-crontab.drv': 1
> dependencies couldn't be built
> cannot build derivation
> `/nix/store/7zrsqigl5l4qssq31hv88s098njkljjy-dbus-conf.drv': 1 dependencies
> couldn't be built
> cannot build derivation
> `/nix/store/2bqxkycdz6cyn06mfzdr383yj4pzri6m-unit.drv': 1 dependencies
> couldn't be built
> cannot build derivation
> `/nix/store/vdngyxaiashq5c531dr9g3znkg6vqw1c-system-units.drv': 1
> dependencies couldn't be built
> cannot build derivation
> `/nix/store/jqr4zl9skbvnsq6sr58b4xq5jkp5azmb-etc.drv': 3 dependencies
> couldn't be built
> cannot build derivation
> `/nix/store/n1z9rzpd3dkc2d0xm08rla3gm5qwyym4-nixos-14.10pre45979.0d23cf8.drv':
> 2 dependencies couldn't be built
> error: build of
> `/nix/store/n1z9rzpd3dkc2d0xm08rla3gm5qwyym4-nixos-14.10pre45979.0d23cf8.drv'
> failed
>
> Thanks,
> Tom
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140726/56847fa6/attachment.html 


More information about the nix-dev mailing list