On Thu, Dec 22, 2011 at 22:25, Conor McBride wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On 22 Dec 2011, at 16:08, Sean Leather wrote:<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I've built it from source (ghc-7.4.0.20111219-src.tar.<u></u>bz2) on Leopard. I'd be happy to contribute my build if somebody tells me what to do.<br>
</blockquote>
<br></div>
I had a crack at this and got quite warm, literally and metaphorically.<br>
But, no, I didn't quite get there. And yes, it's some sort of libraries<br>
issue. Here's the barf...<br>
<br>
make -r --no-print-directory -f <a href="http://ghc.mk" target="_blank">ghc.mk</a> phase=final all<br>
"inplace/bin/ghc-stage1" -fPIC -dynamic -H32m -O -package-name integer-gmp-0.4.0.0 -hide-all-packages -i -ilibraries/integer-gmp/. -ilibraries/integer-gmp/dist-<u></u>install/build -ilibraries/integer-gmp/dist-<u></u>install/build/autogen -Ilibraries/integer-gmp/dist-<u></u>install/build -Ilibraries/integer-gmp/dist-<u></u>install/build/autogen -Ilibraries/integer-gmp/. -optP-include -optPlibraries/integer-gmp/<u></u>dist-install/build/autogen/<u></u>cabal_macros.h -package ghc-prim-0.2.0.0 -package-name integer-gmp -XHaskell98 -XCPP -XMagicHash -XUnboxedTuples -XNoImplicitPrelude -XForeignFunctionInterface -XUnliftedFFITypes -O2 -no-user-package-conf -rtsopts -odir libraries/integer-gmp/dist-<u></u>install/build -hidir libraries/integer-gmp/dist-<u></u>install/build -stubdir libraries/integer-gmp/dist-<u></u>install/build -hisuf dyn_hi -osuf dyn_o -hcsuf dyn_hc libraries/integer-gmp/dist-<u></u>install/build/GHC/Integer.dyn_<u></u>o libraries/integer-gmp/dist-<u></u>install/build/GHC/Integer/GMP/<u></u>Internals.dyn_o libraries/integer-gmp/dist-<u></u>install/build/GHC/Integer/GMP/<u></u>Prim.dyn_o libraries/integer-gmp/dist-<u></u>install/build/GHC/Integer/<u></u>Logarithms.dyn_o libraries/integer-gmp/dist-<u></u>install/build/GHC/Integer/<u></u>Logarithms/Internals.dyn_o libraries/integer-gmp/dist-<u></u>install/build/GHC/Integer/<u></u>Type.dyn_o libraries/integer-gmp/dist-<u></u>install/build/cbits/gmp-<u></u>wrappers.dyn_o libraries/integer-gmp/dist-<u></u>install/build/cbits/cbits.dyn_<u></u>o libraries/integer-gmp/gmp/<u></u>objs/*.o -shared -dynamic -dynload deploy -dylib-install-name /usr/local/lib/ghc-7.4.0.<u></u>20111219/`basename "libraries/integer-gmp/dist-<u></u>install/build/libHSinteger-<u></u>gmp-0.4.0.0-ghc7.4.0.20111219.<u></u>dylib" | sed 's/^libHS//;s/[-]ghc.*//'`/`<u></u>basename "libraries/integer-gmp/dist-<u></u>install/build/libHSinteger-<u></u>gmp-0.4.0.0-ghc7.4.0.20111219.<u></u>dylib"` -no-auto-link-packages -o libraries/integer-gmp/dist-<u></u>install/build/libHSinteger-<u></u>gmp-0.4.0.0-ghc7.4.0.20111219.<u></u>dylib<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>
collect2: ld returned 1 exit status<br>
make[1]: *** [libraries/integer-gmp/dist-<u></u>install/build/libHSinteger-<u></u>gmp-0.4.0.0-ghc7.4.0.20111219.<u></u>dylib] Error 1<br>
make: *** [all] Error 2<br>
<br>
...which makes me wonder just what I need to delete.<br></blockquote><div></div></div><br><div>I'm not sure, but gmp is often a problem. You can try using my configure arguments. I create a script configure.mine that calls configure with my preferred prefix and gmp library.</div>
<div><br></div><div>$ cat configure.mine </div><div><div>VERSION=7.4.0.20111219</div><div>./configure \</div><div> --prefix=/Library/Frameworks/GHC.framework/Versions/$VERSION/usr \</div><div> --with-gmp-libraries=/Library/Frameworks/GMP.framework \</div>
<div> --with-gmp-includes=/Library/Frameworks/GMP.framework/Headers</div></div><div><br></div><div><div>I use the GMP.framework that is installed with the Haskell Platform. The prefix is just a convenient location that allows me to change a symlink to switch between GHC versions.</div>
<div><br></div><div>Regards,</div><div>Sean</div><div></div></div>