Haskell GHC build error: Loading archives not supported
I'm trying to link a foreign cpp library with haskell. Running stack build
seems to build it correctly but when I try to run stack repl
I get this error:
ghc: panic! (the 'impossible' happened)
(GHC version 8.0.1 for x86_64-unknown-linux):
Loading archives not supported
app.cabal
executable app-server
...
include-dirs: /usr/local/include
extra-libraries: symengine stdc++ gmpxx gmp
...
stack.yml
flags: {}
packages:
- '.'
extra-include-dirs:
- /usr/local/include
extra-lib-dirs:
- /usr/local/lib
extra-deps: []
extra-package-dbs: []
resolver: lts-7.1
I tried it on mac osx sierra and also debian jessie. Using ghc-8.0.1 (from lts-7.1). I've installed symengine stdc++ gmpxx gmp
on my machine.
Does anyone know what I'm doing wrong here?
链接地址: http://www.djcxy.com/p/64064.html