<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Begin forwarded message:</div><br class="Apple-interchange-newline"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">From: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Dominic Steinitz <<a href="mailto:idontgetoutmuch@gmail.com" class="">idontgetoutmuch@gmail.com</a>><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Subject: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">Re: accelerate-llvm problems</b><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Date: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">3 March 2017 at 16:44:59 GMT<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Trevor McDonell <<a href="mailto:trevor.mcdonell@gmail.com" class="">trevor.mcdonell@gmail.com</a>><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Cc: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">GHC users <<a href="mailto:glasgow-haskell-users@haskell.org" class="">glasgow-haskell-users@haskell.org</a>>, Ben Lippmeier <<a href="mailto:benl@ouroborus.net" class="">benl@ouroborus.net</a>><br class=""></span></div><br class=""><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Trevor,<div class=""><br class=""></div><div class="">I installed llvm with shared libraries:</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class="">brew install llvm --with-shared-libs</blockquote><div class=""><br class=""></div>But I now get</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div class="">llvm-general/llvm-general $ git branch</div><div class="">git branch</div><div class="">  llvm-3.8</div><div class="">* llvm-3.9</div><div class="">  master</div></blockquote></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div class="">cabal configure -fshared-llvm --extra-lib-dirs=/usr/local/opt/llvm/lib --extra-include-dirs=/usr/local/opt/llvm/include</div><div class="">Warning: The package list for '<a href="http://hackage.haskell.org/" class="">hackage.haskell.org</a>' is 30 days old.</div><div class="">Run 'cabal update' to get the latest list of available packages.</div><div class="">Resolving dependencies...</div><div class="">Configuring llvm-general-3.9.0.0...</div><div class="">Warning: Instead of 'cc-options: -I/usr/local/Cellar/llvm/3.9.1/include' use</div><div class="">'include-dirs: /usr/local/Cellar/llvm/3.9.1/include'</div><div class="">setup: Missing dependency on a foreign library:</div><div class="">* Missing C library: LLVM-3.9.1</div><div class="">This problem can usually be solved by installing the system package that</div><div class="">provides this library (you may need the "-dev" version). If the library is</div><div class="">already installed but in a non-standard location then you can use the flags</div><div class="">--extra-include-dirs= and --extra-lib-dirs= to specify where it is.</div></blockquote><div class=""><br class=""></div><div class="">Perhaps I should report this here: <a href="https://github.com/bscarlet/llvm-general/issues?" class="">https://github.com/bscarlet/llvm-general/issues?</a></div><div class=""><br class=""></div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On 21 Feb 2017, at 23:44, Trevor McDonell <<a href="mailto:trevor.mcdonell@gmail.com" class="">trevor.mcdonell@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">Hi Dominic,<br class=""><br class="">You need to build/install LLVM with shared libraries.<br class=""><br class="">Then, install llvm-general with -fshared-llvm (or, use my fork, which the stack.yaml files point to).<br class=""><br class=""><br class="">-Trev<br class=""><br class="">P.S. On mobile, apologies for the terse reply.<br class=""><div class="gmail_quote"><div dir="ltr" class="">On Wed, 22 Feb 2017 at 10:34 AM, Dominic Steinitz <<a href="mailto:idontgetoutmuch@gmail.com" class="">idontgetoutmuch@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am trying to build accelerate-llvm but getting the ghc panics below. Here’s my config<br class="gmail_msg">
<br class="gmail_msg">
> bash-3.2$ ghc-pkg list | grep llvm<br class="gmail_msg">
> ghc-pkg list | grep llvm<br class="gmail_msg">
>     llvm-general-3.8.0.0<br class="gmail_msg">
>     llvm-general-pure-3.5.0.0<br class="gmail_msg">
>     llvm-general-pure-3.5.1.0<br class="gmail_msg">
>     llvm-general-pure-3.8.0.0<br class="gmail_msg">
> bash-3.2$ ghc-pkg list | grep acc<br class="gmail_msg">
> ghc-pkg list | grep acc<br class="gmail_msg">
>     accelerate-1.0.0.0<br class="gmail_msg">
> bash-3.2$ ghc --version<br class="gmail_msg">
> ghc --version<br class="gmail_msg">
> The Glorious Glasgow Haskell Compilation System, version 7.10.2<br class="gmail_msg">
<br class="gmail_msg">
If anyone has any ideas, I’d be very grateful.<br class="gmail_msg">
<br class="gmail_msg">
> bash-3.2$ ~/Library/Haskell/bin/cabal build<br class="gmail_msg">
> ~/Library/Haskell/bin/cabal build<br class="gmail_msg">
> Building accelerate-llvm-1.0.0.0...<br class="gmail_msg">
> Preprocessing library accelerate-llvm-1.0.0.0...<br class="gmail_msg">
> ghc:<br class="gmail_msg">
> lookupSymbol failed in relocateSection (RELOC_GOT)<br class="gmail_msg">
> /usr/local/Cellar/llvm@3.8/3.8.1/lib/llvm-3.8/lib/libLLVMSupport.a: unknown symbol `___dso_handle'<br class="gmail_msg">
> [24 of 52] Compiling Data.Range.Range ( Data/Range/Range.hs, dist/build/Data/Range/Range.o )<br class="gmail_msg">
><br class="gmail_msg">
> <no location info>:<br class="gmail_msg">
>     ghc: panic! (the 'impossible' happened)<br class="gmail_msg">
>   (GHC version 7.10.2 for x86_64-apple-darwin):<br class="gmail_msg">
>       Dynamic linker not initialised<br class="gmail_msg">
><br class="gmail_msg">
> Please report this as a GHC bug:  <a href="http://www.haskell.org/ghc/reportabug" rel="noreferrer" class="gmail_msg" target="_blank">http://www.haskell.org/ghc/reportabug</a><br class="gmail_msg">
><br class="gmail_msg">
> [31 of 52] Compiling Data.Array.Accelerate.LLVM.Util ( Data/Array/Accelerate/LLVM/Util.hs, dist/build/Data/Array/Accelerate/LLVM/Util.o )<br class="gmail_msg">
><br class="gmail_msg">
> <no location info>:<br class="gmail_msg">
>     ghc: unable to load package `llvm-general-3.8.0.0'<br class="gmail_msg">
> [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 )<br class="gmail_msg">
><br class="gmail_msg">
> <no location info>:<br class="gmail_msg">
>     ghc: panic! (the 'impossible' happened)<br class="gmail_msg">
>   (GHC version 7.10.2 for x86_64-apple-darwin):<br class="gmail_msg">
>       Dynamic linker not initialised<br class="gmail_msg">
><br class="gmail_msg">
> Please report this as a GHC bug:  <a href="http://www.haskell.org/ghc/reportabug" rel="noreferrer" class="gmail_msg" target="_blank">http://www.haskell.org/ghc/reportabug</a><br class="gmail_msg">
><br class="gmail_msg">
> [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 )<br class="gmail_msg">
> [34 of 52] Compiling <a href="http://data.array.accelerate.llvm.codegen.ir/" rel="noreferrer" class="gmail_msg" target="_blank">Data.Array.Accelerate.LLVM.CodeGen.IR</a> ( Data/Array/Accelerate/LLVM/CodeGen/IR.hs, dist/build/Data/Array/Accelerate/LLVM/CodeGen/IR.o )<br class="gmail_msg">
><br class="gmail_msg">
> <no location info>:<br class="gmail_msg">
>     ghc: panic! (the 'impossible' happened)<br class="gmail_msg">
>   (GHC version 7.10.2 for x86_64-apple-darwin):<br class="gmail_msg">
>       Dynamic linker not initialised<br class="gmail_msg">
><br class="gmail_msg">
> Please report this as a GHC bug:  <a href="http://www.haskell.org/ghc/reportabug" rel="noreferrer" class="gmail_msg" target="_blank">http://www.haskell.org/ghc/reportabug</a><br class="gmail_msg">
><br class="gmail_msg">
> [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 )<br class="gmail_msg">
><br class="gmail_msg">
> <no location info>:<br class="gmail_msg">
>     ghc: panic! (the 'impossible' happened)<br class="gmail_msg">
>   (GHC version 7.10.2 for x86_64-apple-darwin):<br class="gmail_msg">
>       Dynamic linker not initialised<br class="gmail_msg">
><br class="gmail_msg">
> Please report this as a GHC bug:  <a href="http://www.haskell.org/ghc/reportabug" rel="noreferrer" class="gmail_msg" target="_blank">http://www.haskell.org/ghc/reportabug</a><br class="gmail_msg">
<br class="gmail_msg">
</blockquote></div>
</div></blockquote></div><br class=""><div class="">
<div class="">Dominic Steinitz</div><div class=""><a href="mailto:dominic@steinitz.org" class="">dominic@steinitz.org</a></div><div class=""><a href="http://idontgetoutmuch.wordpress.com/" class="">http://idontgetoutmuch.wordpress.com</a></div>

</div>
<br class=""></div></div></div></blockquote></div><br class=""><div class="">
<div class="">Dominic Steinitz</div><div class=""><a href="mailto:dominic@steinitz.org" class="">dominic@steinitz.org</a></div><div class=""><a href="http://idontgetoutmuch.wordpress.com" class="">http://idontgetoutmuch.wordpress.com</a></div>

</div>

<br class=""></body></html>