Re: [OE-core] [PATCH v4 00/16] Enable rust support for linux kernel

Harish Sadineni
2026-01-22T11:53:58Z

On 1/21/2026 8:46 PM, Antonin Godard wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
> Hi,
>
> On Tue Jan 20, 2026 at 7:41 PM CET, Harish via lists.openembedded.org Sadineni wrote:
>> This patch series was tested on Autobuilder:
>> https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/3193
>> https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/3056
> Thanks for your efforts on this. However I think it triggers issues in other
> builders as you can see from this a-full run (a-full is the complete Autobuilder
> testing run):
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3101
>
> For example, the first failure in the list (beaglebone builder):
>
> | error: linking with `/srv/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-rust/1.92.0/wrapper/build-rust-ccld` failed: exit status: 1
> | |
> | = note: "/srv/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-rust/1.92.0/wrapper/build-rust-ccld" "-m64" "/tmp/rustcBDQQCc/symbols.o" "<75 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcBDQQCc/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/srv/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-rust/1.92.0/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/lib" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/srv/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-rust/1.92.0/sources/rustc-1.92.0-src/build/bootstrap/debug/deps/rustdoc-92c720c010da8c74" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "-lz" "-lzstd"
> | = note: some arguments are omitted. use `--verbose` to show all linker arguments
> | = note: /srv/pokybuild/yocto-worker/beaglebone/build/build/tmp/hosttools/ld: cannot find /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/lib/libm.so.6: No such file or directory
> | /srv/pokybuild/yocto-worker/beaglebone/build/build/tmp/hosttools/ld: cannot find /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/lib/libmvec.so.1: No such file or directory
> | collect2: error: ld returned 1 exit status
>
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/2/builds/3084
> https://autobuilder.yoctoproject.org/valkyrie/api/v2/logs/5052191/raw_inline
>
> Can you have a look at these failures?
Thanks for reporting this.
The error indicates that the linker is unable to locate libm.so.6 and
libmvec.so.6 in the recipe sysroot.
These libraries are normally provided by glibc, and this issue does not
appear to be caused by our patches, as we are not able to reproduce it
locally.
Could you please re-test the series once more to confirm?

Thanks,
Harish
>
> Antonin
>
> --
> Antonin Godard, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
>