clang/llvm: Upgrade to 23.1.5
cover clang/llvm: Upgrade to 23.1.5
From: Sunil Dora <[email protected]>
This moves clang/llvm from 23.1.3 to 23.1.5. All 35 carried patches apply as is, nothing they touch changed between the two tags.
23.1.4 failed the toolchain selftest on all five -tc builders in the two new tools/extract_symbols/registry-* tests. Their lit config runs the python cmake found at configure time, the build host python, which is not there on the target. Other python based tests go through lit's %python, the python running lit, so this never showed up before. Clang has the same problem in its own substitutions.
Patch 2 rewrites the recorded python path to the target one in both recipes when CLANG_ENABLE_TESTSUITE is set. Patch 3 brings back the tests excluded only for this reason: 99 pass in clang and 67 in llvm on target, the other 9 are UpdateTestChecks tests unsupported in this build.
The extract_symbols config is being fixed upstream in
https://github.com/llvm/llvm-project/pull/240530, but that covers just those two tests. Clang and the other llvm substitutions still use the configured python, so the recipe fix covers all of them at once and leaves nothing to rebase on the next bump.
Tested locally: clang family, core-image-minimal, spirv-llvm-translator, rust and mesa for qemux86-64 glibc; musl family and image; lib32-llvm and openmp with multilib; clang and compiler-rt for qemux86, qemuarm and qemuarm64. oe-selftest llvm, clang and lld pass on qemux86-64, llvm on qemux86. On the autobuilder all five -tc builders (qemux86-64, qemux86, qemuarm, qemuarm64, qemuriscv64) pass the llvm, clang and lld selftests with the re-enabled tests; multilib, musl-qemuarm64, musl-qemux86 and musl-qemux86-64 pass as well.
Sunil Dora (3):
clang/llvm: Upgrade from 23.1.3 to 23.1.5 release clang/llvm: Point lit at the target python for the test suite oeqa/selftest/clang: Re-enable tests that only needed the target
python
meta/conf/distro/include/maintainers.inc | 2 +- meta/lib/oeqa/selftest/cases/clang.py | 25 -------------------- meta/recipes-devtools/clang/clang_git.bb | 12 ++++++++++ meta/recipes-devtools/clang/common-clang.inc | 2 +- meta/recipes-devtools/clang/common.inc | 2 +- meta/recipes-devtools/clang/llvm_git.bb | 9 +++++++ 6 files changed, 24 insertions(+), 28 deletions(-)
Signature · 1 line
2.49.0
PATCH 1/3 clang/llvm: Upgrade from 23.1.3 to 23.1.5 release
From: Sunil Dora <[email protected]>
https://discourse.llvm.org/t/llvm-23-1-4-released/92564
https://discourse.llvm.org/t/llvm-23-1-5-released/92716
Brings following fixes:392dfff97d29 [clang] Add release note for EmitDeferred re-emission fix on 23.x8db94f824874 [clang][Modules] Keep existing global definition on type mismatch in GetOrCreateLLVMGlobal (#223877) 32e470fa5c45 [Clang] Don't skip lambda constraints when substituting type constraints (#236425) 20eceee39e49 Test-behaviour-changes from the cherry-pick of 46965cf.b10c62b2d995 [VPlan] Don't merge allocas across lanes, parts or recipes. (#229929)86fe084e4c5a [LV] Add tests showing alloca miscompiles. (#229911)a738f2737189 [Clang] use SubstConstraintExpr instead of SubstExpr in Sema::BuildExprRequirement (#236286) bdeee0d0397c [lldb][OpenBSD] Fix sysctl usage for process info (#122534)99001e325442 [RISCV] Correctly restore libcall CSRs with SCSce24d5069509 [RISCV] Ensure Shadow Stack checks correct RA5e1a49c5afaf [SelectionDAG] Don't always use abs(sub) when expanding abdu (#235043) ecf9bb207c8d [Allocator] Cap MinAlign at alignof(max_align_t) (#235373)8ceacf8097bb [VPlan] Avoid recursive-fan-out of usesFirstLaneOnly (NFC) (#229130)94467edd50bc [flang][OpenMP] Fix verification of REF modifier on LINEAR clause (#232367) 093145f1e207 [clang][Driver] Fix libc++ include path on OpenBSD (#212979)7ddf6cc19e82 [TailCallElim] Drop poison-generating attributes and metadata from accumulator (#233527) 395ba2c4d274 [CodeGenPrepare] Drop poison-generating flags on extensions in optimizeExtUses (#234134) 5c71313dd978 [LoopUnroll] Invalidate epilogue exit phis with new predecessor. (#234202) f8bd9523ff44 [LoongArch] fix more sitofp missing instruction issues (#234143)1f43a9242e76 [debuginfod] Abort cached file stream if request fails (#232038)2cc5b8ca55a1 [flang][OpenMP] Ignore DECLARE_SIMD and warn about missing implementa… (#232712) fde947fd5839 [VPlan] Split legalizeAndOptimizeIVs in 2 phases. (#217765)b2a8cf23b941 [libc++][ci] Retarget the ARM BuildKite runners (#224107)7a941dfb2877 github-upload-release: Update script to work with draft releases (#229909) 4635269e3782 [X86] Fix constant vector i64 signed div/rem on 32-bit targets (#229244) 524ac171cd43 [GlobalISel] Drop nuw/nsw/disjoint when widening a result with G_ANYEXT (#218558) fdf44b31a63e [InstCombine] Drop poison-generating annotations forming min/max for clamp (#231537) d5f50fc559a2 [Mips] Fix symbol names for private functions in relocation hints (#230572) 52e90e1917a4 [Mips] Lower calls to private functions the same way as internal functions (#229975) d5ff1316673e [clang][bytecode] disable tail calls on mips (#229679)41042adf8339 [ARM] Fix miscompile in MAC for 64b values (#231702)6c859967be70 [SPARC] Lower dynamic v2i32 vector extracts on 32-bit SPARC (#222348)71c76755a8ff [ELF] Move layout-changing transforms before address assignment (#232189) d946f7b2b214 [PowerPC] Don't let optimizeCompareInstr define CR0 while it is still live (#220999) a5eac6566485 [Clang][counted_by] Load the count through unions by byte offset (#228309) beb6b7dfae46 [X86] Don't treat vectors with elements wider than 64 bits as immediate-shiftable (#228840) 0cd28174a1f6 [SimplifyLibCalls] Fix ConstantInt construction based on char (#231159) d66309da4d8d [SCEV] Add missing scPtrToAddr to getCastExpr. (#211899)94ae4f86b8f3 [Passes] Run MergeICmps/ExpandMemCmps in LTO post-link pipeline (#230562) 7909311aa6f3 [Mips] Remove experimental warning bits in a few places (#223230)1be9d5eb62e0 [llvm-objcopy][COFF] Keep COMDAT section definition symbols when stripping (#228783) 8451016186f2 release/23.x: [llvm-ar][GOFF] Implement symbol attributes for GOFF archives (#214528) 1b843902f5b4 Change release notes wordingca0b6a823a5b workflows/release-binaries: Improve Windows installer (#220414)5177329b802a [Windows] Export Registry<T> members and accessors for plugins again (#221296) bb46d66418b9 [X86] Don't double count the interrupt stack alignment push in StackSize (#224029) 15d373104a6e [GlobalsAA] Handle self-referencing stores in AnalyzeUsesOfPointer (#213631) 705f593fb506 [AArch64] Restore always-inline behaviour for incompatible SME attributes. bbbf266c78bf pre-commit test195209c5c105 [SanitizerCoverage] Don't create comdat for unnamed functions (#228959) 3dadaf417121 [PGO] Fix PGO instrumentation for selects with poison condition (#229002) 370eb8ddac24 [Mips][FastISel] Also add low part when materializing private functions (#229717) d7cdb9b24351 [SelectionDAG] Do not flag undef bitcast lanes as known zero13d7a167327c [CAS] Close the stderr temp file of the out-of-process validator (#226844) affff9cc58ab [llvm][Support] Use ::closesocket for native sockets on Windows (#226613) 8e044a8f3ada [NVPTX] Set default value of nvptx-allow-ftz-atomics to true (#206154)
--- meta/conf/distro/include/maintainers.inc | 2 +- meta/recipes-devtools/clang/common-clang.inc | 2 +- meta/recipes-devtools/clang/common.inc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
meta/conf/distro/include/maintainers.inc +1 -1
@@ -484,7 +484,7 @@ RECIPE_MAINTAINER:pn-linux-yocto-tiny = "Bruce Ashfield <[email protected] RECIPE_MAINTAINER:pn-lld = "Khem Raj <[email protected]>" RECIPE_MAINTAINER:pn-lldb = "Khem Raj <[email protected]>" RECIPE_MAINTAINER:pn-llvm = "Khem Raj <[email protected]>" -RECIPE_MAINTAINER:pn-llvm-project-source-23.1.3 = "Khem Raj <[email protected]>" +RECIPE_MAINTAINER:pn-llvm-project-source-23.1.5 = "Khem Raj <[email protected]>" RECIPE_MAINTAINER:pn-llvm-tblgen-native = "Khem Raj <[email protected]>" RECIPE_MAINTAINER:pn-log4cplus = "Unassigned <[email protected]>" RECIPE_MAINTAINER:pn-logrotate = "Venkatasainath Ravikanti <[email protected]>"
meta/recipes-devtools/clang/common-clang.inc +1 -1
@@ -5,7 +5,7 @@ LLVM_HTTP ?= "https://github.com/llvm" MAJOR_VER = "23" MINOR_VER = "1" -PATCH_VER = "3" +PATCH_VER = "5" # could be 'rcX' or 'git' or empty ( for release ) VER_SUFFIX = ""
meta/recipes-devtools/clang/common.inc +1 -1
@@ -17,7 +17,7 @@ BASEURI ?= "${LLVM_HTTP}/llvm-project/releases/download/llvmorg-${PV}${VER_SUFFI UPSTREAM_CHECK_URI = "${LLVM_HTTP}/llvm-project/releases/" UPSTREAM_CHECK_REGEX = "releases/tag/llvmorg-?(?P<pver>\d+(\.\d+)+)" SOURCEDIR ?= "llvm-project-${PV}${VER_SUFFIX}.src" -SRC_URI[sha256sum] = "c44186a7762ed28954be72e5ff6df9808e0779d4f1bf014ecc4e7e211d31ee34" +SRC_URI[sha256sum] = "fb50b1eac93ddeb3aa8dab4cfe324dff74f4a9c2bdee6160c9e36188f8d06a6e" SRC_URI = "\ ${BASEURI} \
Signature · 1 line
2.49.0
PATCH 2/3 clang/llvm: Point lit at the target python for the test suite
In reply to [email protected]From: Sunil Dora <[email protected]>
lit.site.cfg.py records the python cmake found on the build host, but the test suite runs on the target. Any test calling that python directly fails there. In llvm the extract_symbols tests, new in 23.1.4, do this and fail on all the -tc builders. In clang, %deps-to-rsp, %scan-deps-filter, %hmaptool and %check_analyzer_fixit are built the same way, which is why the ClangScanDeps tests got excluded in 0e7f898dc4.
Rewrite the recorded path after configure in both recipes. Changing Python3_EXECUTABLE itself is not an option, cmake.bbclass needs it for the build.
The extract_symbols config is being changed upstream to use the python running lit, https://github.com/llvm/llvm-project/pull/240530. That covers only those two tests though, the clang substitutions and the other llvm ones still use the configured python, so this is done in the recipes for all of them rather than by carrying the upstream patch.
--- meta/recipes-devtools/clang/clang_git.bb | 12 ++++++++++++ meta/recipes-devtools/clang/llvm_git.bb | 9 +++++++++ 2 files changed, 21 insertions(+)
meta/recipes-devtools/clang/clang_git.bb +12 -0
@@ -100,6 +100,18 @@ do_configure:prepend() { ln -srf ${S}/clang-tools-extra ${S}/clang/tools/extra } +# The tests run on the target, so lit must use the target python. +clang_lit_target_python() { + sed -i 's|^config.python_executable = .*|config.python_executable = "${bindir}/python3"|' \ + ${B}/test/lit.site.cfg.py +} + +do_configure:append:class-target() { + if [ "${CLANG_ENABLE_TESTSUITE}" = "1" ]; then + clang_lit_target_python + fi +} + do_install:append() { oe_multilib_header clang/Config/config.h }
meta/recipes-devtools/clang/llvm_git.bb +9 -0
@@ -105,8 +105,17 @@ reproducible_build_variables() { ${B}/tools/llvm-config/BuildVariables.inc } +# The tests run on the target, so lit must use the target python. +llvm_lit_target_python() { + sed -i 's|^config.python_executable = .*|config.python_executable = "${bindir}/python3"|' \ + ${B}/test/lit.site.cfg.py +} + do_configure:append:class-target() { reproducible_build_variables + if [ "${CLANG_ENABLE_TESTSUITE}" = "1" ]; then + llvm_lit_target_python + fi } do_configure:append:class-nativesdk() { reproducible_build_variables
Signature · 1 line
2.49.0
PATCH 3/3 oeqa/selftest/clang: Re-enable tests that only needed the target python
In reply to [email protected]From: Sunil Dora <[email protected]>
These tests were excluded because they run python through lit substitutions built from config.python_executable: %llvm-locstats, %llvm-original-di-preservation and UpdateTestChecks in llvm, %deps-to-rsp, %scan-deps-filter, %hmaptool, %check_analyzer_fixit and exploded-graph-rewriter in clang. Now that lit uses the target python they pass on target, 67 in llvm and 99 in clang, on qemux86-64 and qemux86. The remaining 9 UpdateTestChecks tests are unsupported as they need an assertions build or the AVR, Lanai or SystemZ targets.
tools/opt-viewer stays excluded, it needs python modules the image does not have.
--- meta/lib/oeqa/selftest/cases/clang.py | 25 ------------------------- 1 file changed, 25 deletions(-)
meta/lib/oeqa/selftest/cases/clang.py +0 -25
@@ -156,8 +156,6 @@ class LLVMSelfTestSystemEmulated(ClangFamilyBase): "tools/llvm-cgdata/merge-hashtree-concat\\.test$", "tools/llvm-cgdata/merge-hashtree-double\\.test$", "tools/llvm-cgdata/merge-hashtree-single\\.test$", - "tools/llvm-locstats/locstats\\.ll$", - "tools/llvm-locstats/no_scope_bytes\\.ll$", "tools/llvm-objcopy/DXContainer/dump-section\\.yaml$", "tools/llvm-objcopy/DXContainer/dump-section-priv\\.yaml$", "tools/llvm-objcopy/ELF/basic-binary-copy\\.test$",
@@ -175,12 +173,9 @@ class LLVMSelfTestSystemEmulated(ClangFamilyBase): "tools/llvm-objcopy/ELF/strip-sections-only-section\\.test$", "tools/llvm-objcopy/ELF/strip-sections\\.test$", "tools/llvm-objcopy/ELF/update-section\\.test$", - "tools/llvm-original-di-preservation/acceptance-test\\.test$", - "tools/llvm-original-di-preservation/basic\\.test$", "tools/llvm-reduce/temporary-files-as-bitcode-split\\.ll$", "tools/not/disable-symbolization\\.test$", "tools/opt-viewer/.*", - "tools/UpdateTestChecks/.*", "tools/yaml2obj/ELF/custom-fill\\.yaml$", "tools/yaml2obj/ELF/header-elfdatanone\\.yaml$", "tools/yaml2obj/ELF/header-sh-fields\\.yaml$",
@@ -239,8 +234,6 @@ class ClangSelfTestSystemEmulated(ClangFamilyBase): "AST/ByteCode/records\\.cpp$", "AST/ByteCode/spaceship\\.cpp$", "AST/ByteCode/unions\\.cpp$", - "Analysis/dead-stores\\.c$", - "Analysis/exploded-graph-rewriter/.*", "Analysis/scan-build/cxx-name\\.test$", "Analysis/scan-build/deduplication\\.test$", "Analysis/scan-build/exclude_directories\\.test$",
@@ -250,19 +243,9 @@ class ClangSelfTestSystemEmulated(ClangFamilyBase): "Analysis/scan-build/plist_output\\.test$", "Analysis/scan-build/rebuild_index/rebuild_index\\.test$", "Analysis/scan-build/silence-core-checkers\\.test$", - "Analysis/virtualcall-fixits\\.cpp$", "C/C23/n3018\\.c$", "ClangScanDeps/build-session-validation-outdated-module\\.c$", "ClangScanDeps/build-session-validation-relocated-modules\\.c$", - "ClangScanDeps/diagnostics\\.c$", - "ClangScanDeps/module.*", - "ClangScanDeps/multiple-commands\\.c$", - "ClangScanDeps/optimize-vfs-edgecases\\.m$", - "ClangScanDeps/optimize-vfs-pch\\.m$", - "ClangScanDeps/prebuilt-modules-in-stable-dirs\\.c$", - "ClangScanDeps/tu-buffer\\.c$", - "ClangScanDeps/visible-modules\\.c$", - "ClangScanDeps/Wsystem-headers-in-module\\.c$", "CodeGen/builtins\\.c$", "CodeGen/compound-literal\\.c$", "CodeGenCUDA/device-const-var-linkage\\.cu$",
@@ -275,15 +258,7 @@ class ClangSelfTestSystemEmulated(ClangFamilyBase): "Frontend/rewrite-includes-bom\\.c$", "Interpreter/cxx20-modules\\.cppm$", "Modules/crash-vfs-umbrella-frameworks\\.m$", - "Modules/double-quotes\\.m$", - "Modules/framework-public-includes-private\\.m$", - "Modules/implicit-module-header-maps\\.cpp$", "Preprocessor/embed_constexpr\\.c$", - "Preprocessor/header-search-crash\\.c$", - "Preprocessor/headermap-rel\\.c$", - "Preprocessor/headermap-rel2\\.c$", - "Preprocessor/include-header-missing-in-framework-with-headermap\\.c$", - "Preprocessor/search-path-usage\\.m$", "PCH/cxx20-template-args\\.cpp$", "Sema/arithmetic-fence-builtin\\.c$", "Sema/atomic-expr\\.c$",
Signature · 1 line
2.49.0
This patch looks good to me
Quoted 61 lines · Sunil Kumar via openembedded-core
From: Sunil Dora <[email protected]>
This moves clang/llvm from 23.1.3 to 23.1.5. All 35 carried patches apply as is, nothing they touch changed between the two tags.
23.1.4 failed the toolchain selftest on all five -tc builders in the two new
tools/extract_symbols/registry-*tests. Their lit config runs the python cmake found at configure time, the build host python, which is not there on the target. Other python based tests go through lit's %python, the python running lit, so this never showed up before. Clang has the same problem in its own substitutions.Patch 2 rewrites the recorded python path to the target one in both recipes when
CLANG_ENABLE_TESTSUITEis set. Patch 3 brings back the tests excluded only for this reason: 99 pass in clang and 67 in llvm on target, the other 9 are UpdateTestChecks tests unsupported in this build.The
extract_symbolsconfig is being fixed upstream in
https://github.com/llvm/llvm-project/pull/240530, but that covers just those two tests. Clang and the other llvm substitutions still use the configured python, so the recipe fix covers all of them at once and leaves nothing to rebase on the next bump.Tested locally: clang family, core-image-minimal, spirv-llvm-translator, rust and mesa for qemux86-64 glibc; musl family and image; lib32-llvm and openmp with multilib; clang and compiler-rt for qemux86, qemuarm and qemuarm64. oe-selftest llvm, clang and lld pass on qemux86-64, llvm on qemux86. On the autobuilder all five -tc builders (qemux86-64, qemux86, qemuarm, qemuarm64, qemuriscv64) pass the llvm, clang and lld selftests with the re-enabled tests; multilib, musl-qemuarm64, musl-qemux86 and musl-qemux86-64 pass as well.
Sunil Dora (3):
clang/llvm: Upgrade from 23.1.3 to 23.1.5 release clang/llvm: Point lit at the target python for the test suite oeqa/selftest/clang: Re-enable tests that only needed the target
pythonmeta/conf/distro/include/maintainers.inc | 2 +- meta/lib/oeqa/selftest/cases/clang.py | 25 -------------------- meta/recipes-devtools/clang/clang_git.bb | 12 ++++++++++ meta/recipes-devtools/clang/common-clang.inc | 2 +- meta/recipes-devtools/clang/common.inc | 2 +- meta/recipes-devtools/clang/llvm_git.bb | 9 +++++++ 6 files changed, 24 insertions(+), 28 deletions(-)--
2.49.0-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#249900):
https://lists.openembedded.org/g/openembedded-core/message/249900
Mute This Topic: https://lists.openembedded.org/mt/122189926/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-