GHC 6.12 + zlib + Mac OS 10.6

Gregory Collins greg at gregorycollins.net
Sat Nov 28 18:30:04 EST 2009


Antoine Latter <aslatter at gmail.com> writes:

> On Sat, Nov 28, 2009 at 3:54 PM, Yusaku Hashimoto <nonowarn at gmail.com> wrote:
>> I think you installed zlib without proper flags to link with 32-bit
>> libraries. configuring with ./Setup configure
>> --with-hsc2hs='--cc-flag=-m32 --ld-flag=-m32' should do the tricks.
>>
>> See also http://hackage.haskell.org/trac/ghc/ticket/3681.
>>
>> HTH
>> -~nwn
>
> The following worked like a charm:
>
> cabal install --hsc2hs-options='--cc-flag=-m32 --ld-flag=-m32'

You can also patch your hsc2hs wrapper 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"

G
-- 
Gregory Collins <greg at gregorycollins.net>


More information about the Libraries mailing list