Visual Studio "CUSTOMBUILD : CMake error : Cannot restore timestamp"
We are seeing the the error CUSTOMBUILD : CMake error : Cannot restore timestamp
in our daily builds. This originally happened with an older version of CMake, 3.16. I saw a similar issue that indicated it was a race condition in CMake code and the recommendation was to update the version of CMake.
I updated CMake and I still see this error regularly, almost daily in 1-2 times out of 8 for one particular project.
Additional Information
- CMake version 3.23.1
- Windows 10 Enterprise 21H2 (19044.1645)
- There are 8 build machines. The problem has been observed on any of them.
- These are bare metal machine. Not VMs. Not Docker containers.
- The problem has been observed for compiles on:
- VS2013 64bit
- VS2013 32bit
- VS2015 64bit
- VS2015 32bit
- The problem has not been observed for VS2012 or VS2017 yet.
- This is running inside of a Jenkins build pipeline
Exact error sequence
2022-05-10 00:08:37 Building Custom Rule C:/Users/build/.jenkinsM2/workspace/DICOS-SDK/Build-Win/B/64/V/VS2013/BuildCmds/Common/CMakeLists.txt
2022-05-10 00:08:37 Building Custom Rule C:/Users/build/.jenkinsM2/workspace/DICOS-SDK/Build-Win/B/64/V/VS2013/BuildCmds/Common/CMakeLists.txt
2022-05-10 00:08:37 TestAssociateAC.cpp
2022-05-10 00:08:38 TestAssociateRQ.cpp
2022-05-10 00:08:38 TestAttributes.cpp
2022-05-10 00:08:38 Building Custom Rule C:/Users/build/.jenkinsM2/workspace/DICOS-SDK/Build-Win/B/64/V/VS2013/BuildCmds/Common/CMakeLists.txt
2022-05-10 00:08:38 TestBaggageSpecificTDR.cpp
2022-05-10 00:08:38 UserLevel_Buffer_Interface.cpp
2022-05-10 00:08:38 TestBasicPixelSpacingCalibrationMacro.cpp
2022-05-10 00:08:38 TestCEcho.cpp
2022-05-10 00:08:38 TestCStore.cpp
2022-05-10 00:08:38 TestCT.cpp
2022-05-10 00:08:38 TestCTImageFrameType.cpp
2022-05-10 00:08:38 TestCTImageModule.cpp
2022-05-10 00:08:39 TestCTMultiframeFunctionalGroupMacros.cpp
2022-05-10 00:08:39 TestCTMultiframeFunctionalGroups.cpp
2022-05-10 00:08:39 TestCTPixelValueTransformation.cpp
2022-05-10 00:08:39 SetAllowedCiphers.cpp
2022-05-10 00:08:39 TestCTSeriesBase.cpp
2022-05-10 00:08:39 TestCTSeriesModule.cpp
2022-05-10 00:08:39 TestCTXRayDetails.cpp
2022-05-10 00:08:40 ConverterUtils.cpp
2022-05-10 00:08:40 DicosVersionConverter.cpp
2022-05-10 00:08:40 TestChemicalCodeSequence.cpp
2022-05-10 00:08:40 V02toV02AConverterConsole.cpp
2022-05-10 00:08:40 TestClientManager.cpp
2022-05-10 00:08:40 TestCommonImageDescription.cpp
2022-05-10 00:08:40 TestCommonInstanceReferenceModule.cpp
2022-05-10 00:08:40 CUSTOMBUILD : CMake error : Cannot restore timestamp "C:/Users/build/.jenkinsM2/workspace/DICOS-SDK/Build-Win/B/64/V/VS2013/Build/build64/VS2013/BuildCmds/Common/CMakeFiles/generate.stamp": Access is denied. [C:\Users\build\.jenkinsM2\workspace\DICOS-SDK\Build-Win\B\64\V\VS2013\Build\build64\VS2013\BuildCmds\Common\TDR_V02A_API_Change.vcxproj]
2022-05-10 00:08:40