Re: Windows build broken

Tamar Christina lonetiger at
Tue Mar 3 23:17:22 UTC 2015


Yes, sorry about that, I’m trying to reproduce it locally but no luck so far.. (waiting for a clean checkout to finish now)

But the fix is probably to swap the definition of 

Excn.h and PosixSource.h in RtsMain.c or moving Excn.h to the bottom of the include list.

Something in Excn.h must be using _mingw.h which will define the macro if not defined.

Adding PosixSource to the top would make sure it is defined before anything else.



From: Austin Seipp
Sent: ‎Wednesday‎, ‎March‎ ‎4‎, ‎2015 ‎00‎:‎14
To: Simon Peyton Jones
Cc: ghc-devs at

This must be fallout from the VEH handler change I pushed earlier -

I'll try to fix/revert shortly.

On Tue, Mar 3, 2015 at 4:30 PM, Simon Peyton Jones
<simonpj at> wrote:
> AAARGH!  Windows build is broken again.
> Please can someone fix?
> In file included from rts\RtsMain.c:12:0:
> rts\PosixSource.h:31:0:  error: "__USE_MINGW_ANSI_STDIO" redefined
> c:\code\head\inplace\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/_mingw.h:280:0:
> note: this is the location of the previous definition
> rts/ recipe for target 'rts/dist/build/RtsMain.o' failed
> make[1]: *** [rts/dist/build/RtsMain.o] Error 1
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at


Austin Seipp, Haskell Consultant
Well-Typed LLP,
ghc-devs mailing list
ghc-devs at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ghc-devs mailing list