On Thu, 2026-10-01 at 16:08 +0200, Mathieu Dubois-Briand wrote:
> On Thu Oct 1, 2026 at 2:56 PM CEST, Benhur T wrote:
> > rust-analyzer is built as part of the Rust tools but was neither
> > installed nor packaged. This series packages it and wires it into the
> > Rust SDK next to clippy and rustfmt.
> > 
> > Patch 1 adds a rust-tools-analyzer package for the target and nativesdk
> > variants. Beyond the frontend binary it also ships the proc-macro server
> > and depends on the standard library sources, both of which are required
> > for rust-analyzer to actually function.
> > 
> > Patch 2 adds it to the cross-canadian toolchain so that an SDK built with
> > SDK_FEATURES = "rust" provides rust-analyzer out of the box.
> > 
> > Testing:
> >  - Patches validated with patchset.
> >  - Built an SDK with SDK_FEATURES = "rust", installed it in a container,
> >    and confirmed rust-analyzer resolves the standard library and expands
> >    proc-macros end to end: diagnostics/analysis-stats on a crate using a
> >    derive macro succeed, with the proc-macro server started from
> >    <sysroot>/libexec.
> >  - Built core-image-minimal with rust-tools-analyzer installed, booted it
> >    under qemu, and confirmed the rust-analyzer frontend and the
> >    rust-analyzer-proc-macro-srv binary are present with their libraries
> >    resolving.
> > 
> > Benhur Tessele (2):
> >   rust: package rust-analyzer as rust-tools-analyzer
> >   packagegroup-rust-cross-canadian: add rust-analyzer to the SDK
> > 
> >  .../packagegroup-rust-cross-canadian.bb       |  1 +
> >  meta/recipes-devtools/rust/rust_1.98.1.bb     | 19 ++++++++++++++++---
> >  2 files changed, 17 insertions(+), 3 deletions(-)
> 
> Hi Benhur,
> 
> Thanks for your patch.
> 
> I believe this is breaking build on some platforms. Maybe all ARM 32
> bits?
> 
> ERROR: rust-1.98.1-r0 do_install: Execution of 
> '/srv/pokybuild/yocto-worker/beaglebone-alt/build/build/tmp/work/cortexa8t2hf-neon-poky-linux-gnueabi/rust/1.98.1/temp/run.do_install.3194208'
>  failed with exit code 1
> ...
> > error[E0658]: use of unstable library feature `stdarch_arm_neon_intrinsics`
> >   --> /rust/deps/simd-adler32-0.3.9/src/imp/neon.rs:23:7
> >    |
> > 23 |   use core::arch::arm::*;
> >    |       ^^^^^^^^^^^^^^^
> >    |
> >    = note: see issue #111800 
> > <https://github.com/rust-lang/rust/issues/111800> for more information
> >    = help: add `#![feature(stdarch_arm_neon_intrinsics)]` to the crate 
> > attributes to enable
> >    = note: this compiler was built on 2026-09-01; consider upgrading it if 
> > it is out of date
> ...
> > -------------
> > error: could not compile `simd-adler32` (lib) due to 67 previous errors
> > warning: build failed, waiting for other jobs to finish...
> ...
> 
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/10/builds/4734
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/74/builds/4706
> 
> Can you have a look at the issue?

One thing that's concerning here: We're seeing a compiler error message
during do_install. That suggests we're missing a build step in
do_compile, as things should already be built by the time we get to
do_install.

That may be a pre-existing issue for the rust recipe, if it is then we
should make sure there is a bug filed for it.

Best regards,

-- 
Paul Barker

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#247093): 
https://lists.openembedded.org/g/openembedded-core/message/247093
Mute This Topic: https://lists.openembedded.org/mt/121527283/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to