
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 I suspect that you compiled the program with -O before, and then switched to -O0 without removing your .o files. If you compiled wxHaskell yourself, then the problem might also be in wxHaskell (you'd have to recompile it then). The upcoming GHC 6.4.1 will of course fix this problem. Cheers, Wolfgang

On 9/17/05, Wolfgang Thaller
I suspect that you compiled the program with -O before, and then switched to -O0 without removing your .o files.
Silly me! Of course you're exactly right. After removing the .o files it worked. The only thing I don't understand is why I haven't needed -O0 elsewhere.
The upcoming GHC 6.4.1 will of course fix this problem.
I can live with the current situation but I'm glad to hear the problem's going away. Thanks, Steve

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@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 watching
participants (3)
-
Arthur van Leeuwen
-
Steven Elkins
-
Wolfgang Thaller