[Haskell-cafe] Dread __DISCARD__

Arthur van Leeuwen arthurvl at cs.uu.nl
Mon Sep 19 03:52:16 EDT 2005

On 17-sep-2005, at 18:14, Wolfgang Thaller wrote:

>> I'm on Mac OS 10.4.2, using ghc 6.4 (from the haskell.org .dmg) and
>> gcc 4.0.0.  Other wxHaskell programs (the samples and my own
>> experiments) compile without tripping over this.
> GHC 6.4 is incompatible with gcc 4.0.0 when -O or -via-C is used.
> You can work around this problem by either not using -via-C and  
> always adding -fasm *after* -O, or by setting your default compiler  
> to gcc-3.3 using
> sudo gcc_select 3.3
> ... but be aware that this also affects other C compilations;  
> switch back using
> sudo gcc_select 4.0

Ofcourse, you can also add -pgmc /usr/bin/gcc-3.3 to the ghc  
commandline for
you compilations. This does not affect other C compilations, and is  
easily added
to e.g. makefiles that use a GHCFLAGS variable...

> The upcoming GHC 6.4.1 will of course fix this problem.

Good to hear that.

Doei, Arthur.

   /\    / |       arthurvl at cs.uu.nl       | Work like you don't need  
the money
/__\  /  | A friend is someone with whom | Love like you have never  
been hurt
/    \/__ | you can dare to be yourself   | Dance like there's nobody  

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org//pipermail/haskell-cafe/attachments/20050919/c36b6c2d/PGP-0001.bin

More information about the Haskell-Cafe mailing list