Windows container: CMake Error: Remove failed on file (PDB)
When running CMake 3.10.0 in git bash 18.104.22.168 inside a Windows 2016 Server container (Docker Community 17.09.1-ce-win42 (14687)), I get the following:
CMake Error: Remove failed on file: C:/mypath/morepath/CMakeFiles/CMakeTmp/Debug/cmTC_cbda2.pdb: System Error: No such file or directory
Which eventually leads to:
CMake Error at C:/Program Files/CMake/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52 (message): The C compiler
"C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x86/cl.exe"
is not able to compile a simple test program.
It fails with the following output:
LINK : fatal error LNK1318: Unexpected PDB error; RPC (23) '(0x000006E7)' [C:\mypath\morepath\CMakeFiles\CMakeTmp\cmTC_cbda2.vcxproj]
However, I can successfully run this command and find the file:
ls -l C:/mypath/morepath/CMakeFiles/CMakeTmp/Debug/cmTC_cbda2.pdb