[INFO] cloning repository https://github.com/yangbeom/kerners [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yangbeom/kerners" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyangbeom%2Fkerners", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyangbeom%2Fkerners'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a21c0f95d9a39b86d01c5b20bbc7377aa645f533 [INFO] checking yangbeom/kerners against try#70daa2c0d8eed7066b07966f3c0b0b8622bff4e4 for pr-151539 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyangbeom%2Fkerners" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-4-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/yangbeom/kerners [INFO] finished tweaking git repo https://github.com/yangbeom/kerners [INFO] tweaked toml for git repo https://github.com/yangbeom/kerners written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/yangbeom/kerners on toolchain 70daa2c0d8eed7066b07966f3c0b0b8622bff4e4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+70daa2c0d8eed7066b07966f3c0b0b8622bff4e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/yangbeom/kerners 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" "+70daa2c0d8eed7066b07966f3c0b0b8622bff4e4" "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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+70daa2c0d8eed7066b07966f3c0b0b8622bff4e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5d3ce956cca0de1e2d885dd0bfa47411980e2147c828ddb3c7b85203d1347acb [INFO] running `Command { std: "docker" "start" "-a" "5d3ce956cca0de1e2d885dd0bfa47411980e2147c828ddb3c7b85203d1347acb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5d3ce956cca0de1e2d885dd0bfa47411980e2147c828ddb3c7b85203d1347acb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d3ce956cca0de1e2d885dd0bfa47411980e2147c828ddb3c7b85203d1347acb", kill_on_drop: false }` [INFO] [stdout] 5d3ce956cca0de1e2d885dd0bfa47411980e2147c828ddb3c7b85203d1347acb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+70daa2c0d8eed7066b07966f3c0b0b8622bff4e4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d24f002543fa2b378f0add29d5b936d48fbc601095210ee67015a2095a9da951 [INFO] running `Command { std: "docker" "start" "-a" "d24f002543fa2b378f0add29d5b936d48fbc601095210ee67015a2095a9da951", kill_on_drop: false }` [INFO] [stderr] Compiling find-msvc-tools v0.1.6 [INFO] [stderr] Checking spinning_top v0.2.5 [INFO] [stderr] Checking linked_list_allocator v0.10.5 [INFO] [stderr] Compiling cc v1.2.51 [INFO] [stderr] Compiling kerners v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> build.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> build.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::boards::CurrentBoard` [INFO] [stdout] --> src/drivers/probe.rs:5:40 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::boards::{self, BoardConfig, CurrentBoard}; [INFO] [stdout] | ^^^^^^^^^^^^ no `CurrentBoard` in `boards` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/boards/mod.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 54 | #[cfg(target_arch = "aarch64")] [INFO] [stdout] | ----------------------- the item is gated behind the `aarch64` feature [INFO] [stdout] 55 | pub type CurrentBoard = qemu_virt_aarch64::QemuVirtAarch64; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/boards/mod.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 57 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 58 | pub type CurrentBoard = qemu_virt_riscv64::QemuVirtRiscv64; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `super::context::Context` [INFO] [stdout] --> src/proc/scheduler.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | use super::context::{Context, context_switch}; [INFO] [stdout] | ^^^^^^^ no `Context` in `proc::context` [INFO] [stdout] | [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] core::task::Context [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/context.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 17 | #[cfg(target_arch = "aarch64")] [INFO] [stdout] | ----------------------- the item is gated behind the `aarch64` feature [INFO] [stdout] ... [INFO] [stdout] 20 | pub struct Context { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/context.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 69 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] ... [INFO] [stdout] 72 | pub struct Context { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `context::Context` [INFO] [stdout] --> src/proc/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use context::Context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ no `Context` in `proc::context` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/context.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 17 | #[cfg(target_arch = "aarch64")] [INFO] [stdout] | ----------------------- the item is gated behind the `aarch64` feature [INFO] [stdout] ... [INFO] [stdout] 20 | pub struct Context { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/context.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 69 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] ... [INFO] [stdout] 72 | pub struct Context { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: consider importing this struct instead [INFO] [stdout] | [INFO] [stdout] 18 - use context::Context; [INFO] [stdout] 18 + use core::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::boards::CurrentBoard` [INFO] [stdout] --> src/drivers/probe.rs:5:40 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::boards::{self, BoardConfig, CurrentBoard}; [INFO] [stdout] | ^^^^^^^^^^^^ no `CurrentBoard` in `boards` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/boards/mod.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 54 | #[cfg(target_arch = "aarch64")] [INFO] [stdout] | ----------------------- the item is gated behind the `aarch64` feature [INFO] [stdout] 55 | pub type CurrentBoard = qemu_virt_aarch64::QemuVirtAarch64; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/boards/mod.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 57 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 58 | pub type CurrentBoard = qemu_virt_riscv64::QemuVirtRiscv64; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `super::context::Context` [INFO] [stdout] --> src/proc/scheduler.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | use super::context::{Context, context_switch}; [INFO] [stdout] | ^^^^^^^ no `Context` in `proc::context` [INFO] [stdout] | [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] core::task::Context [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/context.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 17 | #[cfg(target_arch = "aarch64")] [INFO] [stdout] | ----------------------- the item is gated behind the `aarch64` feature [INFO] [stdout] ... [INFO] [stdout] 20 | pub struct Context { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/context.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 69 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] ... [INFO] [stdout] 72 | pub struct Context { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `context::Context` [INFO] [stdout] --> src/proc/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use context::Context; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ no `Context` in `proc::context` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/context.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 17 | #[cfg(target_arch = "aarch64")] [INFO] [stdout] | ----------------------- the item is gated behind the `aarch64` feature [INFO] [stdout] ... [INFO] [stdout] 20 | pub struct Context { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/context.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 69 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] ... [INFO] [stdout] 72 | pub struct Context { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: consider importing this struct instead [INFO] [stdout] | [INFO] [stdout] 18 - use context::Context; [INFO] [stdout] 18 + use core::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/syscall/fs.rs:107:41 [INFO] [stdout] | [INFO] [stdout] 107 | if let Some(c) = crate::arch::uart::getc() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `core::arch` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | #[cfg(target_arch = "aarch64")] [INFO] [stdout] | ----------------------- the item is gated behind the `aarch64` feature [INFO] [stdout] 27 | #[path = "arch/aarch64/mod.rs"] [INFO] [stdout] 28 | mod arch; [INFO] [stdout] | ^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 30 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 31 | #[path = "arch/riscv64/mod.rs"] [INFO] [stdout] 32 | mod arch; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `arch` [INFO] [stdout] --> src/main.rs:371:31 [INFO] [stdout] | [INFO] [stdout] 371 | if let Some(ch) = arch::uart::getc() { [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `arch` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `arch`, use `cargo add arch` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `arch` [INFO] [stdout] --> src/main.rs:446:29 [INFO] [stdout] | [INFO] [stdout] 446 | let ticks = arch::timer::ticks(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `arch` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `arch`, use `cargo add arch` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_cpu_id` in module `crate::proc::percpu` [INFO] [stdout] --> src/log/mod.rs:148:39 [INFO] [stdout] | [INFO] [stdout] 148 | let cpu_id = crate::proc::percpu::get_cpu_id() as usize; [INFO] [stdout] | ^^^^^^^^^^ not found in `crate::proc::percpu` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/percpu.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 124 | #[cfg(target_arch = "aarch64")] [INFO] [stdout] | ----------------------- the item is gated behind the `aarch64` feature [INFO] [stdout] 125 | pub fn get_cpu_id() -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/percpu.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 135 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 136 | pub fn get_cpu_id() -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `KERNEL_START` in this scope [INFO] [stdout] --> src/mm/mod.rs:112:23 [INFO] [stdout] | [INFO] [stdout] 112 | kernel_start: KERNEL_START, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PLT_ENTRY_SIZE` in this scope [INFO] [stdout] --> src/module/loader.rs:32:44 [INFO] [stdout] | [INFO] [stdout] 32 | const MAX_PLT_ENTRIES: usize = PAGE_SIZE / PLT_ENTRY_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PLT_ENTRY_SIZE` in this scope [INFO] [stdout] --> src/module/loader.rs:66:49 [INFO] [stdout] | [INFO] [stdout] 66 | let plt_addr = self.base + self.count * PLT_ENTRY_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Context` in this scope [INFO] [stdout] --> src/proc/context.rs:124:41 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn context_switch(old_ctx: *mut Context, new_ctx: *const Context); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use core::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Context` in this scope [INFO] [stdout] --> src/proc/context.rs:124:66 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn context_switch(old_ctx: *mut Context, new_ctx: *const Context); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use core::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_cpu_id` in module `percpu` [INFO] [stdout] --> src/proc/scheduler.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | let cpu_id = percpu::get_cpu_id(); [INFO] [stdout] | ^^^^^^^^^^ not found in `percpu` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/percpu.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 124 | #[cfg(target_arch = "aarch64")] [INFO] [stdout] | ----------------------- the item is gated behind the `aarch64` feature [INFO] [stdout] 125 | pub fn get_cpu_id() -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/percpu.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 135 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 136 | pub fn get_cpu_id() -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `simple_user_program` in this scope [INFO] [stdout] --> src/proc/user.rs:171:17 [INFO] [stdout] | [INFO] [stdout] 171 | let entry = simple_user_program as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_cpu_id` in module `percpu` [INFO] [stdout] --> src/proc/mod.rs:176:26 [INFO] [stdout] | [INFO] [stdout] 176 | let my_cpu = percpu::get_cpu_id(); [INFO] [stdout] | ^^^^^^^^^^ not found in `percpu` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/percpu.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 124 | #[cfg(target_arch = "aarch64")] [INFO] [stdout] | ----------------------- the item is gated behind the `aarch64` feature [INFO] [stdout] 125 | pub fn get_cpu_id() -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/percpu.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 135 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 136 | pub fn get_cpu_id() -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_cpu_id` in module `proc::percpu` [INFO] [stdout] --> src/main.rs:492:44 [INFO] [stdout] | [INFO] [stdout] 492 | let my_cpu = proc::percpu::get_cpu_id(); [INFO] [stdout] | ^^^^^^^^^^ not found in `proc::percpu` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/percpu.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 124 | #[cfg(target_arch = "aarch64")] [INFO] [stdout] | ----------------------- the item is gated behind the `aarch64` feature [INFO] [stdout] 125 | pub fn get_cpu_id() -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/percpu.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 135 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 136 | pub fn get_cpu_id() -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::boxed::Box` [INFO] [stdout] --> src/block/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::boxed::Box` [INFO] [stdout] --> src/block/virtio_blk.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use alloc::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::vec` [INFO] [stdout] --> src/block/virtio_blk.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use alloc::vec; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/block/virtio_blk.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::virtio::mmio::{self, VirtIOMMIO}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BoardPlatformOverrides` [INFO] [stdout] --> src/boards/mod.rs:26:41 [INFO] [stdout] | [INFO] [stdout] 26 | pub use board_module::{BoardModuleInfo, BoardPlatformOverrides}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BoardConfig` [INFO] [stdout] --> src/drivers/probe.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::boards::{self, BoardConfig, CurrentBoard}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::boxed::Box` [INFO] [stdout] --> src/drivers/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use alloc::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::string::String` [INFO] [stdout] --> src/drivers/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::boxed::Box` [INFO] [stdout] --> src/fs/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use alloc::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::boxed::Box` [INFO] [stdout] --> src/fs/ramfs/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::collections::BTreeMap` [INFO] [stdout] --> src/fs/ramfs/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use alloc::collections::BTreeMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::boxed::Box` [INFO] [stdout] --> src/fs/devfs/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use alloc::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::boxed::Box` [INFO] [stdout] --> src/fs/fd.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BoundedMessageQueue`, `MessageQueue`, and `Message` [INFO] [stdout] --> src/ipc/mod.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | pub use message_queue::{MessageQueue, BoundedMessageQueue, Message}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Elf64Error` and `Elf64` [INFO] [stdout] --> src/module/mod.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | pub use elf::{Elf64, Elf64Error}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LoadedModule`, `ModuleError`, `ModuleInfo`, `ModuleRef`, `ModuleState`, and `Module` [INFO] [stdout] --> src/module/mod.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | pub use loader::{LoadedModule, Module, ModuleError, ModuleInfo, ModuleLoader, ModuleRef, ModuleState}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KernelSymbol`, `lookup_symbol`, and `register_symbol` [INFO] [stdout] --> src/module/mod.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | pub use symbol::{lookup_symbol, register_symbol, KernelSymbol}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SpinlockGuard` [INFO] [stdout] --> src/sync/mod.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | pub use spinlock::{Spinlock, SpinlockGuard}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MutexGuard` [INFO] [stdout] --> src/sync/mod.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | pub use mutex::{Mutex, MutexGuard}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ReadGuard` and `WriteGuard` [INFO] [stdout] --> src/sync/mod.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | pub use rwlock::{RwLock, ReadGuard, WriteGuard}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `seqlock::SeqLock` [INFO] [stdout] --> src/sync/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub use seqlock::SeqLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RcuCell` and `RcuReadGuard` [INFO] [stdout] --> src/sync/mod.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | pub use rcu::{RcuCell, RcuReadGuard}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::vec::Vec` [INFO] [stdout] --> src/virtio/queue.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::sync::Arc` [INFO] [stdout] --> src/main.rs:1057:9 [INFO] [stdout] | [INFO] [stdout] 1057 | use alloc::sync::Arc; [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[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/syscall/fs.rs:107:41 [INFO] [stdout] | [INFO] [stdout] 107 | if let Some(c) = crate::arch::uart::getc() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `core::arch` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | #[cfg(target_arch = "aarch64")] [INFO] [stdout] | ----------------------- the item is gated behind the `aarch64` feature [INFO] [stdout] 27 | #[path = "arch/aarch64/mod.rs"] [INFO] [stdout] 28 | mod arch; [INFO] [stdout] | ^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 30 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 31 | #[path = "arch/riscv64/mod.rs"] [INFO] [stdout] 32 | mod arch; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `arch` [INFO] [stdout] --> src/main.rs:371:31 [INFO] [stdout] | [INFO] [stdout] 371 | if let Some(ch) = arch::uart::getc() { [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `arch` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `arch`, use `cargo add arch` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `arch` [INFO] [stdout] --> src/main.rs:446:29 [INFO] [stdout] | [INFO] [stdout] 446 | let ticks = arch::timer::ticks(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `arch` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `arch`, use `cargo add arch` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_cpu_id` in module `crate::proc::percpu` [INFO] [stdout] --> src/log/mod.rs:148:39 [INFO] [stdout] | [INFO] [stdout] 148 | let cpu_id = crate::proc::percpu::get_cpu_id() as usize; [INFO] [stdout] | ^^^^^^^^^^ not found in `crate::proc::percpu` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/percpu.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 124 | #[cfg(target_arch = "aarch64")] [INFO] [stdout] | ----------------------- the item is gated behind the `aarch64` feature [INFO] [stdout] 125 | pub fn get_cpu_id() -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/percpu.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 135 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 136 | pub fn get_cpu_id() -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `KERNEL_START` in this scope [INFO] [stdout] --> src/mm/mod.rs:112:23 [INFO] [stdout] | [INFO] [stdout] 112 | kernel_start: KERNEL_START, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PLT_ENTRY_SIZE` in this scope [INFO] [stdout] --> src/module/loader.rs:32:44 [INFO] [stdout] | [INFO] [stdout] 32 | const MAX_PLT_ENTRIES: usize = PAGE_SIZE / PLT_ENTRY_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PLT_ENTRY_SIZE` in this scope [INFO] [stdout] --> src/module/loader.rs:66:49 [INFO] [stdout] | [INFO] [stdout] 66 | let plt_addr = self.base + self.count * PLT_ENTRY_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Context` in this scope [INFO] [stdout] --> src/proc/context.rs:124:41 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn context_switch(old_ctx: *mut Context, new_ctx: *const Context); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use core::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Context` in this scope [INFO] [stdout] --> src/proc/context.rs:124:66 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn context_switch(old_ctx: *mut Context, new_ctx: *const Context); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use core::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_cpu_id` in module `percpu` [INFO] [stdout] --> src/proc/scheduler.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | let cpu_id = percpu::get_cpu_id(); [INFO] [stdout] | ^^^^^^^^^^ not found in `percpu` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/percpu.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 124 | #[cfg(target_arch = "aarch64")] [INFO] [stdout] | ----------------------- the item is gated behind the `aarch64` feature [INFO] [stdout] 125 | pub fn get_cpu_id() -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/percpu.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 135 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 136 | pub fn get_cpu_id() -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `simple_user_program` in this scope [INFO] [stdout] --> src/proc/user.rs:171:17 [INFO] [stdout] | [INFO] [stdout] 171 | let entry = simple_user_program as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_cpu_id` in module `percpu` [INFO] [stdout] --> src/proc/mod.rs:176:26 [INFO] [stdout] | [INFO] [stdout] 176 | let my_cpu = percpu::get_cpu_id(); [INFO] [stdout] | ^^^^^^^^^^ not found in `percpu` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/percpu.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 124 | #[cfg(target_arch = "aarch64")] [INFO] [stdout] | ----------------------- the item is gated behind the `aarch64` feature [INFO] [stdout] 125 | pub fn get_cpu_id() -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/percpu.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 135 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 136 | pub fn get_cpu_id() -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_cpu_id` in module `proc::percpu` [INFO] [stdout] --> src/main.rs:492:44 [INFO] [stdout] | [INFO] [stdout] 492 | let my_cpu = proc::percpu::get_cpu_id(); [INFO] [stdout] | ^^^^^^^^^^ not found in `proc::percpu` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/percpu.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 124 | #[cfg(target_arch = "aarch64")] [INFO] [stdout] | ----------------------- the item is gated behind the `aarch64` feature [INFO] [stdout] 125 | pub fn get_cpu_id() -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/proc/percpu.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 135 | #[cfg(target_arch = "riscv64")] [INFO] [stdout] | ----------------------- the item is gated behind the `riscv64` feature [INFO] [stdout] 136 | pub fn get_cpu_id() -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::boxed::Box` [INFO] [stdout] --> src/block/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::boxed::Box` [INFO] [stdout] --> src/block/virtio_blk.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use alloc::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::vec` [INFO] [stdout] --> src/block/virtio_blk.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use alloc::vec; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/block/virtio_blk.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::virtio::mmio::{self, VirtIOMMIO}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BoardPlatformOverrides` [INFO] [stdout] --> src/boards/mod.rs:26:41 [INFO] [stdout] | [INFO] [stdout] 26 | pub use board_module::{BoardModuleInfo, BoardPlatformOverrides}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BoardConfig` [INFO] [stdout] --> src/drivers/probe.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::boards::{self, BoardConfig, CurrentBoard}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::boxed::Box` [INFO] [stdout] --> src/drivers/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use alloc::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::string::String` [INFO] [stdout] --> src/drivers/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use alloc::string::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::boxed::Box` [INFO] [stdout] --> src/fs/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use alloc::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::boxed::Box` [INFO] [stdout] --> src/fs/ramfs/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use alloc::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::collections::BTreeMap` [INFO] [stdout] --> src/fs/ramfs/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use alloc::collections::BTreeMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::boxed::Box` [INFO] [stdout] --> src/fs/devfs/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use alloc::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::boxed::Box` [INFO] [stdout] --> src/fs/fd.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use alloc::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BoundedMessageQueue`, `MessageQueue`, and `Message` [INFO] [stdout] --> src/ipc/mod.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | pub use message_queue::{MessageQueue, BoundedMessageQueue, Message}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Elf64Error` and `Elf64` [INFO] [stdout] --> src/module/mod.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | pub use elf::{Elf64, Elf64Error}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LoadedModule`, `ModuleError`, `ModuleInfo`, `ModuleRef`, `ModuleState`, and `Module` [INFO] [stdout] --> src/module/mod.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | pub use loader::{LoadedModule, Module, ModuleError, ModuleInfo, ModuleLoader, ModuleRef, ModuleState}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KernelSymbol`, `lookup_symbol`, and `register_symbol` [INFO] [stdout] --> src/module/mod.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | pub use symbol::{lookup_symbol, register_symbol, KernelSymbol}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SpinlockGuard` [INFO] [stdout] --> src/sync/mod.rs:17:30 [INFO] [stdout] | [INFO] [stdout] 17 | pub use spinlock::{Spinlock, SpinlockGuard}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MutexGuard` [INFO] [stdout] --> src/sync/mod.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | pub use mutex::{Mutex, MutexGuard}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ReadGuard` and `WriteGuard` [INFO] [stdout] --> src/sync/mod.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | pub use rwlock::{RwLock, ReadGuard, WriteGuard}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `seqlock::SeqLock` [INFO] [stdout] --> src/sync/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub use seqlock::SeqLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RcuCell` and `RcuReadGuard` [INFO] [stdout] --> src/sync/mod.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | pub use rcu::{RcuCell, RcuReadGuard}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::vec::Vec` [INFO] [stdout] --> src/virtio/queue.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use alloc::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::sync::Arc` [INFO] [stdout] --> src/main.rs:1057:9 [INFO] [stdout] | [INFO] [stdout] 1057 | use alloc::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> src/main.rs:1394:1 [INFO] [stdout] | [INFO] [stdout] 1394 | / fn panic(_info: &PanicInfo) -> ! { [INFO] [stdout] 1395 | | kprintln!("Kernels panic: {}\n", _info); [INFO] [stdout] 1396 | | #[cfg(feature = "test_runner")] [INFO] [stdout] ... | [INFO] [stdout] 1402 | | loop {} [INFO] [stdout] 1403 | | } [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/70daa2c0d8eed7066b07966f3c0b0b8622bff4e4/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-957b1fe07cf96b13.rmeta [INFO] [stdout] = note: second definition in the local crate (`kerners`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CurrentBoard` [INFO] [stdout] --> src/boards/mod.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | CurrentBoard::UART_BASE [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `CurrentBoard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CurrentBoard` [INFO] [stdout] --> src/boards/mod.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | CurrentBoard::UART_IRQ [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `CurrentBoard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CurrentBoard` [INFO] [stdout] --> src/boards/mod.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | CurrentBoard::UART_CLOCK_FREQ [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `CurrentBoard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CurrentBoard` [INFO] [stdout] --> src/boards/mod.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | CurrentBoard::TIMER_FREQ [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `CurrentBoard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CurrentBoard` [INFO] [stdout] --> src/boards/mod.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | CurrentBoard::TIMER_IRQ [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `CurrentBoard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CurrentBoard` [INFO] [stdout] --> src/boards/mod.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | CurrentBoard::RAM_BASE [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `CurrentBoard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CurrentBoard` [INFO] [stdout] --> src/boards/mod.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | CurrentBoard::RAM_SIZE [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `CurrentBoard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `putc_arch` in this scope [INFO] [stdout] --> src/console.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | putc_arch(b); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `putc_arch` in this scope [INFO] [stdout] --> src/console.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | putc_arch(c); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_cpu_id` in this scope [INFO] [stdout] --> src/proc/percpu.rs:71:18 [INFO] [stdout] | [INFO] [stdout] 71 | let cpu_id = get_cpu_id(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_cpu_id` in this scope [INFO] [stdout] --> src/proc/percpu.rs:91:18 [INFO] [stdout] | [INFO] [stdout] 91 | let cpu_id = get_cpu_id() as usize; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `interrupts_enabled` in this scope [INFO] [stdout] --> src/sync/spinlock.rs:119:27 [INFO] [stdout] | [INFO] [stdout] 119 | let irq_enabled = interrupts_enabled(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `disable_interrupts` in this scope [INFO] [stdout] --> src/sync/spinlock.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | disable_interrupts(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `enable_interrupts` in this scope [INFO] [stdout] --> src/sync/spinlock.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | enable_interrupts(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0152, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stderr] error: could not compile `kerners` (bin "kerners" test) due to 31 previous errors; 24 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CurrentBoard` [INFO] [stdout] --> src/boards/mod.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | CurrentBoard::UART_BASE [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `CurrentBoard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CurrentBoard` [INFO] [stdout] --> src/boards/mod.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | CurrentBoard::UART_IRQ [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `CurrentBoard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CurrentBoard` [INFO] [stdout] --> src/boards/mod.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | CurrentBoard::UART_CLOCK_FREQ [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `CurrentBoard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CurrentBoard` [INFO] [stdout] --> src/boards/mod.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | CurrentBoard::TIMER_FREQ [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `CurrentBoard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CurrentBoard` [INFO] [stdout] --> src/boards/mod.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | CurrentBoard::TIMER_IRQ [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `CurrentBoard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CurrentBoard` [INFO] [stdout] --> src/boards/mod.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | CurrentBoard::RAM_BASE [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `CurrentBoard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CurrentBoard` [INFO] [stdout] --> src/boards/mod.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | CurrentBoard::RAM_SIZE [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `CurrentBoard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `putc_arch` in this scope [INFO] [stdout] --> src/console.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | putc_arch(b); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `putc_arch` in this scope [INFO] [stdout] --> src/console.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | putc_arch(c); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/log/mod.rs:188:23 [INFO] [stdout] | [INFO] [stdout] 188 | fn get_timestamp() -> (u64, u64) { [INFO] [stdout] | ------------- ^^^^^^^^^^ expected `(u64, u64)`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(u64, u64)` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `create_stub` found for mutable reference `&mut PltTable` in the current scope [INFO] [stdout] --> src/module/loader.rs:67:14 [INFO] [stdout] | [INFO] [stdout] 67 | self.create_stub(plt_addr, target); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&mut PltTable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_cpu_id` in this scope [INFO] [stdout] --> src/proc/percpu.rs:71:18 [INFO] [stdout] | [INFO] [stdout] 71 | let cpu_id = get_cpu_id(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_cpu_id` in this scope [INFO] [stdout] --> src/proc/percpu.rs:91:18 [INFO] [stdout] | [INFO] [stdout] 91 | let cpu_id = get_cpu_id() as usize; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `run` found for struct `UserProcess` in the current scope [INFO] [stdout] --> src/proc/user.rs:177:19 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct UserProcess { [INFO] [stdout] | ---------------------- method `run` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 177 | user_proc.run(); [INFO] [stdout] | ^^^ method not found in `UserProcess` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/proc/user.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 176 | / unsafe { [INFO] [stdout] 177 | | user_proc.run(); [INFO] [stdout] 178 | | } [INFO] [stdout] | |_____^ expected `!`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected type `!` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `interrupts_enabled` in this scope [INFO] [stdout] --> src/sync/spinlock.rs:119:27 [INFO] [stdout] | [INFO] [stdout] 119 | let irq_enabled = interrupts_enabled(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `disable_interrupts` in this scope [INFO] [stdout] --> src/sync/spinlock.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | disable_interrupts(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `enable_interrupts` in this scope [INFO] [stdout] --> src/sync/spinlock.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | enable_interrupts(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/syscall/process.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 18 | proc::exit(); [INFO] [stdout] | ------------ any code following this expression is unreachable [INFO] [stdout] 19 | // exit()는 반환하지 않지만, 컴파일러를 위해 [INFO] [stdout] 20 | 0 [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/virtio/mod.rs:163:45 [INFO] [stdout] | [INFO] [stdout] 163 | fn extract_irq_number(info: &DeviceInfo) -> u32 { [INFO] [stdout] | ------------------ ^^^ expected `u32`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dt` [INFO] [stdout] --> src/drivers/probe.rs:195:16 [INFO] [stdout] | [INFO] [stdout] 195 | fn probe_timer(dt: Option<&DeviceTree>) -> TimerConfig { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/fs/devfs/mod.rs:206:36 [INFO] [stdout] | [INFO] [stdout] 206 | fn read(&self, _offset: usize, buf: &mut [u8]) -> VfsResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cluster_size` [INFO] [stdout] --> src/fs/fat32/mod.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let cluster_size = self.boot.sectors_per_cluster as usize [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cluster_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cluster_size` [INFO] [stdout] --> src/fs/fat32/mod.rs:319:13 [INFO] [stdout] | [INFO] [stdout] 319 | let cluster_size = self.boot.sectors_per_cluster as usize [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cluster_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cluster_size` [INFO] [stdout] --> src/fs/fat32/mod.rs:621:13 [INFO] [stdout] | [INFO] [stdout] 621 | let cluster_size = self.boot.sectors_per_cluster as usize [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cluster_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/fs/mod.rs:206:20 [INFO] [stdout] | [INFO] [stdout] 206 | fn read(&self, offset: usize, buf: &mut [u8]) -> VfsResult { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/fs/mod.rs:206:35 [INFO] [stdout] | [INFO] [stdout] 206 | fn read(&self, offset: usize, buf: &mut [u8]) -> VfsResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/fs/mod.rs:215:21 [INFO] [stdout] | [INFO] [stdout] 215 | fn write(&self, offset: usize, buf: &[u8]) -> VfsResult { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/fs/mod.rs:215:36 [INFO] [stdout] | [INFO] [stdout] 215 | fn write(&self, offset: usize, buf: &[u8]) -> VfsResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/fs/mod.rs:220:24 [INFO] [stdout] | [INFO] [stdout] 220 | fn truncate(&self, size: u64) -> VfsResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/fs/mod.rs:225:22 [INFO] [stdout] | [INFO] [stdout] 225 | fn lookup(&self, name: &str) -> VfsResult> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/fs/mod.rs:230:22 [INFO] [stdout] | [INFO] [stdout] 230 | fn create(&self, name: &str, node_type: VNodeType, mode: FileMode) -> VfsResult> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node_type` [INFO] [stdout] --> src/fs/mod.rs:230:34 [INFO] [stdout] | [INFO] [stdout] 230 | fn create(&self, name: &str, node_type: VNodeType, mode: FileMode) -> VfsResult> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/fs/mod.rs:230:56 [INFO] [stdout] | [INFO] [stdout] 230 | fn create(&self, name: &str, node_type: VNodeType, mode: FileMode) -> VfsResult> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/fs/mod.rs:235:22 [INFO] [stdout] | [INFO] [stdout] 235 | fn unlink(&self, name: &str) -> VfsResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/fs/mod.rs:240:21 [INFO] [stdout] | [INFO] [stdout] 240 | fn rmdir(&self, name: &str) -> VfsResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mode` [INFO] [stdout] --> src/fs/mod.rs:253:21 [INFO] [stdout] | [INFO] [stdout] 253 | fn chmod(&self, mode: FileMode) -> VfsResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/fs/mod.rs:268:23 [INFO] [stdout] | [INFO] [stdout] 268 | fn symlink(&self, name: &str, target: &str) -> VfsResult> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/fs/mod.rs:268:35 [INFO] [stdout] | [INFO] [stdout] 268 | fn symlink(&self, name: &str, target: &str) -> VfsResult> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `machine` [INFO] [stdout] --> src/module/elf.rs:342:13 [INFO] [stdout] | [INFO] [stdout] 342 | let machine = ElfMachine::from(header.e_machine); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_machine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `plt` [INFO] [stdout] --> src/module/loader.rs:609:64 [INFO] [stdout] | [INFO] [stdout] 609 | fn apply_relocations(elf: &Elf64, section_addrs: &[usize], plt: &mut Option) -> Result<(), ModuleError> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_plt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rel_type` [INFO] [stdout] --> src/module/loader.rs:635:21 [INFO] [stdout] | [INFO] [stdout] 635 | let rel_type = rela.rel_type(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rel_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sym_value` [INFO] [stdout] --> src/module/loader.rs:645:21 [INFO] [stdout] | [INFO] [stdout] 645 | let sym_value = if sym.st_shndx == section_index::SHN_UNDEF { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sym_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reloc_addr` [INFO] [stdout] --> src/module/loader.rs:665:21 [INFO] [stdout] | [INFO] [stdout] 665 | let reloc_addr = section_base + rela.r_offset as usize; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reloc_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addend` [INFO] [stdout] --> src/module/loader.rs:666:21 [INFO] [stdout] | [INFO] [stdout] 666 | let addend = rela.r_addend; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_addend` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/module/loader.rs:1007:21 [INFO] [stdout] | [INFO] [stdout] 1007 | fn flush_icache(addr: usize, size: usize) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/module/loader.rs:1007:34 [INFO] [stdout] | [INFO] [stdout] 1007 | fn flush_icache(addr: usize, size: usize) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::read_volatile` is unsafe and requires unsafe block [INFO] [stdout] --> src/virtio/mmio.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | read_volatile((self.base + offset) as *const u32) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/virtio/mmio.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | unsafe fn read(&self, offset: usize) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::write_volatile` is unsafe and requires unsafe block [INFO] [stdout] --> src/virtio/mmio.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | write_volatile((self.base + offset) as *mut u32, value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/virtio/mmio.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | unsafe fn write(&self, offset: usize, value: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/virtio/mod.rs:112:31 [INFO] [stdout] | [INFO] [stdout] 112 | let device_type = unsafe { [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] warning: unused variable: `dtb_addr` [INFO] [stdout] --> src/main.rs:113:26 [INFO] [stdout] | [INFO] [stdout] 113 | pub extern "C" fn _entry(dtb_addr: usize) -> ! { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dtb_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0133, E0308, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `kerners` (bin "kerners") due to 36 previous errors; 56 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d24f002543fa2b378f0add29d5b936d48fbc601095210ee67015a2095a9da951", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d24f002543fa2b378f0add29d5b936d48fbc601095210ee67015a2095a9da951", kill_on_drop: false }` [INFO] [stdout] d24f002543fa2b378f0add29d5b936d48fbc601095210ee67015a2095a9da951