From: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
To: <SunilKumar.Dora@windriver.com>,
<openembedded-core@lists.openembedded.org>
Cc: <Randy.MacLeod@windriver.com>, <Sundeep.Kokkonda@windriver.com>,
<alex@linutronix.de>
Subject: Re: [OE-core] [PATCH] rust: Enable dynamic linking with llvm
Date: Sun, 15 Feb 2026 17:35:33 +0100 [thread overview]
Message-ID: <DGFOJOHDE058.3VTWCLZHYPGPD@bootlin.com> (raw)
In-Reply-To: <20260212165035.1806068-1-sunilkumar.dora@windriver.com>
On Thu Feb 12, 2026 at 5:50 PM CET, Sunil Kumar via lists.openembedded.org Dora wrote:
> From: Sunil Dora <sunilkumar.dora@windriver.com>
>
> YOCTO #16058
>
> When llvm-native is built with a newer toolchain (e.g. GCC 15) and
> reused on a system with an older linker, rustc emit segfault at runtime.
>
> This issue occurs because rustc, which is statically linked with LLVM libraries,
> was built on one machine using a newer toolchain and then executed on another machine
> that has an older linker. To prevent crash, LLVM now linked with rustc dynamically.
>
> Added llvm as dependency to provide libllvm.so at runtime.
>
> Signed-off-by: Sunil Dora <sunilkumar.dora@windriver.com>
> Signed-off-by: Alexander Kanavin <alex@linutronix.de>
> Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
> ---
Hi Sunil,
It looks like this is breaking some builds:
ERROR: rust-1.93.0-r0 do_install: Execution of '/srv/pokybuild/yocto-worker/qemux86-world-alt/build/build/tmp/work/x86-64-v3-poky-linux/rust/1.93.0/temp/run.do_install.3402703' failed with exit code 1
...
| error: failed to run custom build command for `rustc_llvm v0.0.0 (/srv/pokybuild/yocto-worker/qemux86-world-alt/build/build/tmp/work/x86-64-v3-poky-linux/rust/1.93.0/sources/rustc-1.93.0-src/compiler/rustc_llvm)`
|
| Caused by:
| process didn't exit successfully: `/srv/pokybuild/yocto-worker/qemux86-world-alt/build/build/tmp/work/x86-64-v3-poky-linux/rust/1.93.0/sources/rustc-1.93.0-src/build/x86_64-unknown-linux-gnu/stage2-rustc/release/build/rustc_llvm-de72af8bf33c0296/build-script-build` (exit status: 101)
...
| --- stderr
| llvm-config: error: libLLVM-21.so is missing
https://autobuilder.yoctoproject.org/valkyrie/#/builders/17/builds/3020
Can you have a look at this issue?
Thanks,
Mathieu
--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2026-02-15 16:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-12 16:50 [PATCH] rust: Enable dynamic linking with llvm sunilkumar.dora
2026-02-12 17:05 ` [OE-core] " Ross Burton
2026-02-13 19:51 ` Dora, Sunil Kumar
2026-02-17 14:24 ` [OE-core] " Randy MacLeod
2026-02-18 17:26 ` Dora, Sunil Kumar
2026-02-12 17:52 ` [OE-core] " Alexander Kanavin
2026-02-13 19:53 ` Dora, Sunil Kumar
2026-02-15 16:35 ` Mathieu Dubois-Briand [this message]
2026-02-16 12:47 ` Dora, Sunil Kumar
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=DGFOJOHDE058.3VTWCLZHYPGPD@bootlin.com \
--to=mathieu.dubois-briand@bootlin.com \
--cc=Randy.MacLeod@windriver.com \
--cc=Sundeep.Kokkonda@windriver.com \
--cc=SunilKumar.Dora@windriver.com \
--cc=alex@linutronix.de \
--cc=openembedded-core@lists.openembedded.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