ghc MacOS X 10.2 behaviour
Wolfgang Thaller
wolfgang.thaller at gmx.net
Mon Oct 14 16:00:34 EDT 2002
Simon Peyton-Jones wrote:
> glasgow-haskell-bugs at haskell.org 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: Markus.Schnell at infineon.com
> [mailto:Markus.Schnell at infineon.com]
> | Sent: 14 October 2002 14:44
> | To: haskell at haskell.org
> | 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
More information about the Glasgow-haskell-bugs
mailing list