[INFO] fetching crate rustsbi 0.2.0-alpha.3... [INFO] testing rustsbi-0.2.0-alpha.3 against try#ce59db7a1b1b012fb2793c4641c1bdecad7a128b for pr-85530 [INFO] extracting crate rustsbi 0.2.0-alpha.3 into /workspace/builds/worker-2/source [INFO] validating manifest of crates.io crate rustsbi 0.2.0-alpha.3 on toolchain ce59db7a1b1b012fb2793c4641c1bdecad7a128b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rustsbi 0.2.0-alpha.3 [INFO] finished tweaking crates.io crate rustsbi 0.2.0-alpha.3 [INFO] tweaked toml for crates.io crate rustsbi 0.2.0-alpha.3 written to /workspace/builds/worker-2/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded embedded-hal v1.0.0-alpha.4 [INFO] [stderr] Downloaded riscv-target v0.1.2 [INFO] [stderr] Downloaded riscv v0.6.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0cf026b731dab6632fff11be457ed2109e75de9f61319836eca1210723d01e91 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "0cf026b731dab6632fff11be457ed2109e75de9f61319836eca1210723d01e91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0cf026b731dab6632fff11be457ed2109e75de9f61319836eca1210723d01e91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0cf026b731dab6632fff11be457ed2109e75de9f61319836eca1210723d01e91", kill_on_drop: false }` [INFO] [stdout] 0cf026b731dab6632fff11be457ed2109e75de9f61319836eca1210723d01e91 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 88125b50df8a06ec699c38f0a63c97619d0876599cbb9b6e2a763b6ba6597cfb [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "88125b50df8a06ec699c38f0a63c97619d0876599cbb9b6e2a763b6ba6597cfb", kill_on_drop: false }` [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling bit_field v0.10.1 [INFO] [stderr] Compiling spin v0.7.1 [INFO] [stderr] Compiling embedded-hal v1.0.0-alpha.4 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling bare-metal v0.2.5 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling riscv-target v0.1.2 [INFO] [stderr] Compiling riscv v0.6.0 [INFO] [stderr] Compiling rustsbi v0.2.0-alpha.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 15.09s [INFO] running `Command { std: "docker" "inspect" "88125b50df8a06ec699c38f0a63c97619d0876599cbb9b6e2a763b6ba6597cfb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88125b50df8a06ec699c38f0a63c97619d0876599cbb9b6e2a763b6ba6597cfb", kill_on_drop: false }` [INFO] [stdout] 88125b50df8a06ec699c38f0a63c97619d0876599cbb9b6e2a763b6ba6597cfb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 01a152d375a7cf0ef55f529ca09a88fd92ccd8bfe7eb80a1823b0a7c2b406eb9 [INFO] running `Command { std: "docker" "start" "-a" "01a152d375a7cf0ef55f529ca09a88fd92ccd8bfe7eb80a1823b0a7c2b406eb9", kill_on_drop: false }` [INFO] [stderr] Compiling rustsbi v0.2.0-alpha.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.86s [INFO] running `Command { std: "docker" "inspect" "01a152d375a7cf0ef55f529ca09a88fd92ccd8bfe7eb80a1823b0a7c2b406eb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01a152d375a7cf0ef55f529ca09a88fd92ccd8bfe7eb80a1823b0a7c2b406eb9", kill_on_drop: false }` [INFO] [stdout] 01a152d375a7cf0ef55f529ca09a88fd92ccd8bfe7eb80a1823b0a7c2b406eb9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c884a96f3298b6e8e4e200d735141e81bd9a8f131712d2df368db2408dd7909b [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "c884a96f3298b6e8e4e200d735141e81bd9a8f131712d2df368db2408dd7909b", kill_on_drop: false }` [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stdout] running 0 tests [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rustsbi-b3c2919260d64200) [INFO] [stdout] [INFO] [stderr] Doc-tests rustsbi [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/lib.rs - (line 39) ... FAILED [INFO] [stdout] test src/privileged.rs - privileged::enter_privileged (line 19) ... FAILED [INFO] [stdout] test src/ecall.rs - ecall::handle_ecall (line 47) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 39) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `SbiRet` in this scope [INFO] [stdout] --> src/lib.rs:41:77 [INFO] [stdout] | [INFO] [stdout] 4 | fn sbi_call(extension: usize, function: usize, arg0: usize, arg1: usize) -> SbiRet { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rustsbi::SbiRet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SbiRet` in this scope [INFO] [stdout] --> src/lib.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 20 | SbiRet { error, value } [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rustsbi::SbiRet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EXTENSION_BASE` in this scope [INFO] [stdout] --> src/lib.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 25 | sbi_call(EXTENSION_BASE, FUNCTION_BASE_GET_SPEC_VERSION, 0, 0).value [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FUNCTION_BASE_GET_SPEC_VERSION` in this scope [INFO] [stdout] --> src/lib.rs:62:30 [INFO] [stdout] | [INFO] [stdout] 25 | sbi_call(EXTENSION_BASE, FUNCTION_BASE_GET_SPEC_VERSION, 0, 0).value [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/privileged.rs - privileged::enter_privileged (line 19) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mepc` [INFO] [stdout] --> src/privileged.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 4 | mepc::write(_s_mode_start as usize); [INFO] [stdout] | ^^^^ use of undeclared crate or module `mepc` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mstatus` [INFO] [stdout] --> src/privileged.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 5 | mstatus::set_mpp(MPP::Supervisor); [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `mstatus` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MPP` [INFO] [stdout] --> src/privileged.rs:22:22 [INFO] [stdout] | [INFO] [stdout] 5 | mstatus::set_mpp(MPP::Supervisor); [INFO] [stdout] | ^^^ use of undeclared type `MPP` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mhartid` [INFO] [stdout] --> src/privileged.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 6 | enter_privileged(mhartid::read(), dtb_pa); [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `mhartid` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `_s_mode_start` in this scope [INFO] [stdout] --> src/privileged.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 4 | mepc::write(_s_mode_start as usize); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `enter_privileged` in this scope [INFO] [stdout] --> src/privileged.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 6 | enter_privileged(mhartid::read(), dtb_pa); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use rustsbi::enter_privileged; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `dtb_pa` in this scope [INFO] [stdout] --> src/privileged.rs:23:39 [INFO] [stdout] | [INFO] [stdout] 6 | enter_privileged(mhartid::read(), dtb_pa); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/ecall.rs - ecall::handle_ecall (line 47) stdout ---- [INFO] [stdout] error: cannot find attribute `exception` in this scope [INFO] [stdout] --> src/ecall.rs:48:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[exception] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mcause` [INFO] [stdout] --> src/ecall.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 6 | if mcause::read().cause() == Trap::Exception(Exception::SupervisorEnvCall) { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `mcause` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Exception` [INFO] [stdout] --> src/ecall.rs:50:50 [INFO] [stdout] | [INFO] [stdout] 6 | if mcause::read().cause() == Trap::Exception(Exception::SupervisorEnvCall) { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Exception` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mepc` [INFO] [stdout] --> src/ecall.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 11 | mepc::write(mepc::read().wrapping_add(4)); [INFO] [stdout] | ^^^^ use of undeclared crate or module `mepc` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mepc` [INFO] [stdout] --> src/ecall.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 11 | mepc::write(mepc::read().wrapping_add(4)); [INFO] [stdout] | ^^^^ use of undeclared crate or module `mepc` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TrapFrame` in this scope [INFO] [stdout] --> src/ecall.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 5 | fn handle_exception(ctx: &mut TrapFrame) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Trap` [INFO] [stdout] --> src/ecall.rs:50:34 [INFO] [stdout] | [INFO] [stdout] 6 | if mcause::read().cause() == Trap::Exception(Exception::SupervisorEnvCall) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use riscv::register::mcause::Trap; [INFO] [stdout] | [INFO] [stdout] 3 | use riscv::register::scause::Trap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/ecall.rs - ecall::handle_ecall (line 47) [INFO] [stdout] src/lib.rs - (line 39) [INFO] [stdout] src/privileged.rs - privileged::enter_privileged (line 19) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.44s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "c884a96f3298b6e8e4e200d735141e81bd9a8f131712d2df368db2408dd7909b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c884a96f3298b6e8e4e200d735141e81bd9a8f131712d2df368db2408dd7909b", kill_on_drop: false }` [INFO] [stdout] c884a96f3298b6e8e4e200d735141e81bd9a8f131712d2df368db2408dd7909b