Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
To: <enguerrand.de-ribaucourt@savoirfairelinux.com>,
	<openembedded-core@lists.openembedded.org>
Cc: "Adrian Freihofer" <adrian.freihofer@siemens.com>
Subject: Re: [OE-core] [PATCH v2 00/18] devtool: ide-sdk: add support for Rust recipes
Date: Tue, 10 Nov 2026 13:25:11 +0100	[thread overview]
Message-ID: <DMRJ1ZHRD2GY.3FYG0JMUT4C3I@bootlin.com> (raw)
In-Reply-To: <20261109-devtool-ide-sdk-cargo-v2-0-d56134000561@savoirfairelinux.com>

On Mon Nov 9, 2026 at 2:44 PM CET, Enguerrand de Ribaucourt via openembedded-core wrote:
> Hello, this series introduces support for Rust ide-sdk VS Code
> configuration against the Yocto cross-compilation toolchain:
>
>  - editor symbol resolution and linting
>  - build task
>  - deploy task
>  - debugging
>
> It introduces a cargo-example recipe following the model used for
> cmake and meson.
>
> The generated configurations can be portable to standalone SDK
> installations by manually updating the paths.
>
> C/C++ IntelliSense could provide navigation for native code compiled
> by Cargo build scripts, using the recipe compiler and sysroot. This
> first series defers it because no mixed-language fixture is available
> to validate that workflow.
>
> BitBake generates the Cargo configuration consumed by ide-sdk. This series
> updates the parsed configuration and writes its supported TOML values
> without adding a new dependency.
>
> I reproduced the selftest coverage expected from other recipe classes,
> including configuration analysis up to actual debugging symbol resolution.
>
> I largely used AI generation to write this stack. After many iterations,
> I am finally happy with the code and commit history quality of this series.
> I also have a documentation commit ready for the manual if this gets
> approved.
>
> Any feedback is appreciated. Hope this will help lots of Rust developers
> working with Yocto distros :).
>
> Cheers,
> Enguerrand de Ribaucourt
>
> Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com>
> ---

Hi Enguerrand,

Thanks for the v2.

I can see one of the selftest is failing, but only in 1 of the 3
selftest builds. So it might be something not fully deterministic with
lldb-server installation:

2026-11-10 10:42:27,794 - oe-selftest - INFO - devtool.DevtoolIdeSdkRustTests.test_code_cargo_qemu_slirp (subunit.RemotedTestCase)
2026-11-10 10:42:27,795 - oe-selftest - INFO -  ... FAIL
...
2026-11-10 10:42:27,795 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/srv/pokybuild/yocto-worker/oe-selftest-fedora/build/layers/openembedded-core/meta/lib/oeqa/selftest/cases/devtool.py", line 4503, in test_code_cargo_qemu_slirp
    self._verify_rust_lldb_debugging(tempdir, expected_input=4)
  File "/srv/pokybuild/yocto-worker/oe-selftest-fedora/build/layers/openembedded-core/meta/lib/oeqa/selftest/cases/devtool.py", line 4545, in _verify_rust_lldb_debugging
    runCmd(ssh_args, output_log=self._cmd_logger)
  File "/srv/pokybuild/yocto-worker/oe-selftest-fedora/build/layers/openembedded-core/meta/lib/oeqa/utils/commands.py", line 214, in runCmd
    raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, exc_output))
