在haskell中安装llvm绑定

时间:2011-10-16 13:48:47

标签: haskell llvm cabal

我正在尝试安装llvm绑定,但是有一个错误

Resolving dependencies...
[1 of 1] Compiling Main             ( C:\TEMP\llvm-0.10.0.15520\llvm-0.10.0.1\Se
tup.hs, C:\TEMP\llvm-0.10.0.15520\llvm-0.10.0.1\dist\setup\Main.o )
Linking C:\TEMP\llvm-0.10.0.15520\llvm-0.10.0.1\dist\setup\setup.exe ...
Configuring llvm-0.10.0.1...
Preprocessing library llvm-0.10.0.1...
C:/Program Files/Haskell Platform/2011.2.0.1/mingw/bin/ld.exe: cannot find -lLLV
MXCoreAsmPrinter
C:/Program Files/Haskell Platform/2011.2.0.1/mingw/bin/ld.exe: cannot find -lLLV
MSystemZAsmPrinter
C:/Program Files/Haskell Platform/2011.2.0.1/mingw/bin/ld.exe: cannot find -lLLV
MSparcAsmPrinter
C:/Program Files/Haskell Platform/2011.2.0.1/mingw/bin/ld.exe: cannot find -lLLV
MPIC16AsmPrinter
C:/Program Files/Haskell Platform/2011.2.0.1/mingw/bin/ld.exe: cannot find -lLLV
MPIC16CodeGen
C:/Program Files/Haskell Platform/2011.2.0.1/mingw/bin/ld.exe: cannot find -lLLV
MPIC16Info
C:/Program Files/Haskell Platform/2011.2.0.1/mingw/bin/ld.exe: cannot find -lLLV
MMSIL
C:/Program Files/Haskell Platform/2011.2.0.1/mingw/bin/ld.exe: cannot find -lLLV
MMSILInfo
C:/Program Files/Haskell Platform/2011.2.0.1/mingw/bin/ld.exe: cannot find -lLLV
MMipsAsmPrinter
C:/Program Files/Haskell Platform/2011.2.0.1/mingw/bin/ld.exe: cannot find -lLLV
MDebugger
C:/Program Files/Haskell Platform/2011.2.0.1/mingw/bin/ld.exe: cannot find -lLLV
MCellSPUAsmPrinter
C:/Program Files/Haskell Platform/2011.2.0.1/mingw/bin/ld.exe: cannot find -lLLV
MBlackfinAsmPrinter
C:/Program Files/Haskell Platform/2011.2.0.1/mingw/bin/ld.exe: cannot find -lLLV
MAlphaAsmPrinter
C:/Program Files/Haskell Platform/2011.2.0.1/mingw/bin/ld.exe: cannot find -lLLV
MSystem

安装LLVM,随cabal一起安装

  

cabal install llvm --configure-option --with-llvm-prefix =“C:\ M   inGW \ BIN \ LLVM“

1 个答案:

答案 0 :(得分:2)

正如奥古斯特所说,你需要一些windows的libllvm源代码,它不带有二进制分发版。据我所知,这个问题仍未解决。网上有关于从Windows上的源代码构建llvm的说明,遗憾的是这仍然是合适的方法。