This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SK-AM62: SDK-9 , yocto build Error: Rust component installation issue

Part Number: SK-AM62


I'm encountering an error in yocto build in SDK9 for the AM62xx EVM board.

The error arises during the installation phase of the rust-native component (/meta-rust/recipes-devtools/rust/ The specific error message indicates that a file (x86_64-unknown-linux-gnu.json) cannot be found during the installation process. I'm getting this error once I add the layer meta-chromium in bblayers.conf .


My build configurations includes ubuntu 22.04 running within a Docker container :

Build Configuration:
BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-22.04"
TARGET_SYS = "arm-oe-eabi"
MACHINE = "am62xx-evm-k3r5"
DISTRO = "arago"
DISTRO_VERSION = "2023.10"
TUNE_FEATURES = "arm armv7a vfp thumb callconvention-hard"
TARGET_FPU = "hard"

here is the error message : 

nstall: installing component 'rustc'


|     rustc installed.


| WARNING: The use of `changelog-seen` is deprecated. Please refer to `change-id` option in `config.example.toml` instead.

| WARNING: The `change-id` is missing in the `config.toml`. This means that you will not be able to track the major changes made to the bootstrap configurations.

| NOTE: to silence this warning, add `change-id = 116881` at the top of `config.toml`

| NOTE: this message was printed twice to make it more likely to be seen

| Build completed successfully in 0:00:19

| install: cannot stat '/workspace/sitara/tisdk/build/arago-tmp-default-glibc/work/x86_64-linux/rust-native/1.75.0-r0/rust-targets/x86_64-unknown-linux-gnu.json': No such file or directory

| WARNING: /workspace/sitara/tisdk/build/arago-tmp-default-glibc/work/x86_64-linux/rust-native/1.75.0-r0/temp/run.do_install.3879793:166 exit 1 from 'install -m 0644 /workspace/sitara/tisdk/build/arago-tmp-default-glibc/work/x86_64-linux/rust-native/1.75.0-r0/rust-targets/x86_64-unknown-linux-gnu.json /workspace/sitara/tisdk/build/arago-tmp-default-glibc/work/x86_64-linux/rust-native/1.75.0-r0/image/workspace/sitara/tisdk/build/arago-tmp-default-glibc/work/x86_64-linux/rust-native/1.75.0-r0/recipe-sysroot-native/usr/lib/rustlib/x86_64-unknown-linux-gnu/target.json'

| WARNING: Backtrace (BB generated script):

| #1: rust_do_install, /workspace/sitara/tisdk/build/arago-tmp-default-glibc/work/x86_64-linux/rust-native/1.75.0-r0/temp/run.do_install.3879793, line 166

| #2: do_install, /workspace/sitara/tisdk/build/arago-tmp-default-glibc/work/x86_64-linux/rust-native/1.75.0-r0/temp/run.do_install.3879793, line 159

| #3: main, /workspace/sitara/tisdk/build/arago-tmp-default-glibc/work/x86_64-linux/rust-native/1.75.0-r0/temp/run.do_install.3879793, line 216

ERROR: Task (virtual:native:/workspace/sitara/tisdk/sources/meta-rust/recipes-devtools/rust/ failed with exit code '1'

NOTE: Tasks Summary: Attempted 6919 tasks of which 6918 didn't need to be rerun and 1 failed.