[INFO] cloning repository https://github.com/duskmoon314/rv-csr-test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/duskmoon314/rv-csr-test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fduskmoon314%2Frv-csr-test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fduskmoon314%2Frv-csr-test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f05fcd3c6ef64fc0c707043dc7b37d01523db999 [INFO] testing duskmoon314/rv-csr-test against master#a77da2d454e6caa227a85b16410b95f93495e7e0 for pr-91031 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fduskmoon314%2Frv-csr-test" "/workspace/builds/worker-116/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-116/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/duskmoon314/rv-csr-test on toolchain a77da2d454e6caa227a85b16410b95f93495e7e0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-116/source/.cargo/config.toml [INFO] removed /workspace/builds/worker-116/source/rust-toolchain [INFO] started tweaking git repo https://github.com/duskmoon314/rv-csr-test [INFO] finished tweaking git repo https://github.com/duskmoon314/rv-csr-test [INFO] tweaked toml for git repo https://github.com/duskmoon314/rv-csr-test written to /workspace/builds/worker-116/source/Cargo.toml [INFO] crate git repo https://github.com/duskmoon314/rv-csr-test already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-116/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-116/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 497485767c7a74347c907ea071e14c063ca6c5eaec2043ac49f1091f2bcedce0 [INFO] running `Command { std: "docker" "start" "-a" "497485767c7a74347c907ea071e14c063ca6c5eaec2043ac49f1091f2bcedce0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "497485767c7a74347c907ea071e14c063ca6c5eaec2043ac49f1091f2bcedce0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "497485767c7a74347c907ea071e14c063ca6c5eaec2043ac49f1091f2bcedce0", kill_on_drop: false }` [INFO] [stdout] 497485767c7a74347c907ea071e14c063ca6c5eaec2043ac49f1091f2bcedce0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-116/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-116/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 91a4e3b1b3e597923f28e8e5c229bccbfd5e6bd9ca830d250b3d9e19617d1b08 [INFO] running `Command { std: "docker" "start" "-a" "91a4e3b1b3e597923f28e8e5c229bccbfd5e6bd9ca830d250b3d9e19617d1b08", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling vcell v0.1.3 [INFO] [stderr] Compiling bit_field v0.10.1 [INFO] [stderr] Compiling nb v1.0.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling bare-metal v0.2.5 [INFO] [stderr] Compiling embedded-hal v1.0.0-alpha.4 [INFO] [stderr] Compiling volatile-register v0.2.1 [INFO] [stderr] Compiling rv-plic v0.4.0 (https://github.com/duskmoon314/rv-plic#e94d511e) [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling riscv-target v0.1.2 [INFO] [stderr] Compiling riscv v0.6.0 (https://github.com/duskmoon314/riscv.git?branch=extN#f31def9e) [INFO] [stderr] Compiling rv-csr-test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved imports `serial_config`, `crate::user_uart::get_base_addr_from_irq`, `crate::user_uart::PollingSerial` [INFO] [stdout] --> src/main.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | user_uart::{get_base_addr_from_irq, PollingSerial}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/user_uart.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use serial_config::*; [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared crate or module `serial_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SerialHardware` [INFO] [stdout] --> src/user_uart.rs:57:23 [INFO] [stdout] | [INFO] [stdout] 57 | hardware: SerialHardware::new(base_address), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `SerialHardware` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PLIC_BASE` in this scope [INFO] [stdout] --> src/plic.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | pub type Plic = PLIC; [INFO] [stdout] | - ^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PLIC_PRIORITY_BIT` in this scope [INFO] [stdout] --> src/plic.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | pub type Plic = PLIC; [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SERIAL_BASE_ADDRESS` in this scope [INFO] [stdout] --> src/user_uart.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | SERIAL_BASE_ADDRESS + irq_to_serial_id(irq) * SERIAL_ADDRESS_STRIDE [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `irq_to_serial_id` in this scope [INFO] [stdout] --> src/user_uart.rs:44:27 [INFO] [stdout] | [INFO] [stdout] 44 | SERIAL_BASE_ADDRESS + irq_to_serial_id(irq) * SERIAL_ADDRESS_STRIDE [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SERIAL_ADDRESS_STRIDE` in this scope [INFO] [stdout] --> src/user_uart.rs:44:51 [INFO] [stdout] | [INFO] [stdout] 44 | SERIAL_BASE_ADDRESS + irq_to_serial_id(irq) * SERIAL_ADDRESS_STRIDE [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SerialHardware` in this scope [INFO] [stdout] --> src/user_uart.rs:48:19 [INFO] [stdout] | [INFO] [stdout] 48 | pub hardware: SerialHardware, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `uart1` in this scope [INFO] [stdout] --> src/main.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 169 | uart1.hardware_init(BAUD_RATE); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `uart2` in this scope [INFO] [stdout] --> src/main.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 170 | uart2.hardware_init(BAUD_RATE); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CLOCK_FREQ` in this scope [INFO] [stdout] --> src/main.rs:172:19 [INFO] [stdout] | [INFO] [stdout] 172 | set_timer(t + CLOCK_FREQ); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `uart1` in this scope [INFO] [stdout] --> src/main.rs:175:21 [INFO] [stdout] | [INFO] [stdout] 175 | let _ = uart1.try_write(0x55); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `uart2` in this scope [INFO] [stdout] --> src/main.rs:176:21 [INFO] [stdout] | [INFO] [stdout] 176 | let _ = uart2.try_write(0x55); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `uart1` in this scope [INFO] [stdout] --> src/main.rs:179:21 [INFO] [stdout] | [INFO] [stdout] 179 | let _ = uart1.try_read(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `uart2` in this scope [INFO] [stdout] --> src/main.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 180 | let _ = uart2.try_read(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `uart1` in this scope [INFO] [stdout] --> src/main.rs:184:33 [INFO] [stdout] | [INFO] [stdout] 184 | info!("uart1 rx {}, tx {}", uart1.rx_count, uart1.tx_count); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `uart1` in this scope [INFO] [stdout] --> src/main.rs:184:49 [INFO] [stdout] | [INFO] [stdout] 184 | info!("uart1 rx {}, tx {}", uart1.rx_count, uart1.tx_count); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `uart2` in this scope [INFO] [stdout] --> src/main.rs:185:33 [INFO] [stdout] | [INFO] [stdout] 185 | info!("uart2 rx {}, tx {}", uart2.rx_count, uart2.tx_count); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `uart2` in this scope [INFO] [stdout] --> src/main.rs:185:49 [INFO] [stdout] | [INFO] [stdout] 185 | info!("uart2 rx {}, tx {}", uart2.rx_count, uart2.tx_count); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `llvm_asm`: will be removed from the compiler, use asm! instead [INFO] [stdout] --> src/sbi.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | llvm_asm!("ecall" [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: language item required, but not found: `eh_personality` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0747]: unresolved item provided when a constant was expected [INFO] [stdout] --> src/plic.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | pub type Plic = PLIC; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this generic argument was intended as a const parameter, surround it with braces [INFO] [stdout] | [INFO] [stdout] 9 | pub type Plic = PLIC<{ PLIC_BASE }, PLIC_PRIORITY_BIT>; [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0747. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rv-csr-test` due to 22 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "91a4e3b1b3e597923f28e8e5c229bccbfd5e6bd9ca830d250b3d9e19617d1b08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91a4e3b1b3e597923f28e8e5c229bccbfd5e6bd9ca830d250b3d9e19617d1b08", kill_on_drop: false }` [INFO] [stdout] 91a4e3b1b3e597923f28e8e5c229bccbfd5e6bd9ca830d250b3d9e19617d1b08