Re: [Haskell-cafe] Re: Snow Leopard Breaks GHC
Tom Tobin writes:
> On Tue, Sep 1, 2009 at 3:14 AM, Christian
> Maeder 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
http://hackage.haskell.org/trac/ghc/ticket/3400#comment:9.
G.
--
Gregory Collins
___
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: Snow Leopard breaks GHC
On Fri, Sep 4, 2009 at 10:38 AM, Christian Maeder wrote: > Or "runghc" form /usr/bin? /usr/bin/runghc is a symlink to the same file as runhaskell. ___ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: Snow Leopard Breaks GHC
On Mon, Aug 31, 2009 at 7:18 PM, Dmitri Sosnik wrote: > > On 31/08/2009, at 9:02 PM, Christian Maeder wrote: > >> Dmitri Sosnik wrote: >>> >>> How I can tell gcc to generate 32 bit code? I've tried to set >>> CFLAGS=-m32, but it doesn't work. >> >> (Flags do not work -- without Makefile) Pass >> > > Stupid me :-) > >> -optc-m32 -opta-m32 -optl-m32 >> > > Yep, it work. Thanks! Hmm ... running Snow Leopard here, I added these arguments to my /usr/bin/ghc (and my /usr/bin/ghci, and /usr/bin/runhaskell, for good measure), and I end up getting the following error on "cabal update" after installing cabal-install: * cabal: user error (Codec.Compression.Zlib: incompatible version) * Earlier in the cabal-install bootstrap process, I get the following line: * ld: warning: in /Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/libgmp.a, file is not of required architecture * I'm guessing something's still not being set to 32-bit? ___ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
