leledumbo | 30 Jun 09:32

Error building GHC 6.8.3 with MinGW 4.2.1-2 dw2


I try to build a lite version (e.g. no extra libs) of GHC 6.8.3, I'm using
MinGW GCC 4.2.1-2 with dwarf-2 exception and pre-compiled GHC 6.8.3. Here's
my configure:
sh configure --prefix=/c/ghc-new CFLAGS='-s -O2' LDFLAGS='-s -O2'
--with-gmp-includes=/usr/local/gmp/include
--with-gmp-libraries=/usr/local/gmp/lib
And my make:
make bootstrap3

But in the middle, I got this:
Preprocessing library hpc-0.5.0.1...
In file included from D:/Sources/ghc/ghc-6.8.3-lite/includes/Stg.h:183,
                 from D:/Sources/ghc/ghc-6.8.3-lite/includes/Rts.h:19,
                 from Trace\Hpc\Reflect.hsc:18:
D:/Sources/ghc/ghc-6.8.3-lite/includes/Regs.h:28:17: error: gmp.h: No such
file
or directory
In file included from D:/Sources/ghc/ghc-6.8.3-lite/includes/Stg.h:183,
                 from D:/Sources/ghc/ghc-6.8.3-lite/includes/Rts.h:19,
                 from Trace\Hpc\Reflect.hsc:18:
D:/Sources/ghc/ghc-6.8.3-lite/includes/Regs.h:121: error: expected
specifier-qua
lifier-list before 'MP_INT'
In file included from Trace\Hpc\Reflect.hsc:18:
D:/Sources/ghc/ghc-6.8.3-lite/includes/Rts.h:203: error: expected ')' before
'*'
 token
D:/Sources/ghc/ghc-6.8.3-lite/includes/Rts.h:204: error: expected ')' before
'*'
(Continue reading)


Gmane