Hi wren,<br><br><div class="gmail_quote">On Tue, Jun 5, 2012 at 7:32 AM, wren ng thornton wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;m working on creating some distribution bundles of GHC 7.4.1 and HP 2012.2.0.0 for OSX 10.5 to help rectify the lack of support on older Macs. In building GHC I&#39;ve run into a linking error in stage1:<br>


<br>
    ld: duplicate symbol ___gmpz_abs in libraries/integer-gmp/gmp/<u></u>objs/add.o and libraries/integer-gmp/gmp/<u></u>objs/abs.o<br>
<br>
Which looks like the same issue discussed in:<br>
<br>
<br>
<a href="http://www.haskell.org/pipermail/glasgow-haskell-users/2011-December/021339.html" target="_blank">http://www.haskell.org/<u></u>pipermail/glasgow-haskell-<u></u>users/2011-December/021339.<u></u>html</a><br>
<br>
The only proposed solution was Sean mentioned explicitly passing the GMP.framework to ./configure via --with-gmp-libraries and --with-gmp-includes; however, I have no such GMP.framework (I&#39;m building from the framework versions of GHC 6.12.1 and HP 2010.1.0.0).<br>



<br>
So, any ideas on how to fix this?</blockquote><div><br></div><div>I was hoping somebody else had a bright idea, but no takers, yet.</div><div><br></div><div>I don&#39;t remember where I got my GMP.framework from, exactly. I thought it used to be bundled with the HP. But it&#39;s apparently not anymore.</div>

<div><br></div><div>I did some digging and came across the old repository for building Mac frameworks:</div><div><a href="http://hackage.haskell.org/trac/ghc/browser/MacFrameworks?rev=83153fae8bfe23af0bd0bd5a8ea3e2776536a5fe">http://hackage.haskell.org/trac/ghc/browser/MacFrameworks?rev=83153fae8bfe23af0bd0bd5a8ea3e2776536a5fe</a></div>

<div><br></div><div>Perhaps you can use the script that&#39;s in there to build GMP.framework. Alternatively, I can provide you with mine directly.</div><div><br></div><div>Regards,</div><div>Sean</div></div>