在 haskell 中安装 llvm 绑定
我正在尝试安装 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 is displayed, install with cabal
cabal 安装 llvm --configure-option --with-llvm-prefix="C:\M inGW\bin\llvm"
I'm trying to install llvm bindings, but there is an error
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 is installed, install with cabal
cabal install llvm --configure-option --with-llvm-prefix="C:\M
inGW\bin\llvm"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如 augustss 所指出的,您将需要一些适用于 Windows 的 libllvm 源,该源不随二进制发行版一起提供。据我所知这个问题还没有解决。网上有一些关于在 Windows 上从源代码构建 llvm 的说明,不幸的是,这似乎仍然是合适的方法。
As augustss notes, you will need some source of libllvm for windows, which does not come with the binary distribution. As far as I know this issue is still not resolved. There are instructions around the web for building llvm from source on windows, which unfortunately still seems to be the appropriate approach.