unprincipled skulduggery with GHC 6.12 + dylibs on Mac OS X 2

Posted by Mark Mon, 14 Sep 2009 12:04:00 GMT

Mac OS X needed a bit of love to get GHC HEAD to build on it, but it does seem possible. The secret sauce: first, apply this patch It's not very polished and almost certainly breaks the Linux build, but it'll work ok for Mac. Then, create a file "build.mk" in the root ghc directory, with the content
SplitObjs=NO
GhcLibWays=v dyn
finally, GMP seems to resent being ignored: it needs a special flag passed to GCC, namely -read_only_relocs suppress. I assume there's a good way to tell GHC to use the flag: I cheated, and used make -v to get the gcc line that was failing, copy-pasted it and added the flags. Inelegant, but it seemed to work. Anyway, this is as far as i've got so far - the make step works, but then 'make install' complains about the package 'rts' not having an 'inplace' suffix. Bizarre, but I'll keep digging.
Comments

Leave a comment

  1. Chris Schneider 1 day later:

    This is exactly the kind of problems I ran into when playing with Ruby/Haskell before, GHC just doesn’t play very nicely with OSX. If you ever want to bounce ideas off me, ping me on IRC (cschneid on freenode).

  2. Mark Wotton 2 days later:

    ah, and unbroken again with this patch. Let it never be said that following GHC dev isn’t a fun-packed rollercoaster ride.

Comments