AssertionError: Command '['ssh', '-p', '2222', '-o', 'UserKnownHostsFile=/dev/null', '-o', 'StrictHostKeyChecking=no', 'root@localhost', "/bin/sh -c 'grep -q :04F2 /proc/net/tcp /proc/net/tcp6 2>/dev/null && exit 0; mkdir -p /tmp/lldb_server_1266_usr-bin-cargo-example_multi; cd /tmp/lldb_server_1266_usr-bin-cargo-example_multi; /usr/bin/lldb-server platform --server --listen *:1266 --gdbserver-port 1267 > /tmp/lldb_server_1266_usr-bin-cargo-example_multi/lldb_server.log 2>&1 & _lldb_server_pid=$!; echo $_lldb_server_pid > /tmp/lldb_server_1266_usr-bin-cargo-example_multi/lldb_server.pid; _w=0; while ! grep -q :04F2 /proc/net/tcp /proc/net/tcp6 2>/dev/null; do kill -0 $_lldb_server_pid 2>/dev/null || { cat /tmp/lldb_server_1266_usr-bin-cargo-example_multi/lldb_server.log >&2; echo lldb-server exited before it started listening on port 1266 >&2; exit 1; }; _w=$((_w+1)); [ $_w -lt 600 ] || { kill $_lldb_server_pid 2>/dev/null; echo lldb-server did not start on port 1266 after $_w retries >&2; cat /tmp/lldb_server_1266_usr-bin-cargo-example_multi/lldb_server.log >&2; exit 1; }; sleep 0.1; done;'"]' returned non-zero exit status 1:
Warning: Permanently added '[localhost]:2222' (RSA) to the list of known hosts.
/bin/sh: line 0: /usr/bin/lldb-server: not found
lldb-server exited before it started listening on port 1266

https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/5043

Can you have a look at the issue?

I launched a rebuild of that build, out of curiosity. But in all cases,
we should understand what happened here.

Thanks,
Mathieu

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


  parent reply	other threads:[~2026-11-10 12:25 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-09 13:44 [PATCH v2 00/18] devtool: ide-sdk: add support for Rust recipes Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 01/18] cargo-example: add minimal selftest fixture Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 02/18] devtool: ide-sdk: capture Cargo cross environment Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 03/18] devtool: ide-sdk: export recipe Cargo configuration Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 04/18] oeqa/selftest: verify Cargo config serialization Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 05/18] devtool: ide-sdk: recommend Rust Analyzer for Cargo Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 06/18] devtool: ide-sdk: configure " Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 07/18] devtool: ide-sdk: generalize binary install task name Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 08/18] devtool: ide-sdk: extract install task definition Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 09/18] devtool: ide-sdk: order install after optional build task Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 10/18] devtool: ide-sdk: add Cargo " Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 11/18] devtool: ide-sdk: enforce LLDB for Cargo Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 12/18] devtool: ide-sdk: remap Cargo sources for BitBake builds Enguerrand de Ribaucourt
2026-11-09 14:08   ` Patchtest results for " patchtest
2026-11-09 13:44 ` [PATCH v2 13/18] devtool: ide-sdk: map Cargo workspace sources for LLDB Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 14/18] devtool: ide-sdk: map libstd-rs sources to Rust SDK Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 15/18] oeqa/selftest: share source breakpoint lookup Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 16/18] oeqa/selftest: run IDE tasks with configured environment Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 17/18] oeqa/selftest: debug Cargo example over QEMU slirp Enguerrand de Ribaucourt
2026-11-09 13:44 ` [PATCH v2 18/18] oeqa/selftest: verify Cargo rebuild and redeploy Enguerrand de Ribaucourt
2026-11-10 12:25 ` Mathieu Dubois-Briand [this message]
2026-11-11  6:46   ` [OE-core] [PATCH v2 00/18] devtool: ide-sdk: add support for Rust recipes Adrian Freihofer
2026-11-20 17:09     ` Enguerrand de Ribaucourt
2026-11-22 11:44       ` Mathieu Dubois-Briand
2026-11-23 13:38         ` Mathieu Dubois-Briand
     [not found]         ` <18EAB0361F0B4C03.1542659@lists.openembedded.org>
2026-11-30 14:49           ` Mathieu Dubois-Briand

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=DMRJ1ZHRD2GY.3FYG0JMUT4C3I@bootlin.com \
    --to=mathieu.dubois-briand@bootlin.com \
    --cc=adrian.freihofer@siemens.com \
    --cc=enguerrand.de-ribaucourt@savoirfairelinux.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