building under MacOSX 10.5 with macports

Peter Gavin pgavin at gmail.com
Fri Feb 8 11:32:12 EST 2008


Hello,

I've been trying to build GHC-6.8 on Mac OSX 10.5 using the GMP and 
readline provided by macports.  I'm not sure if others have been having 
this problem, but I've been having a low of trouble.  I finally got it 
to build, but it required patching Cabal to do so.

The problem seems to be that ranlib isn't being run from the 
cabal-generated makefiles after each libHS.a under libraries/ is built. 
At some point the build fails when trying to link to libHShaskell98.a, 
complaining about a missing index, so I ran ranlib on the library, and 
the build continued. I ended up patching cabal to add a ranlib call from 
the makefiles, and the build proceeded from start to finish, without 
failing.

If anyone is interested in seeing the patch, I've sent it to the 
Cabal-devel list:

http://www.haskell.org/pipermail/cabal-devel/2008-February/002033.html

Has anyone else using Mac OSX 10.5 had this problem?

Peter Gavin




More information about the Glasgow-haskell-bugs mailing list