File rocclr-disable-gcc15-asserts.patch of Package rocclr
diff --git a/hipamd/CMakeLists.txt b/hipamd/CMakeLists.txt
index 94420690b..f8a647617 100755
--- a/hipamd/CMakeLists.txt
+++ b/hipamd/CMakeLists.txt
@@ -291,6 +291,14 @@ set(_versionInfoHeader
#define HIP_VERSION_BUILD_NAME \"${HIP_VERSION_BUILD_NAME}\"
#define HIP_VERSION (HIP_VERSION_MAJOR * 10000000 + HIP_VERSION_MINOR * 100000 + HIP_VERSION_PATCH)\n
#define __HIP_HAS_GET_PCH ${_pchStatus}\n
+// Workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115740\n
+#if defined(__has_include) && defined(__cplusplus) && defined(__HIP__)\n
+ #if __has_include(\"bits/c++config.h\")\n
+ #include <bits/c++config.h>\n
+ #undef __glibcxx_assert\n
+ #define __glibcxx_assert(cond)\n
+ #endif\n
+#endif\n
#endif\n
")
file(WRITE "${PROJECT_BINARY_DIR}/include/hip/hip_version.h" ${_versionInfoHeader})