[Haskell-cafe] llvm-188.8.131.52 installation on Mac
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-184.108.40.206 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:
Preprocessing library llvm-base-220.127.116.11...
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-18.104.22.168-3941/llvm-base-22.214.171.124/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-126.96.36.199
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!
More information about the Haskell-Cafe