Bug in GHC for MacOSX 10.2?
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
Ashley Yakeley wrote:
I get this when trying to compile with the new GHC 5.04 for 10.2: [...] The C compiler seems to object to the difference in 'constness'...
"New" is always relative... :-) That buglet has already been fixed in 5.04.1, for a quick fix you can simply nuke the 'const' from the declarations of GHCziTopHandler_runIO_closure and GHCziTopHandler_runNonIO_closure in RtsAPI.h Cheers, S.
participants (2)
-
Ashley Yakeley -
Sven Panne