Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
qpid-cpp-1.40.0
-
None
-
None
Description
cmake --build "D:\a\qpid-cpp\qpid-cpp/BLD" --config ${BuildType} --parallel 6 -t install
https://github.com/jiridanek/qpid-cpp/actions/runs/3314156604/jobs/5473066487#step:12:1472
-- Up-to-date: D:/a/qpid-cpp/qpid-cpp/INSTALL/examples/messaging/server_reconnect.cpp C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: The command "setlocal [D:\a\qpid-cpp\qpid-cpp\BLD\install.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=RelWithDebInfo -P cmake_install.cmake [D:\a\qpid-cpp\qpid-cpp\BLD\install.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [D:\a\qpid-cpp\qpid-cpp\BLD\install.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: :cmEnd [D:\a\qpid-cpp\qpid-cpp\BLD\install.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [D:\a\qpid-cpp\qpid-cpp\BLD\install.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: :cmErrorLevel [D:\a\qpid-cpp\qpid-cpp\BLD\install.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: exit /b %1 [D:\a\qpid-cpp\qpid-cpp\BLD\install.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: :cmDone [D:\a\qpid-cpp\qpid-cpp\BLD\install.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd [D:\a\qpid-cpp\qpid-cpp\BLD\install.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(159,5): error MSB3073: :VCEnd" exited with code -1. [D:\a\qpid-cpp\qpid-cpp\BLD\install.vcxproj] Error: Process completed with exit code 1.
According to https://stackoverflow.com/a/46187862/1047788 this is symptom of broken install scripts that are overwriting files under one another hands when running in parallel.
Changing compile command to two steps, first compile, then install serially, workarounded the issue.
cmake --build "${{env.BuildDir}}" --config ${BuildType} --parallel 6 cmake --install "${{env.BuildDir}}" --config ${BuildType}