[Haskell-cafe] Build error with llvm-general and lens
HMPerson1
hmperson1 at gmail.com
Sat Aug 20 19:22:46 UTC 2016
If I have a file
> module Lib where
> import Control.Lens
> data Foo = Foo { _x :: Int , _y :: Int }
> makeLenses ''Foo
and I compile with `stack build`, it works fine.
But if I add `llvm-general` to build-depends, and I run `stack build`, I get
> [1 of 1] Compiling Lib ( Lib.hs,
.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Lib.o )
> <command line>: can't load .so/.DLL for: /usr/lib/libcurses.so
(-lncursesw: cannot open shared object file: No such file or directory)
>
> -- While building package bug-test-0.1.0.0 using:
>
/home/user/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.22.5.0-ghc-7.10.3
--builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.5.0 build lib:bug-test
--ghc-options " -ddump-hi -ddump-to-file"
> Process exited with code: ExitFailure 1
I've made a tiny test case here: https://git.io/v6MVv
If I symlink `/usr/lub/libcurses.so` to `/usr/lub/libncursesw.so` (as
suggested at https://git.io/v6MV8 and
https://ghc.haskell.org/trac/ghc/ticket/9237), I get
> [1 of 1] Compiling Lib ( Lib.hs,
.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Lib.o )
>
> -- While building package bug-test-0.1.0.0 using:
>
/home/user/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.22.5.0-ghc-7.10.3
--builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.5.0 build lib:bug-test
--ghc-options " -ddump-hi -ddump-to-file"
> Process exited with code: ExitFailure (-11)
(There's no "can't load..." line and the exit code is different)
As a workaround, I can separate the lens instances into a separate library,
but I would like to avoid doing so if possible. How can I fix this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160820/df1328d6/attachment.html>
More information about the Haskell-Cafe
mailing list