DPH installation and LLVM

Dear all, being completely new to Haskell I wanted to explore what DPH is about, so I tried to install it via cabal install dph-examples but the installation process stops once it gets to installing the actual examples package: --- Building dph-examples-0.6.1.3... Preprocessing executable 'dph-spectral-smvm' for dph-examples-0.6.1.3... [1 of 3] Compiling Vectorised ( examples/spectral/SMVM/dph/Vectorised.hs, dist/build/dph-spectral-smvm/dph-spectral-smvm-tmp/Vectorised.o ) exprType TYPE ghc-prim:GHC.Types.Double{(w) tc 3u} exprType TYPE ghc-prim:GHC.Types.Double{(w) tc 3u} exprType TYPE ghc-prim:GHC.Types.Double{(w) tc 3u} exprType TYPE ghc-prim:GHC.Types.Double{(w) tc 3u} exprType TYPE ghc-prim:GHC.Types.Double{(w) tc 3u} exprType TYPE (ghc-prim:GHC.Types.Int{(w) tc 3J}, ghc-prim:GHC.Types.Double{(w) tc 3u}) Warning: Couldn't figure out LLVM version! Make sure you have installed LLVM ghc: could not execute: opt cabal: Error: some packages failed to install: dph-examples-0.6.1.3 failed during the building phase. The exception was: ExitFailure 1 --- This is the rest of my setup: Mac OS X 10.7.4 Xcode 4.3.3 + Command Line Tools (from within Xcode) Haskell Platform 2012.2.0.0 32bit Why doesn't Haskell find the LLVM compiler? Is there a way to install the remaining examples without LLVM compilation? Thanks, Oliver

On Sun, Jul 15, 2012 at 2:49 PM,
Mac OS X 10.7.4 Xcode 4.3.3 + Command Line Tools (from within Xcode) Haskell Platform 2012.2.0.0 32bit
Why doesn't Haskell find the LLVM compiler? Is there a way to install the remaining
Apple doesn't ship the full LLVM suite, but only the small part Apple cares about; you need to install a full LLVM from somewhere else. -- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms

On Sun, Jul 15, 2012 at 4:58 PM,
Apple doesn't ship the full LLVM suite, but only the small part Apple cares about; you need to install a full LLVM from somewhere else.
Thanks for your quick answer. So how would I install the full LLVM suite and make it coexist peacefully with whatever Apple chose to ship?
Probably the official package from llvm.org unless you use something like macports or homebrew. They should install under /usr/local. -- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms

Probably the official package from llvm.org unless you use something like macports or homebrew. They should install under /usr/local.
So I went with homebrew which I think installs everything under /usr/local by default. Now I get: --- Configuring dph-examples-0.6.1.3... /var/folders/57/rjs423s5227dnc8rh_2rp4jh0000gn/T/95011.c:1:0: internal compiler error: Illegal instruction: 4 Please submit a full bug report, with preprocessed source if appropriate. See URL:http://developer.apple.com/bugreporter for instructions. cabal: Error: some packages failed to install: dph-examples-0.6.1.3 failed during the configure step. The exception was: ExitFailure 1 --- What's wrong? Oliver

Since I haven't gotten any further answers I'm trying my luck again… Does anyone have an idea how I can get the llvm backend to work? My configuration is: Mac OS X 10.7.4 XCode 4.3.3 (with Command Line Tools installed) Haskell Platform 2012.2.0.0 32 bit llvm (via Homebrew) Oliver
Probably the official package from llvm.org unless you use something like macports or homebrew. They should install under /usr/local.
So I went with homebrew which I think installs everything under /usr/local by default. Now I get:
--- Configuring dph-examples-0.6.1.3...
/var/folders/57/rjs423s5227dnc8rh_2rp4jh0000gn/T/95011.c:1:0: internal compiler error: Illegal instruction: 4 Please submit a full bug report, with preprocessed source if appropriate. See URL:http://developer.apple.com/bugreporter for instructions. cabal: Error: some packages failed to install: dph-examples-0.6.1.3 failed during the configure step. The exception was: ExitFailure 1 ---
What's wrong?
Oliver

listig314@gmail.com wrote:
Since I haven't gotten any further answers I'm trying my luck again…
Does anyone have an idea how I can get the llvm backend to work? My configuration is:
Mac OS X 10.7.4 XCode 4.3.3 (with Command Line Tools installed) Haskell Platform 2012.2.0.0 32 bit llvm (via Homebrew)
DPH is not really a beginners topic. Maybe you should try the haskell-cafe list. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
participants (3)
-
Brandon Allbery
-
Erik de Castro Lopo
-
listig314@gmail.com