On 09-01-2025 15:04, Deepesh Varatharajan wrote:


On 28-12-2024 00:26, Alexander Kanavin 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.

On Fri, 27 Dec 2024 at 07:54, Varatharajan, Deepesh via
lists.openembedded.org
<deepesh.varatharajan=windriver....@lists.openembedded.org> wrote:
From: Deepesh Varatharajan<deepesh.varathara...@windriver.com>

The `do_package` task fail with below error due to multiple `libstd.so` files 
installed in lib dir.

---------------------------------------------------------------------------------------------------------------------------
ERROR: rust-1.81.0-r0 do_package: rust-rustdoc: Multiple shlib providers for 
libstd-20c3de2d9292cd03.so: rust,
rust (used by files: 
poky/build/tmp/work/core2-64-poky-linux/rust/1.81.0/packages-split/rust-rustdoc/usr/bin/rustdoc)
ERROR: rust-1.81.0-r0 do_package: rust-tools-rustfmt: Multiple shlib providers 
for libstd-20c3de2d9292cd03.so: rust,
rust (used by files: 
poky/build/tmp/work/core2-64-poky-linux/rust/1.81.0/packages-split/rust-tools-rustfmt/usr/bin/rustfmt)
ERROR: rust-1.81.0-r0 do_package: rust: Multiple shlib providers for 
libstd-20c3de2d9292cd03.so: rust,
rust (used by files: 
poky/build/tmp/work/core2-64-poky-linux/rust/1.81.0/packages-split/rust/usr/bin/rustc)
ERROR: rust-1.81.0-r0 do_package: rust: Multiple shlib providers for 
libstd-20c3de2d9292cd03.so: rust,
rust (used by files: 
poky/build/tmp/work/core2-64-poky-linux/rust/1.81.0/packages-split/rust/usr/bin/clippy-driver)
ERROR: rust-1.81.0-r0 do_package: rust: Multiple shlib providers for 
libstd-20c3de2d9292cd03.so: rust,
rust (used by files: 
poky/build/tmp/work/core2-64-poky-linux/rust/1.81.0/packages-split/rust/usr/bin/cargo-clippy)
ERROR: rust-1.81.0-r0 do_package: rust: Multiple shlib providers for 
libstd-20c3de2d9292cd03.so: rust,
rust (used by files: 
poky/build/tmp/work/core2-64-poky-linux/rust/1.81.0/packages-split/rust/usr/lib/
librustc_driver-fc36770e343ef852.so)
---------------------------------------------------------------------------------------------------------------------------

To fix the redundant `libstd.so` files are removed from the usr/lib/.
What installs the redundant files in the first place? Shouldn't it be
adjusted to not do that?
During the Rust build process, multiple copies of libstd-*.so are generated, as Rust copies the required files from the stage2 build artifacts to the target image directory. When these build binaries are copied to the image, Yocto's do_package step encounters an error. To resolve this,
the redundant libstd-*.so files are removed during the do_install step.

Sorry about the above format

During the Rust buildĀ process,multiple copies of libstd-*.so are generated, as Rust copies the required files from the stage2 build artifacts to the target image directory. When these build binaries are copied to image, Yocto's do_package step encounters an error. To resolve this the redundant libstd-*.so file is removed during the do_install step.

Also, as noted elsewhere, you cannot hardcode 'poky', or special-case
based on TCLIBC.
Updated the patch
https://lists.openembedded.org/g/openembedded-core/topic/patch_v2_2_3_rust_fix_for/110513058
Alex
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#209623): 
https://lists.openembedded.org/g/openembedded-core/message/209623
Mute This Topic: https://lists.openembedded.org/mt/110301947/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to