public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rocm-compilersupport] f44: Need to workaround __noinline__
@ 2026-10-25 13:48 Tom Rix
  0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-10-25 13:48 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/rocm-compilersupport
            Branch : f44
            Commit : a54851746fc9284da9d1657e7e2c02906d068d06
            Author : Tom Rix <Tom.Rix@amd.com>
            Date   : 2026-10-25T06:44:49-07:00
            Stats  : +76/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/rocm-compilersupport/c/a54851746fc9284da9d1657e7e2c02906d068d06?branch=f44

            Log:
            Need to workaround __noinline__

f44 has same problem as f45 wrt libstd++

Signed-off-by: Tom Rix <Tom.Rix@amd.com>

---
diff --git a/0001-rocm-llvm-workaround-__noinline__.patch b/0001-rocm-llvm-workaround-__noinline__.patch
new file mode 100644
index 0000000..8c17c72
--- /dev/null
+++ b/0001-rocm-llvm-workaround-__noinline__.patch
@@ -0,0 +1,70 @@
+From cf2ec5ea8167867e1bf81bcece71b64e819569f0 Mon Sep 17 00:00:00 2001
+From: Tom Rix <Tom.Rix@amd.com>
+Date: Sat, 24 Oct 2026 08:32:00 -0700
+Subject: [PATCH] rocm-llvm workaround __noinline__
+
+---
+ clang/lib/Headers/CMakeLists.txt       |  1 +
+ clang/lib/Headers/cuda_wrappers/format | 38 ++++++++++++++++++++++++++
+ 2 files changed, 39 insertions(+)
+ create mode 100644 clang/lib/Headers/cuda_wrappers/format
+
+diff --git a/clang/lib/Headers/CMakeLists.txt b/clang/lib/Headers/CMakeLists.txt
+index 2e911aa41c7c..13ab7a1a801b 100644
+--- a/clang/lib/Headers/CMakeLists.txt
++++ b/clang/lib/Headers/CMakeLists.txt
+@@ -330,6 +330,7 @@ set(cuda_wrapper_files
+   cuda_wrappers/array
+   cuda_wrappers/cmath
+   cuda_wrappers/complex
++  cuda_wrappers/format
+   cuda_wrappers/new
+ )
+ 
+diff --git a/clang/lib/Headers/cuda_wrappers/format b/clang/lib/Headers/cuda_wrappers/format
+new file mode 100644
+index 000000000000..1d26da455848
+--- /dev/null
++++ b/clang/lib/Headers/cuda_wrappers/format
+@@ -0,0 +1,38 @@
++/*===---- format - CUDA wrapper for <format> ------------------------------===
++ *
++ * Permission is hereby granted, free of charge, to any person obtaining a copy
++ * of this software and associated documentation files (the "Software"), to deal
++ * in the Software without restriction, including without limitation the rights
++ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
++ * copies of the Software, and to permit persons to whom the Software is
++ * furnished to do so, subject to the following conditions:
++ *
++ * The above copyright notice and this permission notice shall be included in
++ * all copies or substantial portions of the Software.
++ *
++ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
++ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
++ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
++ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
++ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
++ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
++ * THE SOFTWARE.
++ *
++ *===-----------------------------------------------------------------------===
++ */
++
++#ifndef __CLANG_CUDA_WRAPPERS_FORMAT
++#define __CLANG_CUDA_WRAPPERS_FORMAT
++
++#if _GLIBCXX_RELEASE >= 16
++#pragma push_macro("__noinline__")
++#undef __noinline__
++#endif
++
++#include_next <format>
++
++#if _GLIBCXX_RELEASE >= 16
++#pragma pop_macro("__noinline__")
++#endif
++
++#endif // include guard
+-- 
+2.56.0
+

diff --git a/rocm-compilersupport.spec b/rocm-compilersupport.spec
index 471f0b1..ca6d24a 100644
--- a/rocm-compilersupport.spec
+++ b/rocm-compilersupport.spec
@@ -135,7 +135,7 @@ Version:        %{llvm_maj_ver}
 %if %{with gitcommit}
 Release:        0.rocm%{rocm_version}^git%{date0}.%{shortcommit0}%{?dist}.1
 %else
-Release:        13.rocm%{rocm_version}%{?dist}
+Release:        14.rocm%{rocm_version}%{?dist}
 %endif
 
 Summary:        Various AMD ROCm LLVM related services
@@ -167,6 +167,8 @@ Patch5:         0001-rocm-compilersupport-simplify-use-runtime-wrapper-ch.patch
 # https://bugzilla.redhat.com/show_bug.cgi?id=2415065
 Patch6:         0001-lld-workaround-.gnu.version-change.patch
 
+Patch8:         0001-rocm-llvm-workaround-__noinline__.patch
+
 BuildRequires:  cmake
 %if 0%{?fedora} || 0%{?suse_version}
 BuildRequires:  fdupes
@@ -1149,6 +1151,9 @@ rm -rf %{buildroot}%{pkg_prefix}/share/doc/hipcc/README.md
 %endif
 
 %changelog
+* Sat Oct 24 2026 Tom Rix <Tom.Rix@amd.com> - 20-14.rocm7.1.1
+- Workaround __noinline__
+
 * Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 20-13.rocm7.1.1
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-25 13:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-25 13:48 [rpms/rocm-compilersupport] f44: Need to workaround __noinline__ Tom Rix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox