我的LLVM/opt-3.2和llvm-3.2.0.2一起安装,我刚从Ubuntu软件包安装GHC 7.6.2。然而,当我尝试编译GHC与-fllvm -V3,我得到的错误:在LLVM上使用GHC 3.2
*** CodeGen:
*** LlVM CodeGen:
Error (figuring out LLVM version): fd:10: hGetLine: end of file
<no location info>:
Warning: Couldn't figure out LLVM version!
Make sure you have installed LLVM
*** LLVM Optimiser:
'opt-3.0' '/tmp/ghc17812_0/ghc17812_0.ll' '-o' '/tmp/ghc17812_0/ghc17812_0.bc' '-mem2reg' '--enable-tbaa=true'
*** Deleting temp files:
...
ghc: could not execute: opt-3.0
opt
是在我的道路,但版本是3.2,而不是3.0。如果它不是让GHC寻找正确版本的opt的hackage llvm包,它是什么?
通过在你的.bashrc中添加一些东西,以及OS X的哪个版本,你的意思是什么? –
通过运行ps找出你正在使用的shell,然后阅读该shell的手册页以了解它在启动时运行的脚本。对于大多数情况下,shell是bash,它运行$ HOME/.bashrc和其他几个可用于定制体验的脚本。 –
谢谢。据我所知这是正确的,但我的实际问题是这样的:https://stackoverflow.com/questions/24796874/cant-install-diagrams-arithmoi-on-mac –