compiling ghc-6.2.1

Christian Maeder maeder at tzi.de
Wed Jun 9 09:34:33 EDT 2004


Christian Maeder wrote:
> 
> The actual error not messed up by warnings is:
> 
> ../../ghc/compiler/ghc-inplace -optc-O -optc-w -optc-Wall -optc-W 
> -optc-Wstrict-prototypes -optc-Wmissing-prototypes 
> -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return 
> -optc-Wbad-function-cast -optc-I../includes -optc-I. -optc-Iparallel 
> -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -H16m -O -O2 -static -c 
> GC.c -o GC.o
> GC.c:1663: error: conflicting types for `evacuate'
> GC.c:145: error: previous declaration of `evacuate'
> make[2]: *** [GC.o] Fehler 1

Sorry for answering my own question (or posing the question in the first 
place)

this problem is fixed in the latest ghc/rts/GC.c by:

// Use a register argument for evacuate, if available.
#if __GNUC__ >= 2
#define REGPARM1 __attribute__((regparm(1)))
#else
#define REGPARM1
#endif

Christian



More information about the Glasgow-haskell-users mailing list