All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/3] RFC: Fixing rust segfault (#16058) to support Ubuntu 26.04 on Scarthgap
@ 2026-06-26 11:37 Yoann Congal
  2026-06-26 11:37 ` [PATCH RFC 1/3] rust: Enable dynamic linking with llvm Yoann Congal
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Yoann Congal @ 2026-06-26 11:37 UTC (permalink / raw)
  To: openembedded-core
  Cc: alex.kanavin, ccasciato, paul, randy.macleod, ross.burton,
	sundeep.kokkonda, SunilKumar.Dora, Yoann Congal, Sunil Dora,
	Alexander Kanavin, Richard Purdie

Hello,

I'm currently trying to support Ubuntu 26.04 on Scarthgap, but by doing
so, I awaken bugs fixed on master. The current (and hardest one yet) is:
  16058 – AB-INT: rust do_test_compile/do_install segfault
  https://bugzilla.yoctoproject.org/show_bug.cgi?id=16058

I've this bug triggered here: 
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/40/builds/3981

To fix that, I've tried to backport the fixes mentionned in the bug:
* commit 74ba238ff1ba ("rust: Enable dynamic linking with llvm")
* (commit c31859be39c6 ("rust-llvm: Disable libedit") because I
  trigerred a libedit related linking issue)
* commit d0671c3dad87 ("rust: enable dynamic LLVM linking by default")

But that last commit appears difficult to backport: It was made after
master switch the LLVM compiling rust from rust-llvm to common llvm.

I've hacked the backport until it passes testing:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/29/builds/4085
... but I'm really *NOT* sure this is the right approach. Hence this RFC
with the patches I ended-up with.

If anyone could check/review/improve these patches to help me get them
to a mergable state, that'd be nice. Otherwise, I would have no other
choice than never support Ubuntu 26.04 on Scarthgap.

Thanks!

I've copied the bug CC list for awareness:

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
---
Richard Purdie (1):
      rust-llvm: Disable libedit

Sunil Dora (2):
      rust: Enable dynamic linking with llvm
      WIP backport: rust: enable dynamic LLVM linking by default

 meta/lib/oeqa/selftest/cases/rust.py           |  2 +-
 meta/recipes-devtools/rust/rust-llvm_1.75.0.bb | 40 ++++++++++++++++++++++++--
 meta/recipes-devtools/rust/rust_1.75.0.bb      |  6 ++++
 3 files changed, 45 insertions(+), 3 deletions(-)
---
base-commit: f42bc5a91196691a30d92482fdf2eca7eabdbe25
change-id: 20260626-ycongal-scarthgap-rust-segfault-812ae2a9c95d

Best regards,
-- 
Yoann Congal <yoann.congal@smile.fr>



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

end of thread, other threads:[~2026-07-16  1:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-26 11:37 [PATCH RFC 0/3] RFC: Fixing rust segfault (#16058) to support Ubuntu 26.04 on Scarthgap Yoann Congal
2026-06-26 11:37 ` [PATCH RFC 1/3] rust: Enable dynamic linking with llvm Yoann Congal
2026-06-26 11:37 ` [PATCH RFC 2/3] rust-llvm: Disable libedit Yoann Congal
2026-06-26 11:37 ` [PATCH RFC 3/3] WIP backport: rust: enable dynamic LLVM linking by default Yoann Congal
2026-06-26 14:57 ` [PATCH RFC 0/3] RFC: Fixing rust segfault (#16058) to support Ubuntu 26.04 on Scarthgap Alexander Kanavin
2026-06-26 15:26   ` Yoann Congal
2026-06-27 13:29     ` Yoann Congal
2026-06-27 15:16       ` Alexander Kanavin
2026-07-02 14:09         ` Yoann Congal
2026-07-11 17:56           ` Sunil Kumar Dora
2026-07-13 16:00             ` [OE-core] " Alexander Kanavin
2026-07-16  1:01               ` Dora, Sunil Kumar

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.