All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] compiler-rt-sanitizers, compiler-rt: skip for armv5
@ 2025-05-09 11:58 Hongxu Jia
  2025-05-09 17:31 ` [OE-core] " Khem Raj
  0 siblings, 1 reply; 7+ messages in thread
From: Hongxu Jia @ 2025-05-09 11:58 UTC (permalink / raw)
  To: openembedded-core

$ echo 'MACHINE = "qemuarmv5"' >> conf/local.conf
$ bitbake compiler-rt compiler-rt-sanitizers
...
tmp/work-shared/llvm-project-source-20.1.2-r0/llvm-project-20.1.2.src/compiler-rt/lib/builtins/arm/sync-ops.h:22:2: error: #error DMB is only supported on ARMv6+
|    22 | #error DMB is only supported on ARMv6+
|       |  ^~~~~

Due to upstream commit [[compiler-rt][builtins] Move DMB definition
to syn-ops.h][1], compiler-rt cross-compile for ARMv5 fails.

[1] https://github.com/llvm/llvm-project/commit/1c9415806ba6d0d48a160637eea7d1b70efaae69

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta/recipes-devtools/clang/compiler-rt-sanitizers_git.bb | 1 +
 meta/recipes-devtools/clang/compiler-rt_git.bb            | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/meta/recipes-devtools/clang/compiler-rt-sanitizers_git.bb b/meta/recipes-devtools/clang/compiler-rt-sanitizers_git.bb
index b3c4bfcffdc..8b591b757e3 100644
--- a/meta/recipes-devtools/clang/compiler-rt-sanitizers_git.bb
+++ b/meta/recipes-devtools/clang/compiler-rt-sanitizers_git.bb
@@ -129,3 +129,4 @@ COMPATIBLE_HOST:libc-musl:x86-64 = "(.*)"
 COMPATIBLE_HOST:libc-musl:riscv64 = "(.*)"
 COMPATIBLE_HOST:libc-musl:riscv32 = "(.*)"
 COMPATIBLE_HOST:libc-musl = "null"
+COMPATIBLE_HOST:armv5 = "null"
diff --git a/meta/recipes-devtools/clang/compiler-rt_git.bb b/meta/recipes-devtools/clang/compiler-rt_git.bb
index 93928541273..d634c148508 100644
--- a/meta/recipes-devtools/clang/compiler-rt_git.bb
+++ b/meta/recipes-devtools/clang/compiler-rt_git.bb
@@ -119,3 +119,5 @@ BBCLASSEXTEND = "native nativesdk"
 ALLOW_EMPTY:${PN} = "1"
 
 SYSROOT_DIRS:append:class-target = " ${nonarch_libdir}"
+
+COMPATIBLE_HOST:armv5 = "null"
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-05-14  3:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-09 11:58 [PATCH] compiler-rt-sanitizers, compiler-rt: skip for armv5 Hongxu Jia
2025-05-09 17:31 ` [OE-core] " Khem Raj
2025-05-10 14:52   ` hongxu
2025-05-10 14:59     ` [OE-core] " Khem Raj
2025-05-10 21:29       ` Khem Raj
2025-05-10 22:12         ` Khem Raj
2025-05-14  3:30           ` hongxu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.