-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image windows-2022: Microsoft.VCToolsVersion.v143.default.props contains wrong version #9670
Comments
Hey @kblaschke! It's notorious bug of Visual Studio when multiple v143 toolsets installed. 😞 I suppose this time mentioned library version changed in the latest toolchain which triggering your issue. We have nothing to do here except remove additional toolsets in order to force users to install it by their own. Related issues: #9404, #9086, #7867, #7832 I'll keep this item for some time - we'll reinvestigate and possibly reconsider situation around this bug. |
Thanks for the quick response! I've been able to fix the build for now using the TheMrMilchmann/setup-msvc-dev@v3 action, but it would be nice to have a default setup that "just works" and simply uses the latest toolset automatically. I'll watch this issue and remove the workaround once this has been solved. |
Heads up! Thanks to everyone involved in the related issues for your patience and information provided. |
The issue was fixed in the pipeline images back 5 months ago so we should be able to remove the workaround: actions/runner-images#9670
The issue was fixed in the pipeline images back 5 months ago so we should be able to remove the workaround: actions/runner-images#9670
The issue was fixed in the pipeline images back 5 months ago so we should be able to remove the workaround: actions/runner-images#9670
Description
As described in azure-pipelines-agent issue #4554 and this Developer Community post, the current windows-2022 runner image has a wrong toolset version in the
Microsoft.VCToolsVersion.v143.default.props
file, leading to linker errors in certain build configurations.Specifically, linking a static library calling
sleep_for
into an executable will cause a linker error such as this:One of my projects exposes the issue in a very reproducible way: https://github.com/kblaschke/frontend-sdl2/actions
There are lots of other reports on GitHub and elsewhere having the same issue, possibly caused by a broken Visual Studio update. Examples:
Platforms affected
Runner images affected
Image version and build link
Current runner version: '2.315.0'
Example failed build: https://github.com/kblaschke/frontend-sdl2/actions/runs/8619445446/job/23624147736
Is it regression?
2.311.0, https://github.com/kblaschke/frontend-sdl2/actions/runs/7588250886/job/20670360139
Expected behavior
The build should succeed, and the static library linked without an error.
Actual behavior
The build fails due to linker errors, most likely because the different builds steps select different toolset versions due to the broken .props files.
Repro steps
std::this_thread::sleep_for
inside a function. The Poco::File class from the POCO framework is the one exposing an issue in my builds for example.The text was updated successfully, but these errors were encountered: