Bug in GHC for MacOSX 10.2?
Ashley Yakeley
ashley@semantic.org
Sat, 14 Sep 2002 22:06:28 -0700
I get this when trying to compile with the new GHC 5.04 for 10.2:
ghc -fglasgow-exts -fallow-undecidable-instances -fno-implicit-prelude
-package lang -package data -i. -c DumpRDF.hs -o DumpRDF.o
/tmp/ghc22945.hc:429: conflicting types for
`GHCziTopHandler_runIO_closure'
/usr/local/lib/ghc-5.04/include/RtsAPI.h:125: previous declaration of
`GHCziTopHandler_runIO_closure'
>From the .hc:
EC_(GHCziTopHandler_runIO_closure);
>From StgMacros.h:
#define EC_ extern StgClosure
>From RtsAPI.h
extern DLL_IMPORT const StgClosure GHCziTopHandler_runIO_closure;
The C compiler seems to object to the difference in 'constness'...
--
Ashley Yakeley, Seattle WA