On Wed, Apr 3, 2024 at 05:51 PM, Alex Kiernan wrote: > > Hi Sundeep (or anyone else with insight on this!) > > How do you go about debugging rust oe-selftest failures? I've bumped > everything up to 1.77 ( https://github.com/akiernan/poky ) but > oe-selftest fails for reasons that aren't immediately obvious to me... > > https://gist.github.com/akiernan/6cc6131c1ec3af866098a9318679cf1b > > Any clues? > > -- > Alex Kiernan
Hi Alex, I faced the same errors when I was working on to upgrade rust from 1.75 to 1.76. I discussed it with rust upstream here, https://github.com/rust-lang/rust/issues/122075 and the following change solves those failures, https://github.com/rust-lang/rust/issues/122075#issuecomment-1985153524 PR- https://github.com/rust-lang/rust/pull/122205/commits/5aece7fad06baaa745784d118db862b3e3ccf7f8 After this change was backported to poky, the rust build was successful but it was seen that not all the tests are executed. While discussing upstream, it was known that removing the *--doc* option from *python3 src/bootstrap/bootstrap.py test --exclude<some excluded test cases list> --doc --no-fail-fast --bless --target x86_64-poky-linux-gnu* cmd in oeqa/selftest/cases/rust.py file execute the other tests also. But, while doing so another set of failures are observed as mentioned in https://github.com/rust-lang/rust/issues/122285 Complete log using --doc option- https://gist.github.com/Yashinde145/7db6bd4a064021bf756b0c0dd6c8777c Complete log without using --doc option- https://gist.github.com/Yashinde145/036a934f0523307859f7c855b83ecfd6 ( https://gist.github.com/Yashinde145/036a934f0523307859f7c855b83ecfd6 ) (this file is truncated in gist due to large size, please see Complete raw file ( https://gist.githubusercontent.com/Yashinde145/036a934f0523307859f7c855b83ecfd6/raw/f7bc4558eed66a10b65bb915f292ae166d3bb52a/log_1_76_without_doc_flag.txt ) ) I am not very familiar to these failures but trying to understand them. > > failures: > > ---- markdown::term::tests::test_output stdout ---- > > > > thread 'markdown::term::tests::test_output' panicked at > compiler/rustc_errors/src/markdown/tests/term.rs:75:55: > > > > called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, > message: "No such file or directory" } > > > > stack backtrace: > > > > 0: rust_begin_unwind > > > > 1: core::panicking::panic_fmt > > > > 2: core::result::unwrap_failed > > > > 3: rustc_errors::markdown::term::tests::test_output > > > > 4: <rustc_errors::markdown::term::tests::test_output::{closure#0} as > core::ops::function::FnOnce<()>>::call_once > > > > note: Some details are omitted, run with `RUST_BACKTRACE=full` for a > verbose backtrace. > > > > Running unittests src/lib.rs > (/home/poky/build-st/tmp/work/core2-64-poky-linux/rust/1.76.0/rustc-1.76.0-src/build/bootstrap/debug/deps/bootstrap-214111e112557758) > > > > > uploaded > "/home/poky/build-st/tmp/work/core2-64-poky-linux/rust/1.76.0/rustc-1.76.0-src/build/bootstrap/debug/deps/bootstrap-214111e112557758", > waiting for result > > > > thread 'main' panicked at src/tools/remote-test-client/src/main.rs:310:9: > > > > client.read_exact(&mut header) failed with failed to fill whole buffer > > > > stack backtrace: > > > > 0: rust_begin_unwind > > > > at > /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5 > > > > > 1: core::panicking::panic_fmt > > > > at > /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14 > > > > > 2: remote_test_client::main > > > > note: Some details are omitted, run with `RUST_BACKTRACE=full` for a > verbose backtrace. > > > > error: test failed, to rerun pass `--lib` > > > > error: 1 target failed: > > > > `--lib` > > > > finished in 16.730 seconds > > Regards, Yash
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#197951): https://lists.openembedded.org/g/openembedded-core/message/197951 Mute This Topic: https://lists.openembedded.org/mt/105307188/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
