* Rust recipe fails to build project on kirkstone but works on dunfell
@ 2022-06-02 8:23 Bartosz Golaszewski
2022-06-08 1:21 ` [OE-core] " Randy MacLeod
0 siblings, 1 reply; 4+ messages in thread
From: Bartosz Golaszewski @ 2022-06-02 8:23 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [OE-core] Rust recipe fails to build project on kirkstone but works on dunfell
2022-06-02 8:23 Rust recipe fails to build project on kirkstone but works on dunfell Bartosz Golaszewski
@ 2022-06-08 1:21 ` Randy MacLeod
2022-06-08 14:35 ` Bartosz Golaszewski
0 siblings, 1 reply; 4+ messages in thread
From: Randy MacLeod @ 2022-06-08 1:21 UTC (permalink / raw)
To: Bartosz Golaszewski,
Patches and discussions about the oe-core layer, Gowda, Naveen
On 2022-06-02 04:23, Bartosz Golaszewski wrote:
> 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.
This seems like something you would have checked but
have you tried compiling the exact same code when using
rust-1.59 installed using rustup outside of a bitbake environment?
>
> 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
Naveen or I will take a look at some point and at least let you know if
we can reproduce the error.
Can you try using the master branch to use rust_1.60 ?
I doubt it will help but it might be easy to check.
We might need you to report this a bug in bugzilla.yoctoproject.org
so please create an account if you don't have one already:
https://bugzilla.yoctoproject.org/createaccount.cgi
All for now,
../Randy
>
> -=-=-=-=-=-=-=-=-=-=-=-
> 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/3616765
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [randy.macleod@windriver.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
--
# Randy MacLeod
# Wind River Linux
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [OE-core] Rust recipe fails to build project on kirkstone but works on dunfell
2022-06-08 1:21 ` [OE-core] " Randy MacLeod
@ 2022-06-08 14:35 ` Bartosz Golaszewski
2022-06-08 14:53 ` Randy MacLeod
0 siblings, 1 reply; 4+ messages in thread
From: Bartosz Golaszewski @ 2022-06-08 14:35 UTC (permalink / raw)
To: Randy MacLeod
Cc: Patches and discussions about the oe-core layer, Gowda, Naveen
On Wed, Jun 8, 2022 at 3:21 AM Randy MacLeod
<randy.macleod@windriver.com> wrote:
>
[snip]
>
> Naveen or I will take a look at some point and at least let you know if
> we can reproduce the error.
> Can you try using the master branch to use rust_1.60 ?
> I doubt it will help but it might be easy to check.
>
Actually, the reason seems to be with outdated packages. I updated my
recipe to a newer version and hit a bunch of different issues but they
seem to be in cargo and not in oe-core (for reference:
https://github.com/rust-lang/cargo/pull/10730).
Bart
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [OE-core] Rust recipe fails to build project on kirkstone but works on dunfell
2022-06-08 14:35 ` Bartosz Golaszewski
@ 2022-06-08 14:53 ` Randy MacLeod
0 siblings, 0 replies; 4+ messages in thread
From: Randy MacLeod @ 2022-06-08 14:53 UTC (permalink / raw)
To: Bartosz Golaszewski
Cc: Patches and discussions about the oe-core layer, Gowda, Naveen
On 2022-06-08 10:35, Bartosz Golaszewski wrote:
> On Wed, Jun 8, 2022 at 3:21 AM Randy MacLeod
> <randy.macleod@windriver.com> wrote:
> [snip]
>
>> Naveen or I will take a look at some point and at least let you know if
>> we can reproduce the error.
>> Can you try using the master branch to use rust_1.60 ?
>> I doubt it will help but it might be easy to check.
>>
> Actually, the reason seems to be with outdated packages. I updated my
> recipe to a newer version and hit a bunch of different issues but they
> seem to be in cargo and not in oe-core (for reference:
> https://github.com/rust-lang/cargo/pull/10730).
Then, I'll conclude that this is now in your court and there's nothing
you need from rust/bitbake in oe-core.
Let me know if that's wrong.
../Randy
>
> Bart
--
# Randy MacLeod
# Wind River Linux
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-06-08 14:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-02 8:23 Rust recipe fails to build project on kirkstone but works on dunfell Bartosz Golaszewski
2022-06-08 1:21 ` [OE-core] " Randy MacLeod
2022-06-08 14:35 ` Bartosz Golaszewski
2022-06-08 14:53 ` Randy MacLeod
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.