Skip to content

Another process wait issue on Windows?

Recently I noticed another Windows failure from ghc-cabal in CI:

Configuring compareSizes-0.1.0.0...
 "inplace/bin/ghc-cabal.exe" configure utils/compare_sizes dist-install --with-ghc="C:/GitLabRunner/builds/2WeHDSFP/0/ghc/ghc/inplace/bin/ghc-stage1.exe" --with-ghc-pkg="C:/GitLabRunner/builds/2WeHDSFP/0/ghc/ghc/inplace/bin/ghc-pkg.exe"  --disable-library-for-ghci --disable-library-vanilla --disable-library-profiling --disable-shared --configure-option=CFLAGS="-Wall    -Wno-error=inline -iquote C:/GitLabRunner/builds/2WeHDSFP/0/ghc/ghc/utils/compare_sizes" --configure-option=LDFLAGS="  " --configure-option=CPPFLAGS="   " --gcc-options="-Wall    -Wno-error=inline -iquote C:/GitLabRunner/builds/2WeHDSFP/0/ghc/ghc/utils/compare_sizes   " --configure-option=--with-intree-gmp --with-gcc="C:/GitLabRunner/builds/2WeHDSFP/0/ghc/ghc/inplace/mingw/bin/gcc.exe" --with-ld="C:/GitLabRunner/builds/2WeHDSFP/0/ghc/ghc/inplace/mingw/bin/ld.exe" --with-ar="C:/GitLabRunner/builds/2WeHDSFP/0/ghc/ghc/inplace/mingw/bin/ar.exe" --with-alex="/c/GitLabRunner/builds/2WeHDSFP/0/ghc/ghc/toolchain/bin/alex.exe" --with-happy="/c/GitLabRunner/builds/2WeHDSFP/0/ghc/ghc/toolchain/bin/happy.exe"
 Configuring compareSizes-0.1.0.0...
C:\GitLabRunner\builds\2WeHDSFP\0\ghc\ghc\tmp\ghcC7FB.o.tmp: renameFile:renamePath:MoveFileEx "\\\\?\\C:\\GitLabRunner\\builds\\2WeHDSFP\\0\\ghc\\ghc\\tmp\\ghcC7FB.o.tmp" Just "\\\\?\\C:\\GitLabRunner\\builds\\2WeHDSFP\\0\\ghc\\ghc\\tmp\\ghcC7FB.o": does not exist (The system cannot find the file specified.)
make[1]: *** [utils/compare_sizes/ghc.mk:9: utils/compare_sizes/dist-install/package-data.mk] Error 1

This appears to be merely the latest in a long line of persistent bugs on Windows regarding process and its ability to wait for the subprocess to exit:

Edited by Ben Gamari
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information