[Haskell-cafe] llvm-3.0.1.0 installation on Mac

Luke Evans luke at eversosoft.com
Mon Apr 8 05:39:25 CEST 2013


I'm trying to get LLVM 3.0 installed and then have the llvm-3.0.1.0 package install and bind against it with cabal.

I'm on a recent 64 bit Mac which shows up in various messages like: "Target platform inferred as: x86_64-apple-darwin"

I was advised on the Haskell IRC channel to install a 3.0 LLVM from a location like MacPorts first, then point cabal at the location where LLVM was installed with the appropriate config option.
So, I did a "sudo ./port install llvm-3.0", and everything seemed to proceed fine.

Then I did:
cabal install llvm --configure-option=--with-llvm-prefix=/opt/local/libexec/llvm-3.0

This looks promising (compared to missing the config option), but eventually this happens:

Building llvm-base-3.0.1.0...
Preprocessing library llvm-base-3.0.1.0...
dyld: Library not loaded: /Users/ian/zz64/ghc-7.4.2/libffi/build/inst/lib/libffi.5.dylib
 Referenced from: /private/var/folders/tz/vlbc03q5333897z201hkmcb40000gn/T/llvm-base-3.0.1.0-3941/llvm-base-3.0.1.0/dist/build/LLVM/FFI/Analysis_hsc_make
 Reason: image not found
running dist/build/LLVM/FFI/Analysis_hsc_make failed (exit code 5)
command was: dist/build/LLVM/FFI/Analysis_hsc_make  >dist/build/LLVM/FFI/Analysis.hs
Failed to install llvm-base-3.0.1.0

I have no idea where "/Users/ian/..." is coming from!

My cabal-fu is extremely weak, so I'll plug on and see if I can figure out how cabal's analysis/build might be going wrong here.
I'd be very grateful for any clues though!

-- Luke





More information about the Haskell-Cafe mailing list