Automating GHC build for Windows

Páli Gábor János pali.gabor at
Tue Oct 28 17:37:54 UTC 2014

2014-10-26 18:17 GMT+01:00 Gintautas Miliauskas <gintautas at>:
> Maybe it's something silly like one process not having enough
> time to clean up and close the file before the next command tries to move
> it? I'd add a sleep before the mv and see if that helps.

I am far from understanding all the details of the problem, but I
believe the move operation originates from the ghc-cabal binary.  For
what it is worth, I could not even find the place in the sources where
the referenced MoveFileEx is called:

"inplace/bin/ghc-cabal.exe" configure libraries/binary dist-boot ""
--disable-library-for-ghci --enable-library-vanilla
--enable-library-for-ghci --disable-library-profiling --disable-shared
--configure-option=CFLAGS=" -U__i686 -march=i686 -fno-stack-protector
 " --configure-option=LDFLAGS="   " --configure-option=CPPFLAGS="   "
--gcc-options=" -U__i686 -march=i686 -fno-stack-protector       "
--constraint "binary =="   --constraint "Cabal =="
--constraint "hpc =="   --constraint "bin-package-db =="   --constraint "hoopl =="   --constraint
"transformers =="
Configuring binary-
ghc-cabal.exe: dist-boot\setup-config3736.tmp: MoveFileEx
"dist-boot\\setup-config3736.tmp" "dist-boot\\setup-config":
permission denied (Access is denied.)
libraries/binary/ recipe for target
'libraries/binary/dist-boot/' failed

> Does the build
> proceed if you try "make" without cleaning the repository, or does it hang
> again at the same spot?

It is fully reproducible by the subsequent make(1) invocations as
well, that is, yes, it hangs at the same spot.

2014-10-28 17:18 GMT+01:00 Gintautas Miliauskas
<gintautas.miliauskas at>:
> Any luck with getting the Windows continuous builds back up and running?

No, not yet.  But I will keep posted on the results.

> I'd be willing to try to help out if remote access is available

I think this could be arranged.

> although the
> build environment should be updated first in case that's the source of the
> trouble.

Right, I will contact you off-list about this once I moved to
toolchain versions to the ones recommended at the Windows build page.

More information about the ghc-devs mailing list