Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ubuntu ghc未能编译健全性检查_Ubuntu_Haskell_Haskell Stack - Fatal编程技术网

Ubuntu ghc未能编译健全性检查

Ubuntu ghc未能编译健全性检查,ubuntu,haskell,haskell-stack,Ubuntu,Haskell,Haskell Stack,我最近一直在尝试使用haskell堆栈,但每当我尝试进行堆栈设置时,我都会发现 GHC位于 /home/piotrek/.stack/programs/x86_64-linux/ghc-8.0.1/bin/ghc失败 编译一个健全性检查。请参阅: http://docs.haskellstack.org/en/stable/install_and_upgrade/ 了解更多信息。例外情况是:正在运行 /home/piotrek/.stack/programs/x86_64-linux/ghc-

我最近一直在尝试使用haskell堆栈,但每当我尝试进行堆栈设置时,我都会发现

GHC位于 /home/piotrek/.stack/programs/x86_64-linux/ghc-8.0.1/bin/ghc失败 编译一个健全性检查。请参阅:

http://docs.haskellstack.org/en/stable/install_and_upgrade/
了解更多信息。例外情况是:正在运行 /home/piotrek/.stack/programs/x86_64-linux/ghc-8.0.1/bin/ghc /tmp/stack-sanity-check3118/Main.hs-目录中没有用户包数据库 /tmp/stack-sanity-check3118/退出失败1

[1/1]编译主目录( /tmp/stack-sanity-check3118/Main.hs, /tmp/stack-sanity-check3118/Main.o)链接 /tmp/stack-sanity-check3118/Main

/usr/bin/ld:/tmp/stack-sanity-check3118/Main.o:重新定位 无法使用与符号“stg\U bh\U upd\U frame\U info”相对的R\U X86\U 64\U 32S 制作共享对象时;用-fPIC重新编译

还有很多其他信息,比如上次关于搬迁的信息。
我使用的是由apt get安装的ubuntu 16.10版本。

你会发现很多与此相关的信息。一件应该可以工作的事情是使用夜间解析器/ghc-8.0.2。这似乎是由ghc/GCC/linking引起的一个奇怪的错误。。或者是这样的声明,指向trac票证,但该票证声明它是在8.0中修复的!要么它没有被修复,要么它是唯一一个仍然存在缺陷的堆栈-你需要找到一个在你的机器上运行的GHC版本,并指向堆栈。我遇到了这个问题,似乎找不到修复方法。对我来说是ghc-8.4.4。