Hi Carter Thank you for reply. My mac is 32 bit ( I remember having some issue with ghc-7.2.1 64 bit on 32 bit machine but probably that was on Linux ). I will give it a shot. Macintosh-0026bb610428:tmp mukesh$ uname -a Darwin Macintosh-0026bb610428.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:48:32 PST 2012; root:xnu-1699.24.23~1/ RELEASE_I386 i386 Some where on the internet I saw that llvm comes with Xcode 4.2 ( Before I had Xcode 3.2 ) so I removed the llvm installed by homebrew. Now all I can see is Macintosh-0026bb610428:tmp mukesh$ llvm- llvm-cpp-4.2 llvm-g++ llvm-g++-4.2 llvm-gcc llvm-gcc-4.2 Macintosh-0026bb610428:tmp mukesh$ clang clang clang++ and I am getting Macintosh-0026bb610428:tmp mukesh$ cabal install dph-examples Resolving dependencies... Configuring dph-examples-0.6.1.3... 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 Macintosh-0026bb610428:tmp mukesh$ ghc-7.4.1 -fllvm Hello.hs [1 of 1] Compiling Main ( Hello.hs, Hello.o ) Warning: Couldn't figure out LLVM version! Make sure you have installed LLVM ghc: could not execute: opt Some thing wrong with Xcode 4.2 llvm ? Also ghc-7.4.1 page ( http://www.haskell.org/ghc/download_ghc_7_4_1 ) suggest for Xcode 4.1( 2.9 GB ) but I installed Xcode 4.2 ( 1.6 GB ) because of smaller size. I am not able to solve this issue. I am in the middle of project and stuck :(. Regards Mukesh Tiwari On Feb 10, 9:36 pm, Carter Schonwald <carter.schonw...@gmail.com> wrote:
/Users/mukesh/.ghc/i386-darwin-7.4.1/package.conf.d
you need the 64bit version of ghc on mac, not the 32 bit one, by default all mac libs are 64 bit so this yields problems when linking to c libs
On Fri, Feb 10, 2012 at 10:58 AM, mukesh tiwari <
mukeshtiwari.ii...@gmail.com> wrote:
Hi Carter Yes both of these packages gloss-1.6.1.1 , OpenGL-2.5.0.0 ( http://hpaste.org/63397) are installed on my system.Could you please tell me how did you resolve the issue.
Regards Mukesh Tiwari
On Feb 10, 12:11 pm, Carter Schonwald <carter.schonw...@gmail.com> wrote:
It may be a problem with the gloss / opengl dependencies? do you have those packages installed?
I had similar trouble earlier this week wrt dph-examples, and that was the root of the matter in my case
-Carter
On Thu, Feb 9, 2012 at 7:04 PM, Ben Lippmeier <b...@ouroborus.net> wrote:
On 10/02/2012, at 6:12 AM, mukesh tiwari wrote:
Hello all I am trying to install dph-examples on Mac OS X version 10.7.3 but getting this error <http://hpaste.org/57699>. I am using ghc-7.4.1.
This probably isn't DPH specific. Can you compile a "hello world" program with -fllvm?
Ben.
_______________________________________________ Haskell-Cafe mailing list Haskell-C...@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-C...@haskell.orghttp:// www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-C...@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-C...@haskell.orghttp://www.haskell.org/mailman/listinfo/haskell-cafe