[Haskell-cafe] Re: Snow Leopard Breaks GHC

Gregory Collins greg at gregorycollins.net
Sun Sep 27 11:16:57 EDT 2009

Tom Tobin <korpios at korpios.com> writes:

> On Tue, Sep 1, 2009 at 3:14 AM, Christian
> Maeder<Christian.Maeder at dfki.de> wrote:
>> It seems, bootstrapping cabal went wrong. Does
>> http://hackage.haskell.org/platform/2009.2.0.2/haskell-platform-2009.2.0.2-i386.dmg
>> work?
> Installing the Haskell Platform package, combined with adding the
> previously mentioned options to /usr/bin/ghc (-optc-m32 -opta-m32
> -optl-m32), seems to have done the trick.  Thank you!

N.B. everybody, you also need to patch /usr/bin/hsc2hs to read:

    exec /Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/hsc2hs \
        $tflag $HSC2HS_EXTRA --cflag="-m32" --lflag="-m32" ${1+"$@"} "$Iflag"

if you want FFI to work. See details on

Gregory Collins <greg at gregorycollins.net>

More information about the Haskell-Cafe mailing list