Created attachment 4985 [details] Rust 1.73 upgrade patch The Rust Oe-selftest fails after upgarding from Rust 1.70 to 1.73(including 1.71 and 1.72) versions. Steps to reproduce- 1. Clone poky sources 2. Apply rust-1.73.patch. 3. Add assert.patch for rust under meta/recipes-devtools/rust/files/ 4. Add "file://assert.patch;patchdir=${RUSTSRC} \" in meta/recipes-devtools/rust/rust-source.inc file 3. source oe-init-build-env & set SANITY_TESTED_DISTROS="" in local.conf 4. oe-selftest -r rust.RustSelfTestSystemEmulated.test_rust The failure log is At first, there's an assertion failure causing the failure- thread 'main' panicked at 'assertion failed: `(left == right)` left: `x86_64-unknown-linux-gnu`, right: `x86_64-poky-linux-gnu`: Cannot obtain compiler for non-native build triple at stage 0', compile.rs:1474:13 Build completed unsuccessfully in 0:04:38 This assertion check can be by-passed by the assert.patch file. After this, the build the oe-selftest proceeds untill it encounters other panics- thread 'main' panicked at src/tools/compiletest/src/common.rs:499:23: no entry found for key note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace and thread 'main' panicked at 'client.read_exact(&mut buf) failed with Connection reset by peer (os error 104)', src/tools/remote-test-client/src/main.rs:254:5 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace Build completed unsuccessfully in 0:07:57 Please find attached the Rust 1.73 upgrade patch and assert.patch files.
Created attachment 4986 [details] Assert.patch file to pass assertion check
Created attachment 4987 [details] Detailed summary log of failure
FYI, Yash raised the following help topics, but no useful response yet. https://users.rust-lang.org/t/does-rust-test-suite-supports-nightly-options-during-bootstrapping-in-rust/103108 https://users.rust-lang.org/t/unable-to-read-target-specs-when-rust-1-73-is-bootstrapped-in-yocto-poky/102959
Also, I had raised https://github.com/rust-lang/rust/issues/115642 but not much updates.
Following commits fixed the different issues faced in rust oe-selftest: https://git.yoctoproject.org/poky/commit/?id=357651377f79bf5c75a37a578d4aa23327477ffe https://git.yoctoproject.org/poky/commit/?id=0a066f7526557b0b4e8b2db316c207306899ab98 https://git.yoctoproject.org/poky/commit/?id=208b3bee789337f4ca90e693fbc2b53ba036662a https://git.yoctoproject.org/poky/commit/?id=ac7375e02f63b89fcfd8581bae29f4022c4e9668 https://git.yoctoproject.org/poky/commit/?id=30872876dc9e22c2da2020fbd1e4b6277905410c https://git.yoctoproject.org/poky/commit/?id=a6982bb6a4dd7130113bef145c48be490ccc069c https://git.yoctoproject.org/poky/commit/?id=bb630c3e29a816fdb6467952b1162adb2f60b593