Bug 15061

Summary: Rust multilib sdks broken
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Richard Purdie <richard.purdie>
Component: devtools / tool chainAssignee: Harish Sadineni <Harish.Sadineni>
Status: IN PROGRESS IMPLEMENTATION --- QA Contact:
Severity: normal    
Priority: Medium+ CC: mathieu.dubois-briand, meta.mr.watcher, meta.watcher, randy.macleod, sundeep.kokkonda, yoann.congal
Version: unspecified   
Target Milestone: 6.1 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Richard Purdie 2023-03-08 16:37:33 UTC
Error: Transaction test error:
  file /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/environment-setup.d/cargo.sh conflicts between attempted installs of rust-cross-canadian-arm-1.67.1-r0.x86_64_nativesdk and rust-cross-canadian-aarch64-1.67.1-r0.x86_64_nativesdk
  file /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/environment-setup.d/rust.sh conflicts between attempted installs of rust-cross-canadian-arm-1.67.1-r0.x86_64_nativesdk and rust-cross-canadian-aarch64-1.67.1-r0.x86_64_nativesdk
ERROR: Task (virtual:multilib:lib32:/media/build/poky/meta/recipes-sato/images/core-image-sato.bb:do_populate_sdk) failed with exit code '1'

local.conf:

require conf/multilib.conf
MACHINE = "qemuarm64"
MULTILIBS = "multilib:lib32"
DEFAULTTUNE:virtclass-multilib-lib32 = "armv7athf-neon"

then running:

bitbake lib32-core-image-sato -c populate_sdk

to reproduce.
Comment 1 Randy MacLeod 2023-05-29 14:55:11 UTC
Patch in internal review. Sending to oe-core soon hopefully.
Comment 2 Randy MacLeod 2023-10-30 15:41:02 UTC
Deepthi, 

Did this ever get reviewed and merged?
If so please provide a link to the commit on oe-core.
Thanks, Randy
Comment 3 Deepthi 2023-11-08 06:12:33 UTC
Hi Randy,

Sorry for the late reply. Posted the patch https://lists.openembedded.org/g/openembedded-core/message/190304
Comment 4 Deepthi 2023-12-11 11:07:33 UTC
Edited and posted another patch as per Ross's comments: https://lists.openembedded.org/g/openembedded-core/message/191481
Comment 5 Randy MacLeod 2024-04-25 01:29:26 UTC
Deepthi, was you new patch accepted?
If so, please share an oe-core commit link or move to 5.1-M1
Comment 7 Randy MacLeod 2025-06-30 14:08:48 UTC
There is an issue reported here on that patch, https://lists.openembedded.org/g/openembedded-core/message/214324
Comment 9 Randy MacLeod 2026-03-31 14:38:49 UTC
We need to implement some test cases.