Build faliing on Windows

Simon Peyton-Jones simonpj at microsoft.com
Tue Apr 16 22:34:41 CEST 2013


Hmm.  Re-running the configure step, and the mode_t test worked.  I have no idea why. The first time it said
checking Haskell type for ino_t... Int16
checking Haskell type for mode_t... not supported

This time it says
checking Haskell type for ino_t... Int16
checking Haskell type for mode_t... Word16


However, if success on mode_t is required (which it is) for Windows, shouldn't we get an error from configure, rather than ploughing on and only bleating later when some obscure file doesn't compile?

Simon

From: ghc-devs-bounces at haskell.org [mailto:ghc-devs-bounces at haskell.org] On Behalf Of Simon Peyton-Jones
Sent: 16 April 2013 21:27
To: ghc-devs at haskell.org
Subject: Build faliing on Windows

Argh!  Again!  The Windows build is failing.  Here's the error:

libraries\base\System\Posix\Types.hs:179:23:
    Not in scope: type constructor or class `CMode'
make[1]: *** [libraries/base/dist-install/build/System/Posix/Types.o] Error 1
make[1]: *** Waiting for unfinished jobs....

Indeed base/includes/HsBaseConfig.h says

/* Define to Haskell type for mode_t */
/* #undef HTYPE_MODE_T */

which means CMode doesn't get defined.

The config.log file looks suspicious, note the line in red.

I'm stuck

Simon

configure:13967: checking Haskell type for mode_t
configure:13974: c:/code/HEAD/inplace/mingw/bin/gcc.exe -o conftest.exe -Wall -fno-stack-protector         -Wl,--hash-size=31 -Wl,--reduce-memory-overheads   conftest.c  >&5
configure:13974: $? = 0
configure:13974: ./conftest.exe
configure:13974: $? = 0
configure:14230: c:/code/HEAD/inplace/mingw/bin/gcc.exe -o conftest.exe -Wall -fno-stack-protector         -Wl,--hash-size=31 -Wl,--reduce-memory-overheads   conftest.c  >&5
c:/code/HEAD/inplace/mingw/bin/ld.exe: cannot open output file conftest.exe: Permission denied

collect2: ld returned 1 exit status

configure:14230: $? = 1
configure: program exited with status 1
configure: failed program was:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20130416/6e1abaa2/attachment.htm>


More information about the ghc-devs mailing list