简体   繁体   中英

Error building haskell llvm bindings on Linux

I built llvm 3.0, downloaded from here . I did:

./configure CC=gcc CXX=g++ --enable-shared

sudo make -j5 -s install

Next, I cloned the LLVM bindings from here . I am trying:

runhaskell Setup configure

But I get:

Configuring llvm-3.0.0.0...

Setup.lhs: At least the following dependencies are missing:

llvm-base ==3.0.*, type-level -any

I am running Linux Mint 64-bit (equivalent to Ubuntu 11.0). GHC is 6.12.3. I tried a cabal install but apparently the llvm version is too old to run some examples (am I mistaken?).

What am I doing wrong?

Bryan recently split the llvm package in two, that split has not yet made it to hackage. So if you don't want to simply cabal install the hackage version,

  1. install the type-level package (cabal install should work fine)
  2. cd into the base subdirectory of the llvm-repo, install llvm-base
  3. cd into the llvm directory, install

I have not tried it, so it might not work, but usually Bryan's repos are buildable, so there's a good chance that it does.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM