public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rocm-compilersupport] rawhide: Update preview to 10.1
@ 2026-10-07 20:55 Tom Rix
  0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-10-07 20:55 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/rocm-compilersupport
            Branch : rawhide
            Commit : 32d8a7bc7defb835d65fe494f241ef9d83427b6d
            Author : Tom Rix <Tom.Rix@amd.com>
            Date   : 2026-10-07T13:55:28-07:00
            Stats  : +52/-115 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/rocm-compilersupport/c/32d8a7bc7defb835d65fe494f241ef9d83427b6d?branch=rawhide

            Log:
            Update preview to 10.1

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

---
diff --git a/preview/0001-clang-23-link-libamdhip64.patch b/preview/0001-clang-23-link-libamdhip64.patch
deleted file mode 100644
index 0b19d63..0000000
--- a/preview/0001-clang-23-link-libamdhip64.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From 91e0d2beb874de1c58139acad4a10fd711907a34 Mon Sep 17 00:00:00 2001
-From: Tom Rix <Tom.Rix@amd.com>
-Date: Wed, 26 Aug 2026 05:28:43 -0700
-Subject: [PATCH] clang 23 link libamdhip64
-
----
- clang/lib/Driver/ToolChains/Linux.cpp | 6 +-----
- 1 file changed, 1 insertion(+), 5 deletions(-)
-
-diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp
-index b67e72409bfe..0883c8eb6161 100644
---- a/clang/lib/Driver/ToolChains/Linux.cpp
-+++ b/clang/lib/Driver/ToolChains/Linux.cpp
-@@ -1113,7 +1113,7 @@ void Linux::addOffloadRTLibs(unsigned ActiveKinds, const ArgList &Args,
- 
-   llvm::SmallVector<std::pair<StringRef, StringRef>> Libraries;
-   if (ActiveKinds & Action::OFK_HIP)
--    Libraries.emplace_back(RocmInstallation->getLibPath(), "libamdhip64.so");
-+    CmdArgs.push_back("-lamdhip64");
-   else if ((ActiveKinds & Action::OFK_SYCL) &&
-            !Args.hasArg(options::OPT_nolibsycl))
-     Libraries.emplace_back(SYCLInstallation->getSYCLRTLibPath(),
-@@ -1132,10 +1132,6 @@ void Linux::addOffloadRTLibs(unsigned ActiveKinds, const ArgList &Args,
-     CmdArgs.push_back(Args.MakeArgString(p));
-   }
- 
--  // FIXME: The ROCm builds implicitly depends on this being present.
--  if (ActiveKinds & Action::OFK_HIP)
--    CmdArgs.push_back(
--        Args.MakeArgString(StringRef("-L") + RocmInstallation->getLibPath()));
- }
- 
- void Linux::AddIAMCUIncludeArgs(const ArgList &DriverArgs,
--- 
-2.55.0
-

diff --git a/preview/0001-clang-24-link-libamdhip64.patch b/preview/0001-clang-24-link-libamdhip64.patch
new file mode 100644
index 0000000..669ef9e
--- /dev/null
+++ b/preview/0001-clang-24-link-libamdhip64.patch
@@ -0,0 +1,36 @@
+From ee7aeeb5307d649c6c45147bba36b862aa604fcc Mon Sep 17 00:00:00 2001
+From: Tom Rix <Tom.Rix@amd.com>
+Date: Mon, 5 Oct 2026 05:43:29 -0700
+Subject: [PATCH] clang 24 link libamdhip64
+
+---
+ clang/lib/Driver/ToolChains/Linux.cpp | 6 +-----
+ 1 file changed, 1 insertion(+), 5 deletions(-)
+
+diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp
+index dd8dd08696cb..9d0094aa6547 100644
+--- a/clang/lib/Driver/ToolChains/Linux.cpp
++++ b/clang/lib/Driver/ToolChains/Linux.cpp
+@@ -937,7 +937,7 @@ void Linux::addOffloadRTLibs(unsigned ActiveKinds, const ArgList &Args,
+ 
+   llvm::SmallVector<std::pair<StringRef, StringRef>> Libraries;
+   if (ActiveKinds & Action::OFK_HIP)
+-    Libraries.emplace_back(RocmInstallation->getLibPath(), "libamdhip64.so");
++    CmdArgs.push_back("-lamdhip64");
+   else if ((ActiveKinds & Action::OFK_SYCL) &&
+            !Args.hasArg(options::OPT_nolibsycl))
+     Libraries.emplace_back(SYCLInstallation->getSYCLRTLibPath(),
+@@ -956,10 +956,6 @@ void Linux::addOffloadRTLibs(unsigned ActiveKinds, const ArgList &Args,
+     CmdArgs.push_back(Args.MakeArgString(p));
+   }
+ 
+-  // FIXME: The ROCm builds implicitly depends on this being present.
+-  if (ActiveKinds & Action::OFK_HIP)
+-    CmdArgs.push_back(
+-        Args.MakeArgString(StringRef("-L") + RocmInstallation->getLibPath()));
+ 
+   // For HIP device PGO, link clang_rt.profile_rocm when available. It is a
+   // self-contained superset of clang_rt.profile, emitted first so the base
+-- 
+2.55.0
+

diff --git a/prompts/build.xml b/prompts/build.xml
deleted file mode 100644
index 3099e9b..0000000
--- a/prompts/build.xml
+++ /dev/null
@@ -1,76 +0,0 @@
-<purpose>
-  You are a Fedora package developer.  An expert in Fedora tools rpmbuild and mock.  You have good skills with C++ and CMake.
-
-  Analyze the current build according to the instructions.
-</purpose>
-
-<instructions>
-  <instruction>
-    write analysis output to /tmp/<package-name>.txt
-  </instruction>
-  <instruction>
-    Determine if the build was succesful.
-  </instruction>
-  <instruction>
-    Compare build.log files form <test-build> to <baseline-build>
-  </instruction>
-  <instruction>
-    If the build was successful, summarize differences in the build.
-  </instruction>
-  <instruction>
-    If the build was not successful, identify the failure, analyze to get to a root cause, finally suggest the next action to take
-  </instruction>
-  <instruction>
-    If any instruction is confusing, suggest three better at the end of the report.
-  </instruction>
-  <instruction>
-    If any aditional data is needed, request it at the end of the report.
-  </instruction>
-
-</instructions>
-
-<package-name>
-
-  the package name can be deduced from the spec file and srpm file in parent directory
-
-</package-name>
-
-<baseline-build>
-
-  the file build.log in the current directory is a successful build.
-  the source build artifacts for build are not available only the build.log 
-  
-</baseline-build>
-
-<test-build>
-
-  The build was made from the parent directory ..
-  The build command was
-  mock <command-line-parameter> --localrepo=${PWD}/../output <srpm-file>
-
-  The build.log file is found with the other mock output at
-  ../../output/results/fedora-rawhide-x86_64/<package-name>*/
-
-</test-build>
-
-<srpm-file>
-
-  the package srpm is in the parent directory <package-name>*.src.rpm
-
-</srpm-file>
-
-<command-line-parameter>
-
-  There may or may not be extra parameters
-  <examples>
-    <example>
-      --with test
-    </example>
-    <example>
-      --with preview
-    </example>
-  </examples>
-  
-</command-line-parameter>
-
-

diff --git a/rocm-compilersupport.spec b/rocm-compilersupport.spec
index 2087f75..48b69c2 100644
--- a/rocm-compilersupport.spec
+++ b/rocm-compilersupport.spec
@@ -23,7 +23,7 @@
 # For building earlier snapshots of the compiler
 %bcond_with preview
 %if %{with preview}
-%global rocm_release 10.0
+%global rocm_release 10.1
 %global rocm_patch 0
 %else
 %global rocm_release 10.0
@@ -36,7 +36,7 @@
 %global comgr_maj_api_ver 3
 # What LLVM is upstream using (use LLVM_VERSION_MAJOR from llvm/CMakeLists.txt):
 %if %{with preview}
-%global llvm_maj_ver 23
+%global llvm_maj_ver 24
 %else
 %global llvm_maj_ver 23
 %endif
@@ -172,7 +172,11 @@ Patch4:         0001-rocm-compilersupport-simplify-use-runtime-wrapper-ch.patch
 Patch5:         0001-lld-workaround-.gnu.version-change.patch
 # When clang bungles the rocm install path, it gets the linking of libamdhip64 wrong
 # Convert from an absolute path <path-to>/libamdhip64.so to using -lamdhip64
+%if %{with preview}
+Patch6:         0001-clang-24-link-libamdhip64.patch
+%else
 Patch6:         0001-clang-23-link-libamdhip64.patch
+%endif
 Patch7:         0001-libcxx-noinline-workaround.patch
 Patch8:         0001-rocm-llvm-workaround-__noinline__.patch
 Patch9:         0001-hipcc-fix-path.patch 
@@ -206,8 +210,12 @@ ExclusiveArch:  x86_64
 %endif
 
 %ifarch x86_64
+%if %{with preview}
+%global targets_to_build "X86;AMDGPU;SPIRV"
+%else
 %global targets_to_build "X86;AMDGPU"
 %endif
+%endif
 %ifarch aarch64
 %global targets_to_build "AArch64;AMDGPU"
 %endif
@@ -572,7 +580,7 @@ p=$PWD
  -DCOMPILER_RT_BUILD_LIBFUZZER=OFF \\\
  -DCOMPILER_RT_BUILD_MEMPROF=OFF \\\
  -DCOMPILER_RT_BUILD_ORC=OFF \\\
- -DCOMPILER_RT_BUILD_PROFILE=OFF \\\
+ -DCOMPILER_RT_BUILD_PROFILE=ON \\\
  -DCOMPILER_RT_BUILD_SANITIZERS=OFF \\\
  -DCOMPILER_RT_BUILD_XRAY=OFF \\\
  -DENABLE_LINKER_BUILD_ID=ON \\\
@@ -809,7 +817,12 @@ sed -i -e 's@libLLVM.so.%{llvm_maj_ver}.0%{llvm_version_suffix}@libLLVMCore.a@' 
 # Remove libclang-cpp.so from link
 sed -i -e 's/[^ ]*libclang-cpp[^ ]*//g' build-comgr/CMakeFiles/amd_comgr.dir/link.txt
 # Add libraries to cover the removal
+%if %{with preview}
+sed -i -e 's@-lc -ldl@-lclangAST -lLLVMCore -lclangSema -lLLVMCodeGen -lLLVMAnalysis -lLLVMSupport -lclangCodeGen -lLLVMAMDGPUCodeGen -lclangBasic -lLLVMSelectionDAG -lLLVMMC -lclangStaticAnalyzerCore -lLLVMTransformUtils -lclangDriver -lLLVMGlobalISel -lclangStaticAnalyzerCheckers -lLLVMDebugInfoPDB -llldELF -lLLVMVectorize -lLLVMObject -lLLVMX86CodeGen -lLLVMAMDGPUUtils -lclangLex -lLLVMAsmPrinter -lLLVMDebugInfoCodeView -lclangParse -lLLVMipo -lLLVMSPIRVCodeGen -lLLVMOrcJIT -lLLVMDebugInfoDWARF -lclangFrontend -llldMachO -lLLVMX86Desc -lclangSerialization -lLLVMTargetParser -llldCOFF -lLLVMDebugInfoLogicalView -lclangAnalysis -lLLVMScalarOpts -llldWasm -lLLVMSandboxIR -lLLVMProfileData -lLLVMJITLink -lLLVMTableGen -lLLVMBinaryFormat -lLLVMInstCombine -lclangTidyBugproneModule -lLLVMCAS -lclangTidyUtils -lLLVMFrontendOpenMP -lclangASTMatchers -lLLVMTableGenCommon -lclangScalableStaticAnalysisCore -lLLVMAMDGPUDesc -lclangExtractAPI -lLLVMTextAPI -lclangAnalysisFlowSensitive -lclangFormat -lLLVMObjCopy -lLLVMDebugInfoGSYM -lclangTidy -lLLVMInstrumentation -lclangTidyModernizeModule -lLLVMOrcShared -lLLVMObjectYAML -lLLVMDWARFLinkerParallel -lLLVMMCA -lLLVMRuntimeDyld -lclangTidyReadabilityModule -llldCommon -lclangAnalysisLifetimeSafety -lclangDynamicASTMatchers -lLLVMUBAwareInterpreter -lLLVMMCParser -lLLVMOption -lclangTooling -lLLVMTarget -lclangAPINotes -lLLVMCoroutines -lLLVMPasses -lclangDoc -lLLVMDemangle -lLLVMLTO -lclangInterpreter -lLLVMSPIRVDesc -lLLVMCGData -lclangTransformer -lLLVMBitReader -lLLVMExecutionEngine -lclangScalableStaticAnalysisAnalyses -lclangTidyAbseilModule -lclangTidyCppCoreGuidelinesModule -lclangTidyMiscModule -lclangIndex -lclangDependencyScanning -lclangTidyPerformanceModule -lLLVMObjCARCOpts -lLLVMRemarks -lLLVMXRay -lclangToolingCore -lclangToolingRefactoring -lLLVMBitWriter -lclangIncludeCleaner -lclangToolingSyntax -lclangTidyAndroidModule -lLLVMFrontendHLSL -lLLVMMIRParser -lLLVMOrcTargetProcess -lclangRewrite -lruntimes_gtest -lLLVMAsmParser -lLLVMDWARFLinkerClassic -lLLVMHTTP -lLLVMFuzzMutate -lclangEdit -lclangInstallAPI -lclangRewriteFrontend -lclangStaticAnalyzerFrontend -lclangTidyGoogleModule -lLLVMCFIVerify -lLLVMDebugInfoMSF -lLLVMCoverage -lclangTidyLLVMModule -lclangTidyPortabilityModule -lLLVMABI -lLLVMSymbolize -lclangToolingInclusions -lfindAllSymbols -lLLVMDiff -lLLVMMCDisassembler -lLLVMWindowsDriver -lclangCrossTU -lLLVMDebugInfoDWARFLowLevel -lclangQuery -lclangTidyObjCModule -lLLVMDTLTO -lclangAnalysisFlowSensitiveModels -lLLVMTableGenBasic -lclangTidyFuchsiaModule -lclangToolingInclusionsStdlib -lclangOptions -lLLVMInterpreter -lLLVMLinker -lLLVMOptDriver -lclangSupport -lclangTidyAlteraModule -lLLVMBitstreamReader -lLLVMDebugInfoBTF -lLLVMInterfaceStub -lLLVMSPIRVAnalysis -lLLVMWindowsManifest -lclangIncludeFixer -lclangScalableStaticAnalysisSourceTransformation -lclangTidyLLVMLibcModule -lLLVMAMDGPUInfo -lLLVMCFGuard -lLLVMDWARFCFIChecker -lLLVMIRPrinter -lLLVMIRReader -lLLVMOrcDebugging -lLLVMSPIRVInfo -lclangReorderFields -lLLVMCodeGenTypes -lLLVMDWP -lLLVMFrontendAtomic -lLLVMFrontendDriver -lLLVMHipStdPar -lLLVMX86Info -lclangMove -lclangTidyBoostModule -lclangTidyConcurrencyModule -lclangTidyDarwinModule -lclangTidyMPIModule -lclangTidyOpenMPModule -lclangUnifiedSymbolResolution -lLLVMAggressiveInstCombine -lLLVMDWARFLinker -lLLVMFrontendOffloading -lLLVMSupportLSP -lclangDirectoryWatcher -lclangDocSupport -lclangScalableStaticAnalysisFrontend -lclangTidyLinuxKernelModule -lLLVMAMDGPUAsmParser -lLLVMDebuginfod -lLLVMFrontendDirective -lLLVMLibDriver -lLLVMPlugins -lLLVMTextAPIBinaryReader -lLLVMX86AsmParser -lclangFrontendTool -lclangTidyCERTModule -lLLVMAMDGPUDisassembler -lLLVMAMDGPUTargetMCA -lLLVMDlltoolDriver -lLLVMExtensions -lLLVMFileCheck -lLLVMFrontendOpenACC -lLLVMFuzzerCLI -lLLVMIREmbUtils -lLLVMLineEditor -lLLVMMCJIT -lLLVMMIREmbUtils -lLLVMTelemetry -lLLVMX86Disassembler -lLLVMX86TargetMCA -lclangApplyReplacements -lclangChangeNamespace -lclangIncludeFixerPlugin -lclangIndexSerialization -lclangScalableStaticAnalysisTool -lclangTidyMain -lclangTidyPlugin -lclangToolingASTDiff -lc -ldl@' build-comgr/CMakeFiles/amd_comgr.dir/link.txt
+
+%else
 sed -i -e 's@-lrt -lm@-lclangAST -lLLVMCore -lclangSema -lLLVMCodeGen -lLLVMAnalysis -lLLVMSupport -lclangCodeGen -lLLVMAMDGPUCodeGen -lclangBasic -lLLVMSelectionDAG -lLLVMMC -lclangStaticAnalyzerCore -lclangDriver -lLLVMTransformUtils -lLLVMGlobalISel -lclangStaticAnalyzerCheckers -lLLVMDebugInfoPDB -lLLVMX86CodeGen -llldELF -lLLVMObject -lLLVMAMDGPUUtils -lclangLex -lLLVMVectorize -lLLVMAsmPrinter -lLLVMDebugInfoCodeView -lclangParse -lLLVMipo -lLLVMOrcJIT -lLLVMDebugInfoDWARF -lclangFrontend -llldMachO -lLLVMX86Desc -lclangSerialization -llldCOFF -lclangAnalysis -lLLVMDebugInfoLogicalView -lLLVMScalarOpts -llldWasm -lLLVMTargetParser -lLLVMSandboxIR -lLLVMProfileData -lLLVMTableGen -lLLVMJITLink -lLLVMBinaryFormat -lLLVMInstCombine -lclangTidyBugproneModule -lLLVMCAS -lLLVMFrontendOpenMP -lclangTidyUtils -lclangASTMatchers -lLLVMTableGenCommon -lLLVMAMDGPUDesc -lclangExtractAPI -lLLVMOrcShared -lLLVMTextAPI -lclangAnalysisFlowSensitive -lclangFormat -lLLVMObjCopy -lLLVMDebugInfoGSYM -lclangTidy -lclangTidyModernizeModule -lLLVMInstrumentation -lclangScalableStaticAnalysisFrameworkCore -lLLVMDWARFLinkerParallel -lLLVMMCA -lLLVMRuntimeDyld -llldCommon -lclangTidyReadabilityModule -lLLVMObjectYAML -lclangDynamicASTMatchers -lLLVMMCParser -lclangAnalysisLifetimeSafety -lLLVMOption -lclangTooling -lLLVMUBAwareInterpreter -lclangDoc -lLLVMPasses -lLLVMCoroutines -lLLVMLTO -lLLVMTarget -lclangInterpreter -lLLVMDemangle -lLLVMCGData -lclangDependencyScanning -lclangTransformer -lLLVMBitReader -lclangAPINotes -lLLVMExecutionEngine -lclangTidyAbseilModule -lclangTidyCppCoreGuidelinesModule -lclangTidyMiscModule -lclangIndex -lclangScalableStaticAnalysisFrameworkAnalyses -lLLVMObjCARCOpts -lLLVMRemarks -lLLVMXRay -lclangTidyPerformanceModule -lclangToolingCore -lclangToolingRefactoring -lLLVMBitWriter -lclangIncludeCleaner -lclangToolingSyntax -lclangTidyAndroidModule -lLLVMMIRParser -lLLVMFrontendHLSL -lLLVMOrcTargetProcess -lclangRewrite -lruntimes_gtest -lLLVMAsmParser -lLLVMDWARFLinkerClassic -lLLVMHTTP -lLLVMFuzzMutate -lclangEdit -lclangInstallAPI -lclangRewriteFrontend -lclangStaticAnalyzerFrontend -lclangTidyGoogleModule -lLLVMCFIVerify -lLLVMDebugInfoMSF -lLLVMCoverage -lclangTidyLLVMModule -lclangTidyPortabilityModule -lLLVMSymbolize -lclangToolingInclusions -lfindAllSymbols -lLLVMDiff -lLLVMMCDisassembler -lLLVMWindowsDriver -lclangCrossTU -lLLVMDebugInfoDWARFLowLevel -lclangQuery -lclangTidyObjCModule -lclangAnalysisFlowSensitiveModels -lclangTidyFuchsiaModule -lclangToolingInclusionsStdlib -lLLVMABI -lLLVMDTLTO -lLLVMInterpreter -lLLVMLinker -lLLVMOptDriver -lLLVMTableGenBasic -lclangOptions -lclangSupport -lclangTidyAlteraModule -lLLVMBitstreamReader -lLLVMDebugInfoBTF -lLLVMInterfaceStub -lLLVMWindowsManifest -lclangIncludeFixer -lclangTidyLLVMLibcModule -lLLVMCFGuard -lLLVMDWARFCFIChecker -lLLVMIRPrinter -lLLVMIRReader -lLLVMOrcDebugging -lclangReorderFields -lLLVMAMDGPUInfo -lLLVMCodeGenTypes -lLLVMDWP -lLLVMFrontendAtomic -lLLVMFrontendDriver -lLLVMHipStdPar -lLLVMX86Info -lclangMove -lclangTidyBoostModule -lclangTidyConcurrencyModule -lclangTidyDarwinModule -lclangTidyMPIModule -lclangTidyOpenMPModule -lclangUnifiedSymbolResolution -lLLVMAggressiveInstCombine -lLLVMDWARFLinker -lLLVMFrontendOffloading -lLLVMSupportLSP -lclangDirectoryWatcher -lclangDocSupport -lclangTidyLinuxKernelModule -lLLVMAMDGPUAsmParser -lLLVMDebuginfod -lLLVMFrontendDirective -lLLVMLibDriver -lLLVMPlugins -lLLVMTextAPIBinaryReader -lLLVMX86AsmParser -lclangFrontendTool -lclangScalableStaticAnalysisFrameworkFrontend -lclangTidyCERTModule -lclangTidyZirconModule -lLLVMAMDGPUDisassembler -lLLVMAMDGPUTargetMCA -lLLVMDlltoolDriver -lLLVMExtensions -lLLVMFileCheck -lLLVMFrontendOpenACC -lLLVMFuzzerCLI -lLLVMIREmbUtils -lLLVMLineEditor -lLLVMMCJIT -lLLVMMIREmbUtils -lLLVMTelemetry -lLLVMX86Disassembler -lLLVMX86TargetMCA -lclangApplyReplacements -lclangChangeNamespace -lclangIncludeFixerPlugin -lclangIndexSerialization -lclangScalableStaticAnalysisFrameworkTool -lclangTidyMain -lclangTidyPlugin -lclangToolingASTDiff -lrt -lm@' build-comgr/CMakeFiles/amd_comgr.dir/link.txt
+%endif
 
 %endif
 

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

only message in thread, other threads:[~2026-10-07 20:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-07 20:55 [rpms/rocm-compilersupport] rawhide: Update preview to 10.1 Tom Rix

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