You want the ghc settings file.   <div>Make sure you point it to the absolute path. <span></span><br><br>On Thursday, March 6, 2014, Charles-Pierre Astolfi <<a href="mailto:cpa@crans.org">cpa@crans.org</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Since you use brew, I'll assume you're using osx.<br><br></div>I had the same problem a few weeks ago. Here's how I solved it (be advised, it's an ugly hack):<br>
</div>

1. Download llvm from the official website (binaries or source). If you download the source compile it.<br></div>2. Put all of the files somewhere you find convenient (I use ~/.llvm)<br></div>3. Edit ghc.conf (not sure if the name is correct), to add ~/.llvm/bin/llc (in my case) and  ~/.llvm/bin/llvm where required. I don't remember the path, somewhere in lib in think. It's the file that is read when running ghc --info<br>


<br></div>It should work afterwards. Note that llvm3.4 is the latest llvm but is not tested on ghc (llvm3.3 is). I use 3.4 w/o issues though.<br></div><div class="gmail_extra"><br clear="all"><div>--  <br>Cp</div>
<br><br><div class="gmail_quote">On Thu, Mar 6, 2014 at 10:05 AM, Miro Karpis <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','miroslav.karpis@gmail.com');" target="_blank">miroslav.karpis@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi, please can you help me with following: </span><span style="font-family:arial,sans-serif;font-size:13px">I'm unable to install gloss-raster. Output is:</span><div style="font-family:arial,sans-serif;font-size:13px">



<br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>dev$ cabal install gloss-raster</div><div>Resolving dependencies...</div><div>Configuring gloss-raster-1.8.1.2...</div>



<div>Building gloss-raster-1.8.1.2...</div><div>Preprocessing library gloss-raster-1.8.1.2...</div><div>[1 of 2] Compiling Graphics.Gloss.Raster.Array ( Graphics/Gloss/Raster/Array.hs, dist/build/Graphics/Gloss/Raster/Array.o )</div>



<div><br></div><div><no location info>:</div><div>    Warning: Couldn't figure out LLVM version!</div><div>             Make sure you have installed LLVM</div><div>ghc: could not execute: opt</div><div>Failed to install gloss-raster-1.8.1.2</div>



<div>cabal: Error: some packages failed to install:</div><div>gloss-raster-1.8.1.2 failed during the building phase. The exception was:</div><div>ExitFailure 1</div></div><div style="font-family:arial,sans-serif;font-size:13px">



<br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">llvm seems to be installed:</div><div style="font-family:arial,sans-serif;font-size:13px">



<br></div><div style="font-family:arial,sans-serif;font-size:13px">$ brew install llvm<br>Warning: llvm-3.3 already installed<br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">



<br></div><div style="font-family:arial,sans-serif;font-size:13px">cheers,</div><div style="font-family:arial,sans-serif;font-size:13px">m. </div></div>
<br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','Haskell-Cafe@haskell.org');" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>
</blockquote></div>