<div dir="ltr">Thanks to everyone for the comments. <div><br></div><div style>I didn&#39;t try to fix the build system. I took the easy approach and just used macports to install gmp on my system and added macports&#39; lib and include paths to the C_INCLUDE_PATH and LIBRARY_PATH variables. The build succeeded now. </div>
<div style><br></div><div style>Maybe I should add a note to the wiki page on build prerequisites for mac os x regarding this issue?  Or will the build be fixed to pick up gmp from the in-tree GMP? </div><div style><br></div>
<div style>-Andi </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 26, 2013 at 11:55 AM, Páli Gábor János <span dir="ltr">&lt;<a href="mailto:pali.gabor@gmail.com" target="_blank">pali.gabor@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Apr 26, 2013 at 5:24 PM, Hollister Herhold &lt;<a href="mailto:hollister@fafoh.com">hollister@fafoh.com</a>&gt; wrote:<br>

&gt; There&#39;s one in ghc/libraries/integer-gmp/gmp/gmp.h<br>
<br>
</div>As far I know, there is an &quot;in-tree&quot; GMP packaged as a tarball under<br>
the ghc/libraries/integer-gmp/tarball directory.  GNU/Linux can pick<br>
up the gmp headers and libraries because they are some expected<br>
location (perhaps in /usr/include and /usr/lib), while FreeBSD cannot,<br>
because GMP is installed as a third-party software and resides under<br>
some prefix, which is usually /usr/local/{include,lib} so it would<br>
fall back to the in-tree version.<br>
<br>
The solution is use the --with-gmp-includes and --with-gmp-libraries<br>
flags for the &quot;configure&quot; script.  The x86 FreeBSD builder fails<br>
because these flags are not specified and it cannot pick up the<br>
in-tree GMP any more (I have mentioned Ian this problem, but probably<br>
he did not have time to fix this up), while the x86_64 FreeBSD builder<br>
works because it picks up the system GMP due to these flags.<br>
<br>
Actually, the x86_64 FreeBSD builder were also able to pick up the<br>
in-tree GMP, but unfortunately it causes some linking error if I<br>
recall this correctly (c.f. #4022).<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/mailman/listinfo/ghc-devs</a><br>
</div></div></blockquote></div><br></div>