public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tom Rix <Tom.Rix@amd.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rocm-compilersupport] rawhide: Fix preview hipcc
Date: Fri, 28 Aug 2026 19:33:31 GMT	[thread overview]
Message-ID: <178794561178.1.209300898770338787.rpms-rocm-compilersupport-75f68fc57274@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rocm-compilersupport
            Branch : rawhide
            Commit : 75f68fc57274a70d7628216db30b6c03590a5691
            Author : Tom Rix <Tom.Rix@amd.com>
            Date   : 2026-08-28T12:32:42-07:00
            Stats  : +43/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/rocm-compilersupport/c/75f68fc57274a70d7628216db30b6c03590a5691?branch=rawhide

            Log:
            Fix preview hipcc

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

---
diff --git a/0001-hipcc-fix-path.patch b/0001-hipcc-fix-path.patch
new file mode 100644
index 0000000..860ca20
--- /dev/null
+++ b/0001-hipcc-fix-path.patch
@@ -0,0 +1,40 @@
+From 454489de69538a3f4b102a4fd11230299c2b1205 Mon Sep 17 00:00:00 2001
+From: Tom Rix <Tom.Rix@amd.com>
+Date: Fri, 28 Aug 2026 06:54:40 -0700
+Subject: [PATCH] hipcc fix path
+
+---
+ amd/hipcc/src/hipBin_amd.h  | 3 ++-
+ amd/hipcc/src/hipBin_base.h | 2 +-
+ 2 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/amd/hipcc/src/hipBin_amd.h b/amd/hipcc/src/hipBin_amd.h
+index 90490b29a18e..bb5393cbb00d 100644
+--- a/amd/hipcc/src/hipBin_amd.h
++++ b/amd/hipcc/src/hipBin_amd.h
+@@ -203,7 +203,8 @@ void HipBinAmd::constructCompilerPath() {
+     fs::path hipClangPath;
+     compilerPath = getRoccmPath();
+     hipClangPath = compilerPath;
+-    hipClangPath /= "lib";
++    hipClangPath /= "lib64";
++    hipClangPath /= "rocm";
+     hipClangPath /= "llvm";
+     hipClangPath /= "bin";
+     compilerPath = hipClangPath.string();
+diff --git a/amd/hipcc/src/hipBin_base.h b/amd/hipcc/src/hipBin_base.h
+index 1d2f043e9558..158ec406cab8 100644
+--- a/amd/hipcc/src/hipBin_base.h
++++ b/amd/hipcc/src/hipBin_base.h
+@@ -336,7 +336,7 @@ void HipBinBase::constructHipPath() {
+   fs::path parent_path = full_path.parent_path();
+ 
+   // Next, check for `../lib/llvm/bin/`, the standard ROCm install structure.
+-  fs::path llvm_path = parent_path / "lib" / "llvm" / "bin";
++  fs::path llvm_path = parent_path / "lib64" / "rocm" / "llvm" / "bin";
+   if (fs::exists(llvm_path)) {
+     variables_.hipPathEnv_ = parent_path.string();
+     return;
+-- 
+2.55.0
+

diff --git a/rocm-compilersupport.spec b/rocm-compilersupport.spec
index 8d38f36..317d43c 100644
--- a/rocm-compilersupport.spec
+++ b/rocm-compilersupport.spec
@@ -180,6 +180,9 @@ Patch5:         0001-lld-workaround-.gnu.version-change.patch
 Patch6:         0001-clang-23-link-libamdhip64.patch
 Patch7:         0001-libcxx-noinline-workaround.patch
 Patch8:         0001-rocm-llvm-workaround-__noinline__.patch
+%if %{with preview}
+Patch9:         0001-hipcc-fix-path.patch 
+%endif
 
 BuildRequires:  cmake
 %if 0%{?fedora} || 0%{?suse_version}

                 reply	other threads:[~2026-08-28 19:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178794561178.1.209300898770338787.rpms-rocm-compilersupport-75f68fc57274@fedoraproject.org \
    --to=tom.rix@amd.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox