Hi! I have a recipe[1] for a rust project. It builds the gstreamer plugin for streaming from AWS S3 that is part of the gst-plugins-rs repo. I'm upgrading the system from dunfell to kirkstone and trying to switch from using meta-rust to using the rust support from openembedded-core. The target is aarch64 and host is x86-64.
Unfortunately the build fails on kirkstone with the following error: | Building [===========> ] 132/254: num-integer(build), quote... | Running `rustc --crate-name iovec /home/brgl/workspace/veki-kirkstone/build/tmp-glibc/work/armv8a-oe-linux/gstreamer1.0-rusoto/0.6.0-r0/cargo_home/bitbake/iovec-0.1.4/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C debuginfo=2 -C metadata=16f5461729d008fd -C extra-filename=-16f5461729d008fd --out-dir /home/brgl/workspace/veki-kirkstone/build/tmp-glibc/work/armv8a-oe-linux/gstreamer1.0-rusoto/0.6.0-r0/build/target/aarch64-oe-linux/release/deps --target aarch64-oe-linux -C linker=/home/brgl/workspace/veki-kirkstone/build/tmp-glibc/work/armv8a-oe-linux/gstreamer1.0-rusoto/0.6.0-r0/wrapper/target-rust-ccld -L dependency=/home/brgl/workspace/veki-kirkstone/build/tmp-glibc/work/armv8a-oe-linux/gstreamer1.0-rusoto/0.6.0-r0/build/target/aarch64-oe-linux/release/deps -L dependency=/home/brgl/workspace/veki-kirkstone/build/tmp-glibc/work/armv8a-oe-linux/gstreamer1.0-rusoto/0.6.0-r0/build/target/release/deps --extern libc=/home/brgl/workspace/veki-kirkstone/build/tmp-glibc/work/armv8a-oe-linux/gstreamer1.0-rusoto/0.6.0-r0/build/target/aarch64-oe-linux/release/deps/liblibc-f4d4da8aaaf5cc3b.rmeta --cap-lints allow -L /home/brgl/workspace/veki-kirkstone/build/tmp-glibc/work/armv8a-oe-linux/gstreamer1.0-rusoto/0.6.0-r0/recipe-sysroot/usr/lib/rust --remap-path-prefix=/home/brgl/workspace/veki-kirkstone/build/tmp-glibc/work/armv8a-oe-linux/gstreamer1.0-rusoto/0.6.0-r0=/usr/src/debug/gstreamer1.0-rusoto/0.6.0-r0` | warning: target json file contains unused fields: has-elf-tls | | error: failed to run custom build command for `num-traits v0.2.12` | | Caused by: | process didn't exit successfully: `/home/brgl/workspace/veki-kirkstone/build/tmp-glibc/work/armv8a-oe-linux/gstreamer1.0-rusoto/0.6.0-r0/build/target/release/build/num-traits-399d85941461afdf/build-script-build` (exit status: 101) | --- stderr | warning: target json file contains unused fields: has-elf-tls | | warning: target json file contains unused fields: has-elf-tls | | error[E0463]: can't find crate for `std` | | | = note: the `aarch64-oe-linux` target may not be installed | = help: consider downloading the target with `rustup target add aarch64-oe-linux` | | error: aborting due to previous error | | For more information about this error, try `rustc --explain E0463`. | warning: target json file contains unused fields: has-elf-tls | | warning: target json file contains unused fields: has-elf-tls | | error[E0463]: can't find crate for `core` | | | = note: the `aarch64-oe-linux` target may not be installed | = help: consider downloading the target with `rustup target add aarch64-oe-linux` | | error[E0463]: can't find crate for `compiler_builtins` | | error: aborting due to 2 previous errors | | For more information about this error, try `rustc --explain E0463`. | warning: autocfg could not probe for `std` | warning: target json file contains unused fields: has-elf-tls | | warning: target json file contains unused fields: has-elf-tls | | error[E0463]: can't find crate for `std` | | | = note: the `aarch64-oe-linux` target may not be installed | = help: consider downloading the target with `rustup target add aarch64-oe-linux` | | error: aborting due to previous error | | For more information about this error, try `rustc --explain E0463`. | thread 'main' panicked at 'i128 support was not detected!', /home/brgl/workspace/veki-kirkstone/build/tmp-glibc/work/armv8a-oe-linux/gstreamer1.0-rusoto/0.6.0-r0/cargo_home/bitbake/num-traits-0.2.12/build.rs:10:9 | stack backtrace: | 0: std::panicking::begin_panic | at /home/brgl/workspace/veki-kirkstone/build/tmp-glibc/work/x86_64-linux/rust-native/1.59.0-r0/rustc-1.59.0-src/library/std/src/panicking.rs:525:12 | 1: build_script_build::main | at ./build.rs:10:9 | 2: core::ops::function::FnOnce::call_once | at /home/brgl/workspace/veki-kirkstone/build/tmp-glibc/work/x86_64-linux/rust-native/1.59.0-r0/rustc-1.59.0-src/library/core/src/ops/function.rs:227:5 | note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. | warning: build failed, waiting for other jobs to finish... | Building [============> ] 134/254: num-integer(build), quote... | Building [============> ] 135/254: quote, http-body, typenum... | warning: `paste` (lib) generated 2 warnings (2 duplicates) | Building [============> ] 136/254: quote, http-body, typenum... | warning: `http-body` (lib) generated 2 warnings (2 duplicates) | Building [============> ] 137/254: quote, typenum, openssl-s... | warning: `iovec` (lib) generated 2 warnings (2 duplicates) | Building [============> ] 138/254: quote, typenum, openssl-s... | warning: `rustc_version` (lib) generated 2 warnings (1 duplicate) | Building [============> ] 139/254: quote, typenum, openssl-s... | warning: `quote` (lib) generated 2 warnings (2 duplicates) | Building [============> ] 140/254: typenum, openssl-sys(buil... | warning: `httparse` (lib) generated 2 warnings (2 duplicates) | Building [============> ] 141/254: typenum, openssl-sys(buil... | warning: `net2` (lib) generated 2 warnings (2 duplicates) | Building [============> ] 142/254: typenum, openssl-sys(buil... | warning: `openssl-sys` (build script) generated 2 warnings (2 duplicates) | Building [=============> ] 143/254: typenum | warning: `typenum` (lib) generated 2 warnings (2 duplicates) | error: build failed | WARNING: exit code 101 from a shell command. Not finding the 'std' crate looks like an environment problem but I'm not sure what's wrong. Any hints are appreciated. Thanks! Bart [1] https://pastebin.com/iCWpj8Ch
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#166464): https://lists.openembedded.org/g/openembedded-core/message/166464 Mute This Topic: https://lists.openembedded.org/mt/91495505/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
