On Tue, 2024-11-26 at 18:05 +0530, Yash Shinde via lists.openembedded.org wrote:
>  While updating rust to v1.81.0, "bitbake rust" fails as follows:
>   ERROR: rust-1.81.0-r0 do_package: rust: Multiple shlib providers for 
> libstd-20c3de2d9292cd03.so: rust, rust (used by files: 
> /poky/rust81/build/tmp/work/core2-64-poky-linux/rust/1.81.0/packages-split/rust/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/rust81/build/tmp/work/core2-64-poky-linux/rust/1.81.0/packages-split/rust/usr/bin/rustdoc)
>  ERROR: rust-1.81.0-r0 do_package: rust: Multiple shlib providers for 
> libstd-20c3de2d9292cd03.so: rust, rust (used by files: 
> /poky/rust81/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/rust81/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/rust81/build/tmp/work/core2-64-poky-linux/rust/1.81.0/packages-split/rust/usr/lib/librustc_driver-fc36770e343ef852.so)
>  ERROR: rust-1.81.0-r0 do_package: rust: Multiple shlib providers for 
> libstd-20c3de2d9292cd03.so: rust, rust (used by files: 
> /poky/rust81/build/tmp/work/core2-64-poky-linux/rust/1.81.0/packages-split/rust/usr/bin/cargo-clippy)
>   This kind of error is very unusual. So we investigated more and it seems 
> there are multiple shlibs generated for 
> 
>  rustfmt, rustdoc, rustc, clippy-driver and cargo-clippy packages.
>  

>  The rust recipe has some do_install tasks separately for these packages 
> which might cause this error.
> 
>  
> https://git.openembedded.org/openembedded-core/tree/meta/recipes-devtools/rust/rust_1.80.1.bb?h=master#n276
>  and the lines following it.
>   We suspect that the issue may be related to the Rust recipe, as we are 
> reinstalling some packages and probably need to remove them.
>  We are further investigating and keep posted.
> 

We shouldn't be shipping multiple copies of libraries and the correct
fix is probably to delete the ones which don't get used. Please check
the binaries still work afterwards!


Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#207860): 
https://lists.openembedded.org/g/openembedded-core/message/207860
Mute This Topic: https://lists.openembedded.org/mt/109788637/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