Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Dora, Sunil Kumar" <SunilKumar.Dora@windriver.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH v3] rust: add rust-analyzer to the SDK behind a PACKAGECONFIG
Date: Thu, 12 Nov 2026 22:19:59 -0800	[thread overview]
Message-ID: <743327.1794550799903849632@lists.openembedded.org> (raw)
In-Reply-To: <20261111154442.241009-1-benhur.tessele@est.tech>

[-- Attachment #1: Type: text/plain, Size: 1074 bytes --]

Hi Benhur,

Thanks for v3. Tested on master with PACKAGECONFIG rust-analyzer enabled;
it works for me in a clean environment.

One issue I noticed, not from your patch but from the existing cargo
wrapper: on a host with rustup installed, rust-analyzer from the SDK
prefers the rustup cargo proxy (~/.cargo/bin/cargo) and sets
RUSTUP_TOOLCHAIN to the SDK sysroot.

The nativesdk cargo wrapper then exports LD_LIBRARY_PATH with the SDK
lib dirs, and the host-side rustc proxy that cargo runs for "rustc -vV"
gets the SDK's glibc 2.44 under the host loader:

rustc: symbol lookup error: .../lib/libc.so.6: undefined symbol:
__pointer_chk_guard, version GLIBC_PRIVATE

cargo metadata exits 101 and rust-analyzer falls back to a degraded mode.
Seen on Ubuntu 22.04 and 24.04 hosts; with an empty HOME (no rustup) it
works. So this is a pre-existing wrapper issue, your patch just makes it
reachable from rust-analyzer. I will report it separately.

Could you share your test setup, host distro/glibc and whether rustup
was present?

Thanks,
Sunil Dora

[-- Attachment #2: Type: text/html, Size: 1327 bytes --]

  reply	other threads:[~2026-11-13  6:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-06 11:12 [PATCH v2 0/2] rust: add rust-analyzer support Benhur Tessele
2026-10-06 11:12 ` [PATCH v2 1/2] rust: package rust-analyzer for the SDK Benhur Tessele
2026-11-09 14:15   ` Paul Barker
2026-10-06 11:12 ` [PATCH v2 2/2] packagegroup-rust-cross-canadian: add rust-analyzer to " Benhur Tessele
2026-11-11 15:44 ` [PATCH v3] rust: add rust-analyzer to the SDK behind a PACKAGECONFIG Benhur Tessele
2026-11-13  6:19   ` Dora, Sunil Kumar [this message]
2026-11-13  6:46     ` [OE-core] " Khem Raj

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=743327.1794550799903849632@lists.openembedded.org \
    --to=sunilkumar.dora@windriver.com \
    --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