[Nix-dev] HaskellNG Binaries not linking correctly

Richard Wallace rwallace at thewallacepack.net
Wed Feb 4 22:13:28 CET 2015


Hey folks,

I'm having an issue with HaskellNG. I have a project that provides a
library and a binary.  My cabal and nix files are here <
https://gist.github.com/purefn/21e392eb3bc2639db530>.

When I run `nix-build hiberico.nix`, everything completes.  But when I try
and run it, I get

/nix/store/p63s2fsksj710fgmzj9399nyn230cx3v-haskell-hiberico-1/bin/hiberico:
error while loading shared libraries: libHShiberico-2-ghc7.8.4.so: cannot
open shared object file: No such file or directory

Running `ldd
/nix/store/p63s2fsksj710fgmzj9399nyn230cx3v-haskell-hiberico-1/bin/hiberico`
I see

linux-vdso.so.1 (0x00007fff64def000)
libHShiberico-2-ghc7.8.4.so => not found
libHSzip-archive-0.2.3.5-ghc7.8.4.so =>
/nix/store/y1arcbjbwdl8jzra1xj6al6ywimbkqfp-haskell-zip-archive-0.2.3.5/lib/ghc-7.8.4/zip-archive-0.2.3.5/
libHSzip-archive-0.2.3.5-ghc7.8.4.so (0x00007fbc7b3aa000)
libHSdigest-0.0.1.2-ghc7.8.4.so =>
/nix/store/446nnyb3cc1bpfm84qgn40yy56m1fw02-haskell-digest-0.0.1.2/lib/ghc-7.8.4/digest-0.0.1.2/
libHSdigest-0.0.1.2-ghc7.8.4.so (0x00007fbc7b1a5000)
libHSvalidation-0.4.2-ghc7.8.4.so =>
/nix/store/fn4mlags9g14br0vvjsp834ypaqzvkkb-haskell-validation-0.4.2/lib/ghc-7.8.4/validation-0.4.2/
libHSvalidation-0.4.2-ghc7.8.4.so (0x00007fbc7af6b000)
         <snip>

This was working fine a week ago. I tried out other packages that have both
libraries and binaries and they worked fine. Any idea why my binary isn't
getting linked properly?

Thanks,
Rich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150204/0a7fadd3/attachment.html 


More information about the nix-dev mailing list