Bug 14742 - SDK installation with Rust tools failed with errors for multiple architectures
Summary: SDK installation with Rust tools failed with errors for multiple architectures
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 4.1 M1
Assignee: Sundeep KOKKONDA
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2022-02-24 11:28 UTC by Sundeep KOKKONDA
Modified: 2022-05-30 08:24 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
Error logs while installing sdk with rust tools. (72.57 KB, application/msword)
2022-02-24 11:28 UTC, Sundeep KOKKONDA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sundeep KOKKONDA 2022-02-24 11:28:38 UTC
Created attachment 4851 [details]
Error logs while installing sdk with rust tools.

The sdk installation with Rust tools is failed with errors for qemuarm architecture. The build configuration and error details are in Chapter1 of attached 'Error_Logs.rtf' file.

For the mips & ppc architectures the sdk relocation failed. The build configuration and error details are in Chapter2&3 of attached 'Error_Logs.rtf' file.

-------------------
Steps to reproduce:
  <setup standard poky build in local.conf for target architecture i.e., for 
 arm32/mips32/mips64/ppc>
  $ echo 'TOOLCHAIN_HOST_TASK:append = " packagegroup-rust-cross-canadian-${MACHINE}"' >> conf/auto.conf
  $ bitbake core-image-minimal -cpopulate_sdk

  < installation steps (can be referred in attached file also) >
  $ ./tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-mips64r2-qemumips64-toolchain-3.4+snapshot.sh
--------------------

The sdk shall be installed with Rust tools for each BSP and the rust application (any rust program for eg., a simple 'helloWorld' program) developed for the given target shall be executed in the qemu/hardware target. Also, I would like to automate such test case in OEQA framework.
Comment 1 Randy MacLeod 2022-02-25 00:41:36 UTC
Sundeep, 

Thanks for the clear defect report.

Please work on qemuarm first. To me that's required for 3.5 GA in early April.

If we can fix Mips*, ppc* that would be nice but if not we document the limitation in the release notes and see if interested parties are willing to spend time supporting those targets.

For anyone reading, Sundeep mentioned privately that:
"x86_64 was already tested, the x86 here is a 32 bit machine. 
 Both x86 (32 bit) & x86-64 are tested and works fine."
Comment 2 Sundeep KOKKONDA 2022-04-01 07:05:14 UTC
The errors are fixed and patches sent to upstream. Detailed info about patches can be found in below links:
https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg160828.html
https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg160829.html