snowleopard / hadrian

Hadrian: a new build system for the Glasgow Haskell Compiler. Now merged into the GHC tree!
https://gitlab.haskell.org/ghc/ghc/tree/master/hadrian
MIT License
208 stars 39 forks source link

Fail to build with zero.o #652

Open ndmitchell opened 5 years ago

ndmitchell commented 5 years ago

I got the error message:

hadrian.EXE: _build/stage1/gmp/objs/zero.o: openFile: does not exist (No such file or directory)
hc.hs: Failed when running system command: hadrian\build.bat -j --flavour=quickest --configure
CallStack (from HasCallStack):
  error, called at src\System\Process\Extra.hs:34:9 in extra-1.6.7-DkYI48qjpr3GWa49wfvAlC:System.Process.Extra
  system_, called at C:\Neil\neil\bin\..\misc\hc.hs:48:5 in main:Main

It did not repeat when I rebuilt. On Windows.

snowleopard commented 5 years ago

Did this happen during the build or linting? This does happen (with random object files), albeit very rarely, and I think typically during linting. Seems like a concurrency bug.

I don't think it's Windows specific. I think I've seen Travis CI bots failing similarly.

ndmitchell commented 5 years ago

Hmm, could be. If so it would be a weird bug, perhaps even one in GHC itself...