1

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"

9
  • Silly question: Did you install the real llvm library? Commented Oct 16, 2011 at 13:56
  • Yes, llvm is installed(on Windows). Commented Oct 16, 2011 at 14:05
  • I think your llvm-prefix is wrong. Do you really have the libraries in C:\MinGW\bin\llvm\lib ? If not, it probably should be --with-llvm-prefix="C:\MinGW. Commented Oct 16, 2011 at 14:09
  • It seems to be correct, because when I enter the wrong address knowingly increased the number of errors. Commented Oct 16, 2011 at 14:28
  • 7
    The llvm distribution for Windows does not contain the libraries, just the executables. So you need to compile it yourself. Please complain to the llvm maintainers about this (I've already done so). Commented Oct 16, 2011 at 17:30

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.