[INFO] fetching crate rustsbi 0.0.2... [INFO] testing rustsbi-0.0.2 against master#5d5ff84130da0d74c6ece368dbe821d8f83fa526 for pr-79296 [INFO] extracting crate rustsbi 0.0.2 into /workspace/builds/worker-8/source [INFO] validating manifest of crates.io crate rustsbi 0.0.2 on toolchain 5d5ff84130da0d74c6ece368dbe821d8f83fa526 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate rustsbi 0.0.2 [INFO] finished tweaking crates.io crate rustsbi 0.0.2 [INFO] tweaked toml for crates.io crate rustsbi 0.0.2 written to /workspace/builds/worker-8/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "metadata" "--no-deps" "--format-version=1", 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] c806a26446a9047c2aae21bcf57242c987f2d1e20f8c76ceb3b70aaacf6dd628 [INFO] running `Command { std: "docker" "start" "-a" "c806a26446a9047c2aae21bcf57242c987f2d1e20f8c76ceb3b70aaacf6dd628", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c806a26446a9047c2aae21bcf57242c987f2d1e20f8c76ceb3b70aaacf6dd628", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c806a26446a9047c2aae21bcf57242c987f2d1e20f8c76ceb3b70aaacf6dd628", kill_on_drop: false }` [INFO] [stdout] c806a26446a9047c2aae21bcf57242c987f2d1e20f8c76ceb3b70aaacf6dd628 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c80d5a32a6d14eab6644114e159e4c5d474fcead546305c95af44f9ab9456aaf [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" "c80d5a32a6d14eab6644114e159e4c5d474fcead546305c95af44f9ab9456aaf", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling bit_field v0.10.1 [INFO] [stderr] Compiling nb v1.0.0 [INFO] [stderr] Compiling spin v0.6.0 [INFO] [stderr] Compiling bare-metal v0.2.5 [INFO] [stderr] Compiling embedded-hal v1.0.0-alpha.4 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling regex v1.4.2 [INFO] [stderr] Compiling riscv-target v0.1.2 [INFO] [stderr] Compiling riscv v0.6.0 [INFO] [stderr] Compiling rustsbi v0.0.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 14.03s [INFO] running `Command { std: "docker" "inspect" "c80d5a32a6d14eab6644114e159e4c5d474fcead546305c95af44f9ab9456aaf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c80d5a32a6d14eab6644114e159e4c5d474fcead546305c95af44f9ab9456aaf", kill_on_drop: false }` [INFO] [stdout] c80d5a32a6d14eab6644114e159e4c5d474fcead546305c95af44f9ab9456aaf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4e6f0fe1cc6e11a8d33d3f82991b0cfd0741db2bed1943efa530169f87e4d891 [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" "4e6f0fe1cc6e11a8d33d3f82991b0cfd0741db2bed1943efa530169f87e4d891", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] Compiling rustsbi v0.0.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.93s [INFO] running `Command { std: "docker" "inspect" "4e6f0fe1cc6e11a8d33d3f82991b0cfd0741db2bed1943efa530169f87e4d891", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e6f0fe1cc6e11a8d33d3f82991b0cfd0741db2bed1943efa530169f87e4d891", kill_on_drop: false }` [INFO] [stdout] 4e6f0fe1cc6e11a8d33d3f82991b0cfd0741db2bed1943efa530169f87e4d891 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1cf402fb71849c1605bbbf76d5c302da7303032a1b1d79679f916bec9aa45c24 [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" "1cf402fb71849c1605bbbf76d5c302da7303032a1b1d79679f916bec9aa45c24", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/rustsbi-e41025efa91a4352 [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] Doc-tests rustsbi [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/privileged.rs - privileged::enter_privileged (line 19) ... FAILED [INFO] [stdout] test src/ecall.rs - ecall::handle_ecall (line 41) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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 41) stdout ---- [INFO] [stdout] error: cannot find attribute `exception` in this scope [INFO] [stdout] --> src/ecall.rs:42: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:44: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:44: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:49: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:49: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:43: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:44: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 41) [INFO] [stdout] src/privileged.rs - privileged::enter_privileged (line 19) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "1cf402fb71849c1605bbbf76d5c302da7303032a1b1d79679f916bec9aa45c24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1cf402fb71849c1605bbbf76d5c302da7303032a1b1d79679f916bec9aa45c24", kill_on_drop: false }` [INFO] [stdout] 1cf402fb71849c1605bbbf76d5c302da7303032a1b1d79679f916bec9aa45c24