accelerate-llvm problems

Dominic Steinitz dominic at steinitz.org
Tue Feb 21 23:38:21 UTC 2017


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 at 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 )
> 
> <no location info>:
>    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 <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 )
> 
> <no location info>:
>    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 )
> 
> <no location info>:
>    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 <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 )
> 
> <no location info>:
>    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 <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 )
> 
> <no location info>:
>    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 <http://www.haskell.org/ghc/reportabug>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/glasgow-haskell-users/attachments/20170221/5517e805/attachment.html>


More information about the Glasgow-haskell-users mailing list