I'll take a look at the directions and validate they're correct. Just finished up some family dinner stuff. <span></span><br><br>On Wednesday, January 13, 2016, George Colpitts <<a href="mailto:george.colpitts@gmail.com">george.colpitts@gmail.com</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 class="gmail_default" style="font-family:'times new roman',serif;font-size:large">I asked the same question and Ben answered: (gmail default is reply and I forgot to do reply all)</div><div class="gmail_default" style="font-family:'times new roman',serif;font-size:large"><br></div><div class="gmail_default" style="font-family:'times new roman',serif;font-size:large"><span style="font-family:arial,sans-serif;font-size:12.8px">[1] </span><a href="https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/MacOSX" rel="noreferrer" style="font-family:arial,sans-serif;font-size:12.8px" target="_blank">https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/MacOSX</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 13, 2016 at 8:18 PM, Andrew Farmer <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','xichekolas@gmail.com');" target="_blank">xichekolas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm guessing this is the same problem with gmp on OS X, but I got it<br>
during the ./configure step, so thought I'd pass along the error<br>
message:<br>
<br>
mba:ghc-8.0.0.20160111 xich$ ./configure --prefix=/Users/xich/projects/ghc8<br>
checking for path to top of build tree... dyld: Library not loaded:<br>
/usr/local/opt/gmp/lib/libgmp.10.dylib<br>
  Referenced from:<br>
/Users/xich/projects/ghc-8.0.0.20160111/utils/ghc-pwd/dist-install/build/tmp/ghc-pwd<br>
  Reason: image not found<br>
configure: error: cannot determine current directory<br>
<br>
You made reference to the wiki build instructions... do you have a<br>
link to the ones you mean? I can try following them.<br>
<div><div><br>
On Wed, Jan 13, 2016 at 2:52 PM, Ben Gamari <<a href="javascript:_e(%7B%7D,'cvml','ben@well-typed.com');" target="_blank">ben@well-typed.com</a>> wrote:<br>
> George Colpitts <<a href="javascript:_e(%7B%7D,'cvml','george.colpitts@gmail.com');" target="_blank">george.colpitts@gmail.com</a>> writes:<br>
><br>
>> installs fine on mac but cabal install vector fails on primitive, looks to<br>
>> me like gmp library is not provided<br>
>><br>
>> cabal install vector<br>
>> Resolving dependencies...<br>
>> Configuring primitive-0.6.1.0...<br>
>> Failed to install primitive-0.6.1.0<br>
>> Build log ( /Users/gcolpitts/.cabal/logs/primitive-0.6.1.0.log ):<br>
>> cabal: Error: some packages failed to install:<br>
>> primitive-0.6.1.0 failed during the configure step. The exception was:<br>
>> user error ('/usr/local/bin/ghc' exited with an error:<br>
>> *ld: library not found for -lgmp*<br>
>> collect2: error: ld returned 1 exit status<br>
>> `gcc' failed in phase `Linker'. (Exit code: 1)<br>
>> )<br>
>> vector-0.11.0.0 depends on primitive-0.6.1.0 which failed to install.<br>
>><br>
> The issue here appears to be that the build was compiled against the<br>
> host's libgmp on account of the the Wiki build instructions [1] being out of<br>
> date. I've fixed this particular inaccuracy, but it would be great if<br>
> someone familiar with Darwin could take a close look at this page: do a<br>
> build of their own, work through the build instructions, and ensure that<br>
> the build instructions are still accurate, fixing any issues.<br>
><br>
> George or Carter, perhaps one of you could pick this up?<br>
><br>
> Cheers,<br>
><br>
> - Ben<br>
><br>
><br>
</div></div><div><div>> _______________________________________________<br>
> ghc-devs mailing list<br>
> <a href="javascript:_e(%7B%7D,'cvml','ghc-devs@haskell.org');" target="_blank">ghc-devs@haskell.org</a><br>
> <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
><br>
</div></div></blockquote></div><br></div>
</blockquote>