RE: ghc MacOS X 10.2 behaviour
[EMAIL PROTECTED] would be a better bet. Wolfgang Thaller is Supreme Being for MacOS so I'm cc'ing him too. | -Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] | Sent: 14 October 2002 14:44 | To: [EMAIL PROTECTED] | Subject: ghc MacOS X 10.2 behaviour | | Hi all, | | I'm working with Haskell on MacOS X 10.2.1 using the binaries from | www.uni-graz.at/imawww/haskell. | | 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' | | Using ghci or compiling with -O2 doesn't show this error. | | Any ideas what's wrong? | | Thanks, | Markus | | By the way, if there is a list more suited for the subject, please tell me. | | | ___ | Haskell mailing list | [EMAIL PROTECTED] | http://www.haskell.org/mailman/listinfo/haskell ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: ghc MacOS X 10.2 behaviour
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