Automating GHC build for Windows
gintautas at miliauskas.lt
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 gmail.com>
> 2014-10-28 21:49 GMT+01:00 Gintautas Miliauskas <gintautas at miliauskas.lt>:
> > 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 . The bin-package-db library has
> a patched version of this function  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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ghc-devs