Automating GHC build for Windows

Gintautas Miliauskas gintautas at
Thu Oct 30 15:24:42 UTC 2014

Thanks for pushing this forward.

I wonder what's going on with DeleteFile. What is the step that's failing?
Can you post the log?

I also wonder why this issue is not arising on other Windows machines...

On Thu, Oct 30, 2014 at 12:18 AM, Páli Gábor János <pali.gabor at>

> 2014-10-28 21:49 GMT+01:00 Gintautas Miliauskas <gintautas at>:
> > Can you try running the offending command with -v to see which step
> > breaks?
> I have tried it, even together with building the GHC sources with a
> recent toolchain, but I did not get much forward.
> > I tried running it locally under strace but did not see any file renames
> > either.
> Although, I think I managed to find the place where some renaming
> happens.  That is `writeFileAtomic` in Cabal's
> Distribution.Simple.Utils module [1].  The bin-package-db library has
> a patched version of this function [2] that has a workaround for
> Windows.  After incorporating this change in Cabal, I was able to pass
> the previously problematic point in the build.  Unfortunately, this
> was not enough for the complete build, as a similar error (with
> DeleteFile that time) was raised.
> [1]
> [2]

Gintautas Miliauskas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ghc-devs mailing list