public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] rust: Enable dynamic LLVM linking for nativesdk-rust
@ 2026-03-02 13:28 sunilkumar.dora
  2026-03-05 11:32 ` [OE-core] " Alexander Kanavin
       [not found] ` <1899EEAA854579E5.971272@lists.openembedded.org>
  0 siblings, 2 replies; 6+ messages in thread
From: sunilkumar.dora @ 2026-03-02 13:28 UTC (permalink / raw)
  To: openembedded-core; +Cc: Sundeep.Kokkonda, sunilkumar.dora

From: Sunil Dora <sunilkumar.dora@windriver.com>

Fixes [Yocto #16058]

The issue is still observed with nativesdk-rust when sstate artifacts
built with different host toolchain versions are reused.

Although dynamic LLVM linking was already enabled for rust-native,
nativesdk-rust can also reuse sstate artifacts across host toolchain
generations. In such cases, static linking of LLVM objects may result
in mixing objects built with different toolchains, leading to runtime
segmentation faults.

Extend the fix to nativesdk-rust by enabling dynamic LLVM linking
(link-shared = true) to avoid these crashes.

Signed-off-by: Sunil Dora <sunilkumar.dora@windriver.com>
---
 meta/recipes-devtools/rust/rust_1.93.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/rust/rust_1.93.0.bb b/meta/recipes-devtools/rust/rust_1.93.0.bb
index 2be0bd8d89..06dc8a376c 100644
--- a/meta/recipes-devtools/rust/rust_1.93.0.bb
+++ b/meta/recipes-devtools/rust/rust_1.93.0.bb
@@ -124,7 +124,7 @@ python do_configure() {
 
     # [llvm]
     config.add_section("llvm")
-    if d.getVar('PN') == "rust-native":
+    if d.getVar('PN') in ("rust-native", "nativesdk-rust"):
         config.set("llvm", "link-shared", e(True))
     config.set("llvm", "static-libstdcpp", e(False))
     config.set("llvm", "download-ci-llvm", e(False))
-- 
2.49.0



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

end of thread, other threads:[~2026-03-12 13:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-02 13:28 [PATCH] rust: Enable dynamic LLVM linking for nativesdk-rust sunilkumar.dora
2026-03-05 11:32 ` [OE-core] " Alexander Kanavin
2026-03-11 13:46   ` Dora, Sunil Kumar
2026-03-11 16:26     ` Alexander Kanavin
2026-03-12 13:02       ` Dora, Sunil Kumar
     [not found] ` <1899EEAA854579E5.971272@lists.openembedded.org>
2026-03-10 18:15   ` [OE-core] " Alexander Kanavin

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