You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that a recent Visual Studio update included an update of the MSVC STL which now requires at least clang-cl / LLVM 17. When trying to compile C++ code one gets:
In file included from C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\cstddef:8:
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\yvals_core.h(898,1): error: static assertion failed: error STL1000: Unexpected compiler version, expected Clang 17.0.0 or newer.
_EMIT_STL_ERROR(STL1000, "Unexpected compiler version, expected Clang 17.0.0 or newer.");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\include\yvals_core.h(519,44): note: expanded from macro '_EMIT_STL_ERROR'
#define _EMIT_STL_ERROR(NUMBER, MESSAGE) static_assert(false, "error " #NUMBER ": " MESSAGE)
^ ~~~~~
1 error generated.
I am also seeing this. The breakage was introduced by #9990. You don't need to be using the ilammy/msvc-dev-cmd@v1 action. Any C++ compilation unit that's compiled with clang and uses the Visual Studio C++ standard library will fail.
Description
It seems that a recent Visual Studio update included an update of the MSVC STL which now requires at least clang-cl / LLVM 17. When trying to compile C++ code one gets:
https://github.com/jhasse/jngl/actions/runs/9427257827/job/25971152500
Platforms affected
Runner images affected
Image version and build link
Image: windows-2022
Version: 20240603.1.0
Included Software: https://github.com/actions/runner-images/blob/win22/20240603.1/images/windows/Windows2022-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/win22%2F20240603.1
Is it regression?
yes, latest working version: 20240514.3.0 https://github.com/jhasse/jngl/actions/runs/9405452591/job/25906642387
Expected behavior
clang-cl can compile code that includes C++ STL
Actual behavior
See description
Repro steps
cmake -DCMAKE_CXX_COMPILER=clang-cl
The text was updated successfully, but these errors were encountered: