Thread (3 messages) 3 messages, 2 authors, 2021-10-27

Re: [OE-core] [PATCH] rust: Upgrade to 1.56.0

From: Martin Jansa <hidden>
Date: 2021-10-26 12:12:29

Looks like it was caused by rust-cross issues reported in:
https://lists.openembedded.org/g/openembedded-core/message/156516

Re-building libstd-rs in empty TMPDIR, just for qemuarm MACHINE without
using sstate worked.

On Tue, Oct 26, 2021 at 2:06 PM Martin Jansa via lists.openembedded.org
[off-list ref] wrote:
On Sat, Oct 23, 2021 at 8:52 AM Khem Raj [off-list ref] wrote:
quoted
This is latest major release, changes are here [1]

Forward port libstd-rs patches and refresh musl/rv64 port

[1] https://github.com/rust-lang/rust/releases/tag/1.56.0

Signed-off-by: Khem Raj <redacted>
Cc: Randy MacLeod <redacted>
Anyone seeing libstd-rs failing to build?

e.g. for raspberrypi4 it fails with:

| error: could not compile `core`
|
| Caused by:
|   process didn't exit successfully: `rustc --crate-name core
--edition=2018 library/core/src/lib.rs --error-format=json
--json=diagnostic-rendered-ansi,artifacts --crate-type lib
--emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C
metadata=1c41b1708b174d1e -C extra-filename=-1c41b1708b174d1e --out-dir
/OE/build/oe-core/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-oe-linux-gnueabi/libstd-rs/1.56.0-r0/build/arm-oe-linux-gnueabi/release/deps
--target arm-oe-linux-gnueabi -C
linker=/OE/build/oe-core/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-oe-linux-gnueabi/libstd-rs/1.56.0-r0/wrapper/target-rust-ccld
-L
dependency=/OE/build/oe-core/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-oe-linux-gnueabi/libstd-rs/1.56.0-r0/build/arm-oe-linux-gnueabi/release/deps
-L
dependency=/OE/build/oe-core/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-oe-linux-gnueabi/libstd-rs/1.56.0-r0/build/release/deps
-L
/OE/build/oe-core/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-oe-linux-gnueabi/libstd-rs/1.56.0-r0/recipe-sysroot/usr/lib/rust
--remap-path-prefix=/OE/build/oe-core/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-oe-linux-gnueabi/libstd-rs/1.56.0-r0=/usr/src/debug/libstd-rs/1.56.0-r0
-Cembed-bitcode=yes -L
/OE/build/oe-core/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-oe-linux-gnueabi/libstd-rs/1.56.0-r0/recipe-sysroot/usr/lib
-C link-arg=-Wl,-soname,libstd.so` (signal: 11, SIGSEGV: invalid memory
reference)
| warning: build failed, waiting for other jobs to finish...

with qemuarm it fails as well:
| error: could not compile `core`
|
| Caused by:
|   process didn't exit successfully: `rustc --crate-name core
--edition=2018 library/core/src/lib.rs --error-format=json
--json=diagnostic-rendered-ansi,artifacts --crate-type lib
--emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C
metadata=1c41b1708b174d1e -C extra-filename=-1c41b1708b174d1e --out-dir
/OE/build/oe-core/tmp-glibc/work/cortexa15t2hf-neon-oe-linux-gnueabi/libstd-rs/1.56.0-r0/build/arm-oe-linux-gnueabi/release/deps
--target arm-oe-linux-gnueabi -C
linker=/OE/build/oe-core/tmp-glibc/work/cortexa15t2hf-neon-oe-linux-gnueabi/libstd-rs/1.56.0-r0/wrapper/target-rust-ccld
-L
dependency=/OE/build/oe-core/tmp-glibc/work/cortexa15t2hf-neon-oe-linux-gnueabi/libstd-rs/1.56.0-r0/build/arm-oe-linux-gnueabi/release/deps
-L
dependency=/OE/build/oe-core/tmp-glibc/work/cortexa15t2hf-neon-oe-linux-gnueabi/libstd-rs/1.56.0-r0/build/release/deps
-L
/OE/build/oe-core/tmp-glibc/work/cortexa15t2hf-neon-oe-linux-gnueabi/libstd-rs/1.56.0-r0/recipe-sysroot/usr/lib/rust
--remap-path-prefix=/OE/build/oe-core/tmp-glibc/work/cortexa15t2hf-neon-oe-linux-gnueabi/libstd-rs/1.56.0-r0=/usr/src/debug/libstd-rs/1.56.0-r0
-Cembed-bitcode=yes -L
/OE/build/oe-core/tmp-glibc/work/cortexa15t2hf-neon-oe-linux-gnueabi/libstd-rs/1.56.0-r0/recipe-sysroot/usr/lib
-C link-arg=-Wl,-soname,libstd.so` (signal: 11, SIGSEGV: invalid memory
reference)
| warning: build failed, waiting for other jobs to finish...

Will try to downgrade to 1.55.0.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#157390):
https://lists.openembedded.org/g/openembedded-core/message/157390
Mute This Topic: https://lists.openembedded.org/mt/86531835/3617156
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
Martin.Jansa@gmail.com]
-=-=-=-=-=-=-=-=-=-=-=-
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help