Simon Peyton-Jones wrote:

> [EMAIL PROTECTED] would be a better bet.
> Wolfgang Thaller is Supreme Being for MacOS so I'm cc'ing him too.

Oh, I like that title!

> | -----Original Message-----
> | From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]]
> | Sent: 14 October 2002 14:44
> | To: [EMAIL PROTECTED]
> | Subject: ghc MacOS X 10.2 behaviour
> |
> | [...]
> |
> | Now, when I compile some code with ghc I get two errors:
> | "/tmp/ghc617.hc:283: conflicting types for
> 'GHCziTopHandler_runIO_closure'"
> | and
> | "/usr/local/lib/ghc-5.04/include/RtsAPI.h:125: previous declaration 
> of
> | 'GHCziTopHandler_runIO_closure'"

This is an incompatibility with GCC 3.
There are two ways to work around this:
a) (the recommended way) Switch to GCC 2 using:
sudo gcc_select 2
b) Edit the file /usr/local/lib/ghc-5.04/include/RtsAPI.h. Remove the 
"const" from the declaration in line 125 and from the declaration next 
to it.
Compilation should now work, but the generated code is worse than with 
GCC 2.

The problem will be fixed in GHC 5.04.2 (There won't be a 5.04.1 for 
Mac OS).

> | Thanks,
> | Markus

Gr��e von Graz nach M�nchen(?)!

Wolfgang Thaller

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to