diff mbox series

libcxx: remove compiler-rt from PACKAGECONFIG for armv5

Message ID 20250509121053.3962938-1-hongxu.jia@windriver.com
State New
Headers show
Series libcxx: remove compiler-rt from PACKAGECONFIG for armv5 | expand

Commit Message

Hongxu Jia May 9, 2025, 12:10 p.m. UTC
Due to commit [compiler-rt-sanitizers, compiler-rt: skip for armv5] applied,
world build failed for qemuarmv5.

$ echo 'MACHINE = "qemuarmv5"' >> conf/local.conf
$ bitbake world -n
ERROR: Nothing PROVIDES 'compiler-rt' (but meta/recipes-devtools/clang/libcxx_git.bb DEPENDS on or otherwise requires it)
compiler-rt was skipped: incompatible with host arm-poky-linux-gnueabi (not in COMPATIBLE_HOST)
ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'libcxx', 'compiler-rt']

In libcxx, remove compiler-rt from PACKAGECONFIG for armv5

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta/recipes-devtools/clang/libcxx_git.bb | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/clang/libcxx_git.bb b/meta/recipes-devtools/clang/libcxx_git.bb
index d2655d9da94..19e2810fa16 100644
--- a/meta/recipes-devtools/clang/libcxx_git.bb
+++ b/meta/recipes-devtools/clang/libcxx_git.bb
@@ -14,6 +14,7 @@  BPN = "libcxx"
 
 PACKAGECONFIG ??= "compiler-rt exceptions ${@bb.utils.contains("TC_CXX_RUNTIME", "llvm", "unwind unwind-shared", "", d)}"
 PACKAGECONFIG:append:armv5 = " no-atomics"
+PACKAGECONFIG:remove:armv5 = "compiler-rt"
 PACKAGECONFIG:remove:class-native = "compiler-rt"
 PACKAGECONFIG[unwind] = "-DLIBCXXABI_USE_LLVM_UNWINDER=ON -DLIBCXXABI_ENABLE_STATIC_UNWINDER=ON,-DLIBCXXABI_USE_LLVM_UNWINDER=OFF,,"
 PACKAGECONFIG[exceptions] = "-DLIBCXXABI_ENABLE_EXCEPTIONS=ON -DLIBCXX_ENABLE_EXCEPTIONS=ON,-DLIBCXXABI_ENABLE_EXCEPTIONS=OFF -DLIBCXX_ENABLE_EXCEPTIONS=OFF -DCMAKE_REQUIRED_FLAGS='-fno-exceptions',"