[INFO] cloning repository https://github.com/utouto97/os1000-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/utouto97/os1000-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Futouto97%2Fos1000-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Futouto97%2Fos1000-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 43c13949e51238ffa88cb630f73523a28698a9a5 [INFO] checking utouto97/os1000-rs against try#2c4e58eac5a232e49065e517c1cf50b2715ccf85 for pr-140283 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Futouto97%2Fos1000-rs" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-0-tc2/source/.cargo/config.toml [INFO] removed /workspace/builds/worker-0-tc2/source/rust-toolchain [INFO] started tweaking git repo https://github.com/utouto97/os1000-rs [INFO] finished tweaking git repo https://github.com/utouto97/os1000-rs [INFO] tweaked toml for git repo https://github.com/utouto97/os1000-rs written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/utouto97/os1000-rs on toolchain 2c4e58eac5a232e49065e517c1cf50b2715ccf85 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2c4e58eac5a232e49065e517c1cf50b2715ccf85" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/utouto97/os1000-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2c4e58eac5a232e49065e517c1cf50b2715ccf85" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking utouto97/os1000-rs against try#2c4e58eac5a232e49065e517c1cf50b2715ccf85 for pr-140283 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Futouto97%2Fos1000-rs" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-0-tc2/source/.cargo/config.toml [INFO] removed /workspace/builds/worker-0-tc2/source/rust-toolchain [INFO] started tweaking git repo https://github.com/utouto97/os1000-rs [INFO] finished tweaking git repo https://github.com/utouto97/os1000-rs [INFO] tweaked toml for git repo https://github.com/utouto97/os1000-rs written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/utouto97/os1000-rs on toolchain 2c4e58eac5a232e49065e517c1cf50b2715ccf85 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2c4e58eac5a232e49065e517c1cf50b2715ccf85" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/utouto97/os1000-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2c4e58eac5a232e49065e517c1cf50b2715ccf85" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2c4e58eac5a232e49065e517c1cf50b2715ccf85" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] db5fe7099a645de93b5f4317d5cd6a2ffc559b396b5b0b7f9d25a0fd6fb01b1c [INFO] running `Command { std: "docker" "start" "-a" "db5fe7099a645de93b5f4317d5cd6a2ffc559b396b5b0b7f9d25a0fd6fb01b1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "db5fe7099a645de93b5f4317d5cd6a2ffc559b396b5b0b7f9d25a0fd6fb01b1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db5fe7099a645de93b5f4317d5cd6a2ffc559b396b5b0b7f9d25a0fd6fb01b1c", kill_on_drop: false }` [INFO] [stdout] db5fe7099a645de93b5f4317d5cd6a2ffc559b396b5b0b7f9d25a0fd6fb01b1c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2c4e58eac5a232e49065e517c1cf50b2715ccf85" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7a30530d7fde60dd5d3a5d6ca19ba3a14d4df049300b0c02ba20dbf3e8f252cb [INFO] running `Command { std: "docker" "start" "-a" "7a30530d7fde60dd5d3a5d6ca19ba3a14d4df049300b0c02ba20dbf3e8f252cb", kill_on_drop: false }` [INFO] [stderr] Compiling os1000-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking common v0.1.0 (/opt/rustwide/workdir/common) [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/process.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | #[naked] [INFO] [stdout] | ^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 18 | #[unsafe(naked)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/process.rs:225:3 [INFO] [stdout] | [INFO] [stdout] 225 | #[naked] [INFO] [stdout] | ^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 225 | #[unsafe(naked)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/kernel.rs:81:3 [INFO] [stdout] | [INFO] [stdout] 81 | #[naked] [INFO] [stdout] | ^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 81 | #[unsafe(naked)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/kernel.rs:100:3 [INFO] [stdout] | [INFO] [stdout] 100 | #[naked] [INFO] [stdout] | ^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 100 | #[unsafe(naked)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unwinding panics are not supported without std [INFO] [stdout] | [INFO] [stdout] = help: using nightly cargo, use -Zbuild-std with panic="abort" to avoid unwinding [INFO] [stdout] = note: since the core library is usually precompiled with panic="unwind", rebuilding your crate with panic="abort" may not be enough to fix the problem [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/process.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | #[naked] [INFO] [stdout] | ^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 18 | #[unsafe(naked)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/process.rs:225:3 [INFO] [stdout] | [INFO] [stdout] 225 | #[naked] [INFO] [stdout] | ^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 225 | #[unsafe(naked)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/kernel.rs:81:3 [INFO] [stdout] | [INFO] [stdout] 81 | #[naked] [INFO] [stdout] | ^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 81 | #[unsafe(naked)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/kernel.rs:100:3 [INFO] [stdout] | [INFO] [stdout] 100 | #[naked] [INFO] [stdout] | ^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 100 | #[unsafe(naked)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid register `a0`: unknown register [INFO] [stdout] --> src/sbi.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | inout("a0") arg0 => error, inout("a1") arg1 => value, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid register `a1`: unknown register [INFO] [stdout] --> src/sbi.rs:22:36 [INFO] [stdout] | [INFO] [stdout] 22 | inout("a0") arg0 => error, inout("a1") arg1 => value, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid register `a2`: unknown register [INFO] [stdout] --> src/sbi.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | in("a2") arg2, in("a3") arg3, in("a4") arg4, in("a5") arg5, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid register `a3`: unknown register [INFO] [stdout] --> src/sbi.rs:23:24 [INFO] [stdout] | [INFO] [stdout] 23 | in("a2") arg2, in("a3") arg3, in("a4") arg4, in("a5") arg5, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid register `a4`: unknown register [INFO] [stdout] --> src/sbi.rs:23:39 [INFO] [stdout] | [INFO] [stdout] 23 | in("a2") arg2, in("a3") arg3, in("a4") arg4, in("a5") arg5, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid register `a5`: unknown register [INFO] [stdout] --> src/sbi.rs:23:54 [INFO] [stdout] | [INFO] [stdout] 23 | in("a2") arg2, in("a3") arg3, in("a4") arg4, in("a5") arg5, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid register `a6`: unknown register [INFO] [stdout] --> src/sbi.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | in("a6") fid, in("a7") eid [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid register `a7`: unknown register [INFO] [stdout] --> src/sbi.rs:24:23 [INFO] [stdout] | [INFO] [stdout] 24 | in("a6") fid, in("a7") eid [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `naked_functions` has been stable since 1.88.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/kernel.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(naked_functions)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `asm_const` has been stable since 1.82.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/kernel.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | #![feature(asm_const)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> src/kernel.rs:95:1 [INFO] [stdout] | [INFO] [stdout] 95 | / fn panic(info: &PanicInfo) -> ! { [INFO] [stdout] 96 | | println!("PANIC: {info}"); [INFO] [stdout] 97 | | loop {} [INFO] [stdout] 98 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: the lang item is first defined in crate `std` (which `test` depends on) [INFO] [stdout] = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/2c4e58eac5a232e49065e517c1cf50b2715ccf85/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-2bfe6d313f1a27d4.rlib [INFO] [stdout] = note: second definition in the local crate (`kernel`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stderr] error: could not compile `os1000-rs` (bin "kernel" test) due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0787]: the `asm!` macro is not allowed in naked functions [INFO] [stdout] --> src/process.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | / asm!( [INFO] [stdout] 22 | | "la a0, {sepc}", [INFO] [stdout] 23 | | "csrw sepc, a0", [INFO] [stdout] 24 | | "la a0, {sstatus}", [INFO] [stdout] ... | [INFO] [stdout] 29 | | options(noreturn) [INFO] [stdout] 30 | | ); [INFO] [stdout] | |_________^ consider using the `naked_asm!` macro instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> src/process.rs:205:29 [INFO] [stdout] | [INFO] [stdout] 205 | "csrw satp, {satp}", [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 208 | satp = in(reg) SATP_SV32 | (next_proc.page_table / PAGE_SIZE as u32), [INFO] [stdout] | ----------------------------------------------------- for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{0:e}` to have the register formatted as `eax` (for 32-bit values) [INFO] [stdout] = help: or use `{0:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] = note: `#[warn(asm_sub_register)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: the `asm!` macro is not allowed in naked functions [INFO] [stdout] --> src/process.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | / asm!( [INFO] [stdout] 230 | | "addi sp, sp, -13 * 4", [INFO] [stdout] 231 | | "sw ra, 0 * 4(sp)", [INFO] [stdout] 232 | | "sw s0, 1 * 4(sp)", [INFO] [stdout] ... | [INFO] [stdout] 261 | | options(noreturn), [INFO] [stdout] 262 | | ); [INFO] [stdout] | |_________^ consider using the `naked_asm!` macro instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: the `asm!` macro is not allowed in naked functions [INFO] [stdout] --> src/kernel.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | / asm!( [INFO] [stdout] 86 | | "la sp, {stack_top}", [INFO] [stdout] 87 | | "j kernel_main", [INFO] [stdout] 88 | | stack_top = sym __stack_top, [INFO] [stdout] 89 | | options(noreturn) [INFO] [stdout] 90 | | ); [INFO] [stdout] | |_________^ consider using the `naked_asm!` macro instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: the `asm!` macro is not allowed in naked functions [INFO] [stdout] --> src/kernel.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | / asm!( [INFO] [stdout] 105 | | "csrrw sp, sscratch, sp", [INFO] [stdout] 106 | | "addi sp, sp, -4 * 31", [INFO] [stdout] 107 | | "sw ra, 4 * 0(sp)", [INFO] [stdout] ... | [INFO] [stdout] 175 | | options(noreturn), [INFO] [stdout] 176 | | ); [INFO] [stdout] | |_________^ consider using the `naked_asm!` macro instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/memory.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 17 | static mut NEXT_PADDR: *mut u8 = unsafe { ptr::addr_of_mut!(__free_ram) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0787`. [INFO] [stdout] [INFO] [stderr] error: could not compile `os1000-rs` (bin "kernel") due to 17 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "7a30530d7fde60dd5d3a5d6ca19ba3a14d4df049300b0c02ba20dbf3e8f252cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a30530d7fde60dd5d3a5d6ca19ba3a14d4df049300b0c02ba20dbf3e8f252cb", kill_on_drop: false }` [INFO] [stdout] 7a30530d7fde60dd5d3a5d6ca19ba3a14d4df049300b0c02ba20dbf3e8f252cb