Haskell GHC构建错误:不支持加载存档

时间:2016-11-06 16:24:22

标签: haskell ghc haskell-stack

我试图将外部cpp库与haskell链接。运行stack build似乎正确构建它但当我尝试运行stack repl时出现此错误:

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

我在mac osx sierra和debian jessie上尝试过。 使用ghc-8.0.1(来自lts-7.1)。 我在我的计算机上安装了symengine stdc++ gmpxx gmp

有谁知道我在这里做错了什么?

0 个答案:

没有答案