[INFO] fetching crate rustsbi 0.2.0-alpha.3... [INFO] testing rustsbi-0.2.0-alpha.3 against master#99e3aef02079e9c10583638520cd0c134dc3a01d for pr-85530 [INFO] extracting crate rustsbi 0.2.0-alpha.3 into /workspace/builds/worker-1/source [INFO] validating manifest of crates.io crate rustsbi 0.2.0-alpha.3 on toolchain 99e3aef02079e9c10583638520cd0c134dc3a01d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "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-1/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d2d06676cd72d5c5ee8f5e112c683080b10f8eb303f8a5fbf2aba85f4e65344e [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" "d2d06676cd72d5c5ee8f5e112c683080b10f8eb303f8a5fbf2aba85f4e65344e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d2d06676cd72d5c5ee8f5e112c683080b10f8eb303f8a5fbf2aba85f4e65344e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2d06676cd72d5c5ee8f5e112c683080b10f8eb303f8a5fbf2aba85f4e65344e", kill_on_drop: false }` [INFO] [stdout] d2d06676cd72d5c5ee8f5e112c683080b10f8eb303f8a5fbf2aba85f4e65344e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "build" "--frozen" "--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] 39035735c43752c74ffc42158c754a658fcb30dd37b1548596b93cc69907852b [INFO] running `Command { std: "docker" "start" "-a" "39035735c43752c74ffc42158c754a658fcb30dd37b1548596b93cc69907852b", kill_on_drop: false }` [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling spin v0.5.2 [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 lazy_static v1.4.0 [INFO] [stderr] Compiling riscv-target v0.1.2 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling riscv v0.6.0 [INFO] [stderr] Compiling bare-metal v0.2.5 [INFO] [stderr] Compiling rustsbi v0.2.0-alpha.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.92s [INFO] running `Command { std: "docker" "inspect" "39035735c43752c74ffc42158c754a658fcb30dd37b1548596b93cc69907852b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39035735c43752c74ffc42158c754a658fcb30dd37b1548596b93cc69907852b", kill_on_drop: false }` [INFO] [stdout] 39035735c43752c74ffc42158c754a658fcb30dd37b1548596b93cc69907852b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5dc2c1906e1d8d7c597d4b2da9cd8cf9040562349ceefdf6917ad9e5a21b359f [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" "5dc2c1906e1d8d7c597d4b2da9cd8cf9040562349ceefdf6917ad9e5a21b359f", 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.79s [INFO] running `Command { std: "docker" "inspect" "5dc2c1906e1d8d7c597d4b2da9cd8cf9040562349ceefdf6917ad9e5a21b359f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5dc2c1906e1d8d7c597d4b2da9cd8cf9040562349ceefdf6917ad9e5a21b359f", kill_on_drop: false }` [INFO] [stdout] 5dc2c1906e1d8d7c597d4b2da9cd8cf9040562349ceefdf6917ad9e5a21b359f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen", 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] 54cce34f8833df48845e3d7167a0941b631937f73448566cd8d119e09dc623af [INFO] running `Command { std: "docker" "start" "-a" "54cce34f8833df48845e3d7167a0941b631937f73448566cd8d119e09dc623af", kill_on_drop: false }` [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [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/privileged.rs - privileged::enter_privileged (line 19) ... FAILED [INFO] [stdout] test src/lib.rs - (line 39) ... FAILED [INFO] [stdout] test src/ecall.rs - ecall::handle_ecall (line 47) ... 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/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/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.47s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "54cce34f8833df48845e3d7167a0941b631937f73448566cd8d119e09dc623af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54cce34f8833df48845e3d7167a0941b631937f73448566cd8d119e09dc623af", kill_on_drop: false }` [INFO] [stdout] 54cce34f8833df48845e3d7167a0941b631937f73448566cd8d119e09dc623af