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: Update to preview to 10.2
Date: Sat, 21 Nov 2026 13:52:58 GMT [thread overview]
Message-ID: <179526917884.1.6521074772824501264.rpms-rocm-compilersupport-966a1c5c51e9@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rocm-compilersupport
Branch : rawhide
Commit : 966a1c5c51e93780d4d0d814fec58172ef952f9a
Author : Tom Rix <Tom.Rix@amd.com>
Date : 2026-11-21T05:51:57-08:00
Stats : +53/-6 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/rocm-compilersupport/c/966a1c5c51e93780d4d0d814fec58172ef952f9a?branch=rawhide
Log:
Update to preview to 10.2
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
---
diff --git a/preview/0001-rocm-compilersupport-simplify-use-runtime-wrapper-ch.patch b/preview/0001-rocm-compilersupport-simplify-use-runtime-wrapper-ch.patch
new file mode 100644
index 0000000..4bed535
--- /dev/null
+++ b/preview/0001-rocm-compilersupport-simplify-use-runtime-wrapper-ch.patch
@@ -0,0 +1,26 @@
+From 60d256690ad1618370b309ca4bccaeff1546f5f2 Mon Sep 17 00:00:00 2001
+From: Tom Rix <Tom.Rix@amd.com>
+Date: Wed, 18 Nov 2026 03:14:29 -0800
+Subject: [PATCH] rocm-compilersupport simplify use runtime wrapper check
+
+---
+ clang/lib/Driver/ToolChains/AMDGPU.cpp | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/clang/lib/Driver/ToolChains/AMDGPU.cpp b/clang/lib/Driver/ToolChains/AMDGPU.cpp
+index 29b840b77b72..9091db394661 100644
+--- a/clang/lib/Driver/ToolChains/AMDGPU.cpp
++++ b/clang/lib/Driver/ToolChains/AMDGPU.cpp
+@@ -534,8 +534,7 @@ void RocmInstallationDetector::print(raw_ostream &OS) const {
+
+ void RocmInstallationDetector::AddHIPIncludeArgs(const ArgList &DriverArgs,
+ ArgStringList &CC1Args) const {
+- bool UsesRuntimeWrapper = VersionMajorMinor > llvm::VersionTuple(3, 5) &&
+- !DriverArgs.hasArg(options::OPT_nohipwrapperinc);
++ bool UsesRuntimeWrapper = !DriverArgs.hasArg(options::OPT_nohipwrapperinc);
+ bool HasHipStdPar = DriverArgs.hasArg(options::OPT_hipstdpar);
+
+ if (DriverArgs.hasFlag(options::OPT_foffload_via_llvm,
+--
+2.56.1
+
diff --git a/rocm-compilersupport.prep.in b/rocm-compilersupport.prep.in
index cd45424..15fbee5 100644
--- a/rocm-compilersupport.prep.in
+++ b/rocm-compilersupport.prep.in
@@ -29,7 +29,6 @@ sed -i -e "/add_comgr_test(compile_source_with_device_libs_to_bc_test/d" \
sed -i '/" -isystem " + hsaPath + "\/include"/d' amd/hipcc/src/hipBin_amd.h
sed -i -e 's@env python3@python3@' clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
-sed -i -e 's@env python@python3@' clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
sed -i -e 's@env python@python3@' clang/tools/scan-build/bin/scan-build
sed -i -e 's@env python@python3@' clang/tools/scan-view/bin/scan-view
diff --git a/rocm-compilersupport.spec b/rocm-compilersupport.spec
index bb20cb8..b053d48 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.1
+%global rocm_release 10.2
%global rocm_patch 0
%else
%global rocm_release 10.1
@@ -785,10 +785,15 @@ pushd .
-DCOMGR_DISABLE_SPIRV=%{comgr_spirv}
# cmake produces a link.txt that includes libLLVM*.so, hack it out
-%if 0%{?suse_version}
-sed -i -e 's@libLLVM.so.%{llvm_maj_ver}.0%{llvm_version_suffix}@libLLVMCore.a@' CMakeFiles/amd_comgr.dir/link.txt
+%if %{with preview}
+sed -i -e 's@libLLVM.so.%{llvm_maj_ver}.0%{llvm_version_suffix}@libLLVMCore.a@' build-comgr/CMakeFiles/amd_comgr.dir/link.txt
# Order of link is wrong include some missing libs
-sed -i -e 's@-lrt -lm@-lLLVMCoverage -lLLVMFrontendDriver -lLLVMFrontendHLSL -lLLVMLTO -lLLVMOption -lLLVMSymbolize -lLLVMWindowsDriver -lrt -lm@' CMakeFiles/amd_comgr.dir/link.txt
+
+# 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
+sed -i -e 's@-lc -ldl@ -lc -ldl -lclangAST -lLLVMCore -lclangSema -lLLVMCodeGen -lLLVMAnalysis -lLLVMSupport -lclangCodeGen -lLLVMAMDGPUCodeGen -lclangBasic -lLLVMSelectionDAG -lLLVMMC -lclangStaticAnalyzerCore -lLLVMTransformUtils -lclangDriver -lLLVMGlobalISel -lclangStaticAnalyzerCheckers -lLLVMDebugInfoPDB -lLLVMVectorize -llldELF -lLLVMX86CodeGen -lLLVMObject -lLLVMAMDGPUUtils -lclangLex -lLLVMAsmPrinter -lLLVMDebugInfoCodeView -lclangParse -lLLVMipo -lLLVMSPIRVCodeGen -lLLVMOrcJIT -lclangFrontend -lLLVMDebugInfoDWARF -llldMachO -lLLVMX86Desc -lclangSerialization -lLLVMTargetParser -llldCOFF -lLLVMDebugInfoLogicalView -lclangAnalysis -lLLVMScalarOpts -llldWasm -lLLVMSandboxIR -lLLVMProfileData -lLLVMJITLink -lLLVMTableGen -lLLVMBinaryFormat -lLLVMInstCombine -lclangTidyBugproneModule -lLLVMCAS -lclangTidyUtils -lLLVMFrontendOpenMP -lclangScalableStaticAnalysisCore -lclangASTMatchers -lLLVMTableGenCommon -lLLVMAMDGPUDesc -lclangExtractAPI -lLLVMTextAPI -lclangAnalysisFlowSensitive -lclangFormat -lLLVMObjCopy -lLLVMDebugInfoGSYM -lclangTidy -lLLVMInstrumentation -lclangTidyModernizeModule -lLLVMPasses -lLLVMDWARFLinkerParallel -lLLVMObjectYAML -lLLVMMCA -lclangTidyReadabilityModule -lLLVMRuntimeDyld -llldCommon -lLLVMOrcShared -lclangAnalysisLifetimeSafety -lclangDynamicASTMatchers -lLLVMUBAwareInterpreter -lLLVMMCParser -lclangTooling -lLLVMOption -lLLVMTarget -lclangAPINotes -lLLVMCoroutines -lclangDoc -lLLVMDemangle -lLLVMLTO -lclangInterpreter -lLLVMSPIRVDesc -lLLVMCGData -lclangScalableStaticAnalysisAnalyses -lclangTransformer -lLLVMBitReader -lLLVMExecutionEngine -lclangTidyAbseilModule -lclangTidyCppCoreGuidelinesModule -lclangTidyMiscModule -lclangIndex -lclangDependencyScanning -lclangTidyPerformanceModule -lLLVMObjCARCOpts -lLLVMRemarks -lLLVMXRay -lclangToolingCore -lclangToolingRefactoring -lLLVMFrontendHLSL -lLLVMBitWriter -lLLVMMIRParser -lclangIncludeCleaner -lclangToolingSyntax -lclangTidyAndroidModule -lLLVMAsmParser -lLLVMABI -lLLVMOrcTargetProcess -lclangRewrite -lruntimes_gtest -lLLVMDWARFLinkerClassic -lLLVMHTTP -lclangEdit -lLLVMFuzzMutate -lclangInstallAPI -lclangRewriteFrontend -lclangStaticAnalyzerFrontend -lclangTidyGoogleModule -lLLVMCFIVerify -lLLVMDebugInfoMSF -lclangTidyLLVMModule -lclangTidyPortabilityModule -lclangToolingInclusions -lLLVMCoverage -lLLVMSymbolize -lfindAllSymbols -lLLVMDiff -lLLVMMCDisassembler -lLLVMWindowsDriver -lclangCrossTU -lLLVMDebugInfoDWARFLowLevel -lclangQuery -lclangTidyObjCModule -lLLVMDTLTO -lclangAnalysisFlowSensitiveModels -lLLVMTableGenBasic -lclangTidyFuchsiaModule -lclangToolingInclusionsStdlib -lclangCodeGenUtils -lclangOptions -lclangScalableStaticAnalysisSourceTransformation -lLLVMInterpreter -lLLVMLinker -lLLVMOptDriver -lclangSupport -lclangTidyAlteraModule -lLLVMBitstreamReader -lLLVMDebugInfoBTF -lLLVMInterfaceStub -lLLVMSPIRVAnalysis -lLLVMWindowsManifest -lclangIncludeFixer -lclangTidyLLVMLibcModule -lLLVMAMDGPUInfo -lLLVMCFGuard -lLLVMCodeGenTypes -lLLVMDWARFCFIChecker -lLLVMIRPrinter -lLLVMIRReader -lLLVMOrcDebugging -lLLVMSPIRVInfo -lclangReorderFields -lLLVMDWP -lLLVMFrontendAtomic -lLLVMFrontendDriver -lLLVMFrontendOffloading -lLLVMHipStdPar -lLLVMX86Info -lclangMove -lclangTidyBoostModule -lclangTidyConcurrencyModule -lclangTidyDarwinModule -lclangTidyMPIModule -lclangTidyOpenMPModule -lclangUnifiedSymbolResolution -lLLVMAggressiveInstCombine -lLLVMDWARFLinker -lLLVMLlcDriver -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 @' build-comgr/CMakeFiles/amd_comgr.dir/link.txt
+
%else
sed -i -e 's@libLLVM.so.%{llvm_maj_ver}.0%{llvm_version_suffix}@libLLVMCore.a@' build-comgr/CMakeFiles/amd_comgr.dir/link.txt
# Order of link is wrong include some missing libs
@@ -797,7 +802,6 @@ sed -i -e 's@libLLVM.so.%{llvm_maj_ver}.0%{llvm_version_suffix}@libLLVMCore.a@'
sed -i -e 's/[^ ]*libclang-cpp[^ ]*//g' build-comgr/CMakeFiles/amd_comgr.dir/link.txt
# Add libraries to cover the removal
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
-
%endif
%cmake_build -j ${JOBS}
@@ -924,7 +928,11 @@ rm -rf %{buildroot}%{bundle_prefix}/share/man/man1/scan-build.1
rm -f %{buildroot}%{bundle_prefix}/bin/nvptx-arch
# rocm-clang-analyzer.x86_64: E: non-executable-script /usr/lib64/rocm/llvm/share/scan-view/Reporter.py 644 /usr/bin/env python
+%if %{with preview}
+%py3_shebang_fix %{buildroot}%{bundle_prefix}/share/scan-view/
+%else
sed -i -e 's@/usr/bin/env python@%{_bindir}/python3@' %{buildroot}%{bundle_prefix}/share/scan-view/*.py
+%endif
chmod a+x %{buildroot}%{bundle_prefix}/share/scan-view/*.py
# rocm-clang-devel.x86_64: E: zero-length /usr/lib64/rocm/llvm/include/clang/Basic/DiagnosticASTCompatIDs.inc
@@ -986,7 +994,11 @@ rm %{buildroot}%{bundle_prefix}/lib/libear/ear.c
%dir %{bundle_prefix}/lib/clang/%{llvm_maj_ver}/include/openmp_wrappers
%dir %{bundle_prefix}/lib/clang/%{llvm_maj_ver}/include/ppc_wrappers
%dir %{bundle_prefix}/lib/clang/%{llvm_maj_ver}/lib
+%if %{with preview}
+%dir %{bundle_prefix}/lib/clang/%{llvm_maj_ver}/lib/x86_64-redhat-linux-gnu
+%else
%dir %{bundle_prefix}/lib/clang/%{llvm_maj_ver}/lib/linux
+%endif
%dir %{bundle_prefix}/lib/cmake
%dir %{bundle_prefix}/lib/cmake/clang
%dir %{bundle_prefix}/lib/cmake/llvm
@@ -1046,8 +1058,13 @@ rm %{buildroot}%{bundle_prefix}/lib/libear/ear.c
%files -n %{rocm_clang_name}-runtime-devel
%license clang/LICENSE.TXT
%{bundle_prefix}/lib/clang/%{llvm_maj_ver}/include/
+%if %{with preview}
+%{bundle_prefix}/lib/clang/%{llvm_maj_ver}/lib/x86_64-redhat-linux-gnu/clang_rt.*
+%{bundle_prefix}/lib/clang/%{llvm_maj_ver}/lib/x86_64-redhat-linux-gnu/libclang_rt.*
+%else
%{bundle_prefix}/lib/clang/%{llvm_maj_ver}/lib/linux/clang_rt.*
%{bundle_prefix}/lib/clang/%{llvm_maj_ver}/lib/linux/libclang_rt.*
+%endif
%files -n %{rocm_clang_name}
%license clang/LICENSE.TXT
@@ -1136,7 +1153,12 @@ rm %{buildroot}%{bundle_prefix}/lib/libear/ear.c
%files -n %{rocm_omp_name}-devel
%{bundle_prefix}/lib/cmake/openmp/
+%if %{with preview}
+%{bundle_prefix}/lib/x86_64-redhat-linux-gnu/cmake/openmp/
+%{bundle_prefix}/lib/x86_64-redhat-linux-gnu/libomp*.so
+%else
%{bundle_prefix}/lib/libomp*.so
+%endif
%changelog
* Mon Nov 9 2026 Tim Flink <tflink@fedoraproject.org> - 24-3.rocm10.1.0
reply other threads:[~2026-11-21 13:52 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=179526917884.1.6521074772824501264.rpms-rocm-compilersupport-966a1c5c51e9@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