building under MacOSX 10.5 with macports
Manuel M T Chakravarty
chak at cse.unsw.edu.au
Tue Feb 12 00:47:53 EST 2008
Peter Gavin:
> 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?
Yes, I have seen the same problem. Interestingly, it only happens
during the initial build in a fresh tree.
BTW, an alternative to ranlib is to pass the -s option to ar. It will
then create a table of contents straight away (which is the default
behaviour of GNU ar).
Manuel
More information about the Glasgow-haskell-bugs
mailing list