Open
Description
Description
Here is the build error:
In file included from <built-in>:1:
In file included from /builddir/build/BUILD/dotnet-8.0.17/src/runtime/artifacts/source-build/self/src/artifacts/obj/coreclr/linux.x64.Release/debug/di/CMakeFiles/cordbdi.dir/cmake_pch.hxx:5:
In file included from /builddir/build/BUILD/dotnet-8.0.17/src/runtime/artifacts/source-build/self/src/src/coreclr/debug/di/stdafx.h:30:
/builddir/build/BUILD/dotnet-8.0.17/src/runtime/artifacts/source-build/self/src/src/coreclr/debug/di/rspriv.h:6357:36: error: in-class initializer for static data member is not a constant expression
6357 | static const CorDebugUserState kInvalidUserState = CorDebugUserState(-1);
| ^ ~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/dotnet-8.0.17/src/runtime/artifacts/source-build/self/src/src/coreclr/debug/di/rspriv.h:6357:56: note: integer value -1 is outside the valid range of values [0, 511] for the enumeration type 'CorDebugUserState'
6357 | static const CorDebugUserState kInvalidUserState = CorDebugUserState(-1);
| ^
1 error generated.
make[2]: *** [debug/di/CMakeFiles/cordbdi.dir/build.make:77: debug/di/CMakeFiles/cordbdi.dir/cmake_pch.hxx.pch] Error 1
make[2]: Leaving directory '/builddir/build/BUILD/dotnet-8.0.17/src/runtime/artifacts/source-build/self/src/artifacts/obj/coreclr/linux.x64.Release'
make[1]: *** [CMakeFiles/Makefile2:4477: debug/di/CMakeFiles/cordbdi.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Reproduction Steps
On a Fedora system or container, you can install a snapshot of clang that will demonstrate the error:
dnf copr enable @fedora-llvm-team/llvm-snapshots-big-merge-20250622
dnf install clang
Expected behavior
The runtime should compile successfully.
Actual behavior
The build fails with the above error message.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
Metadata
Metadata
Assignees
Type
Projects
Status
No status