Re: accelerate-llvm problems

2017-02-21 Thread Trevor McDonell
Hi Dominic,

You need to build/install LLVM with shared libraries.

Then, install llvm-general with -fshared-llvm (or, use my fork, which the
stack.yaml files point to).


-Trev

P.S. On mobile, apologies for the terse reply.
On Wed, 22 Feb 2017 at 10:34 AM, Dominic Steinitz 
wrote:

> I am trying to build accelerate-llvm but getting the ghc panics below.
> Here’s my config
>
> > bash-3.2$ ghc-pkg list | grep llvm
> > ghc-pkg list | grep llvm
> > llvm-general-3.8.0.0
> > llvm-general-pure-3.5.0.0
> > llvm-general-pure-3.5.1.0
> > llvm-general-pure-3.8.0.0
> > bash-3.2$ ghc-pkg list | grep acc
> > ghc-pkg list | grep acc
> > accelerate-1.0.0.0
> > bash-3.2$ ghc --version
> > ghc --version
> > The Glorious Glasgow Haskell Compilation System, version 7.10.2
>
> If anyone has any ideas, I’d be very grateful.
>
> > bash-3.2$ ~/Library/Haskell/bin/cabal build
> > ~/Library/Haskell/bin/cabal build
> > Building accelerate-llvm-1.0.0.0...
> > Preprocessing library accelerate-llvm-1.0.0.0...
> > ghc:
> > lookupSymbol failed in relocateSection (RELOC_GOT)
> > /usr/local/Cellar/llvm@3.8/3.8.1/lib/llvm-3.8/lib/libLLVMSupport.a:
> unknown symbol `___dso_handle'
> > [24 of 52] Compiling Data.Range.Range ( Data/Range/Range.hs,
> dist/build/Data/Range/Range.o )
> >
> > :
> > ghc: panic! (the 'impossible' happened)
> >   (GHC version 7.10.2 for x86_64-apple-darwin):
> >   Dynamic linker not initialised
> >
> > Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
> >
> > [31 of 52] Compiling Data.Array.Accelerate.LLVM.Util (
> Data/Array/Accelerate/LLVM/Util.hs,
> dist/build/Data/Array/Accelerate/LLVM/Util.o )
> >
> > :
> > ghc: unable to load package `llvm-general-3.8.0.0'
> > [32 of 52] Compiling Data.Array.Accelerate.LLVM.CodeGen.Ptr (
> Data/Array/Accelerate/LLVM/CodeGen/Ptr.hs,
> dist/build/Data/Array/Accelerate/LLVM/CodeGen/Ptr.o )
> >
> > :
> > ghc: panic! (the 'impossible' happened)
> >   (GHC version 7.10.2 for x86_64-apple-darwin):
> >   Dynamic linker not initialised
> >
> > Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
> >
> > [33 of 52] Compiling Data.Array.Accelerate.LLVM.CodeGen.Monad[boot] (
> Data/Array/Accelerate/LLVM/CodeGen/Monad.hs-boot,
> dist/build/Data/Array/Accelerate/LLVM/CodeGen/Monad.o-boot )
> > [34 of 52] Compiling Data.Array.Accelerate.LLVM.CodeGen.IR (
> Data/Array/Accelerate/LLVM/CodeGen/IR.hs,
> dist/build/Data/Array/Accelerate/LLVM/CodeGen/IR.o )
> >
> > :
> > ghc: panic! (the 'impossible' happened)
> >   (GHC version 7.10.2 for x86_64-apple-darwin):
> >   Dynamic linker not initialised
> >
> > Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
> >
> > [44 of 52] Compiling Data.Array.Accelerate.LLVM.Execute.Environment (
> Data/Array/Accelerate/LLVM/Execute/Environment.hs,
> dist/build/Data/Array/Accelerate/LLVM/Execute/Environment.o )
> >
> > :
> > ghc: panic! (the 'impossible' happened)
> >   (GHC version 7.10.2 for x86_64-apple-darwin):
> >   Dynamic linker not initialised
> >
> > Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
>
>
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users


accelerate-llvm problems

2017-02-21 Thread Dominic Steinitz
I am trying to build accelerate-llvm but getting the ghc panics below. Here’s 
my config

> bash-3.2$ ghc-pkg list | grep llvm
> ghc-pkg list | grep llvm
>llvm-general-3.8.0.0
>llvm-general-pure-3.5.0.0
>llvm-general-pure-3.5.1.0
>llvm-general-pure-3.8.0.0
> bash-3.2$ ghc-pkg list | grep acc
> ghc-pkg list | grep acc
>accelerate-1.0.0.0
> bash-3.2$ ghc --version
> ghc --version
> The Glorious Glasgow Haskell Compilation System, version 7.10.2

If anyone has any ideas, I’d be very grateful.

> bash-3.2$ ~/Library/Haskell/bin/cabal build
> ~/Library/Haskell/bin/cabal build
> Building accelerate-llvm-1.0.0.0...
> Preprocessing library accelerate-llvm-1.0.0.0...
> ghc: 
> lookupSymbol failed in relocateSection (RELOC_GOT)
> /usr/local/Cellar/llvm@3.8/3.8.1/lib/llvm-3.8/lib/libLLVMSupport.a: unknown 
> symbol `___dso_handle'
> [24 of 52] Compiling Data.Range.Range ( Data/Range/Range.hs, 
> dist/build/Data/Range/Range.o )
> 
> :
>ghc: panic! (the 'impossible' happened)
>  (GHC version 7.10.2 for x86_64-apple-darwin):
>   Dynamic linker not initialised
> 
> Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug 
> 
> 
> [31 of 52] Compiling Data.Array.Accelerate.LLVM.Util ( 
> Data/Array/Accelerate/LLVM/Util.hs, 
> dist/build/Data/Array/Accelerate/LLVM/Util.o )
> 
> :
>ghc: unable to load package `llvm-general-3.8.0.0'
> [32 of 52] Compiling Data.Array.Accelerate.LLVM.CodeGen.Ptr ( 
> Data/Array/Accelerate/LLVM/CodeGen/Ptr.hs, 
> dist/build/Data/Array/Accelerate/LLVM/CodeGen/Ptr.o )
> 
> :
>ghc: panic! (the 'impossible' happened)
>  (GHC version 7.10.2 for x86_64-apple-darwin):
>   Dynamic linker not initialised
> 
> Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug 
> 
> 
> [33 of 52] Compiling Data.Array.Accelerate.LLVM.CodeGen.Monad[boot] ( 
> Data/Array/Accelerate/LLVM/CodeGen/Monad.hs-boot, 
> dist/build/Data/Array/Accelerate/LLVM/CodeGen/Monad.o-boot )
> [34 of 52] Compiling Data.Array.Accelerate.LLVM.CodeGen.IR ( 
> Data/Array/Accelerate/LLVM/CodeGen/IR.hs, 
> dist/build/Data/Array/Accelerate/LLVM/CodeGen/IR.o )
> 
> :
>ghc: panic! (the 'impossible' happened)
>  (GHC version 7.10.2 for x86_64-apple-darwin):
>   Dynamic linker not initialised
> 
> Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug 
> 
> 
> [44 of 52] Compiling Data.Array.Accelerate.LLVM.Execute.Environment ( 
> Data/Array/Accelerate/LLVM/Execute/Environment.hs, 
> dist/build/Data/Array/Accelerate/LLVM/Execute/Environment.o )
> 
> :
>ghc: panic! (the 'impossible' happened)
>  (GHC version 7.10.2 for x86_64-apple-darwin):
>   Dynamic linker not initialised
> 
> Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug 
> ___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users