Mysterious ar failure on Windows
I noticed the following failure of ar
on Windows: https://gitlab.haskell.org/ghc/ghc/-/jobs/410412.
Error when running Shake build system:
at want, called at src\Main.hs:102:30 in main:Main
* Depends on: binary-dist
at apply1, called at src\Development\Shake\Internal\Rules\Rerun.hs:41:5 in shake-0.18.5-5c5a2678b4e222fe0423eb619b23d368e31f3b1b:Development.Shake.Internal.Rules.Rerun
* Depends on: binary-dist-dir
at need, called at src\Rules\BinaryDist.hs:119:9 in main:Rules.BinaryDist
* Depends on: _build/stage1/bin/hp2ps.exe
at need, called at src\Rules\Library.hs:156:18 in main:Rules.Library
* Depends on: _build/stage1/rts/build/libHSrts-1.0_thr_debug.a
at cmd, called at src\Hadrian\Builder\Ar.hs:53:5 in main:Hadrian.Builder.Ar
* Raised the exception:
Development.Shake.cmd, system command failed
Command line: C:/GitLabRunner/builds/ux46CNax/0/ghc/ghc/inplace/mingw/bin/ar.exe q _build/stage1/rts/build/libHSrts-1.0_thr_debug.a @C:\GitLabRunner\builds\ux46CNax\0\ghc\ghc\tmp\ext94C1
Exit code: 1
Stderr:
C:/GitLabRunner/builds/ux46CNax/0/ghc/ghc/inplace/mingw/bin/ar.exe: creating _build/stage1/rts/build/libHSrts-1.0_thr_debug.a
C:/GitLabRunner/builds/ux46CNax/0/ghc/ghc/inplace/mingw/bin/ar.exe: could not create temporary file whilst writing archive: no more archived files
I have no idea what happened here. Perhaps it's a toolchain bug (see https://stackoverflow.com/questions/54172460/mingws-ar-exe-could-not-create-temporary-file-whilst-writing-archive-no-more)?