[INFO] cloning repository https://github.com/Demindiro/norost-a
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Demindiro/norost-a" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDemindiro%2Fnorost-a", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDemindiro%2Fnorost-a'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] fbaeaa8200d66864c7754073f64529d32746e71d
[INFO] testing Demindiro/norost-a against master#1ef7943ee607160a564655b6596f83670ef95df5 for pr-146098-6
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDemindiro%2Fnorost-a" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] removed /workspace/builds/worker-5-tc1/source/.cargo/config.toml
[INFO] started tweaking git repo https://github.com/Demindiro/norost-a
[INFO] finished tweaking git repo https://github.com/Demindiro/norost-a
[INFO] tweaked toml for git repo https://github.com/Demindiro/norost-a written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Demindiro/norost-a on toolchain 1ef7943ee607160a564655b6596f83670ef95df5
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Demindiro/norost-a 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" "+1ef7943ee607160a564655b6596f83670ef95df5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: /workspace/builds/worker-5-tc1/source/services/driver/virtio_block/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
[INFO] [stderr] (in the `driver` dependency)
[INFO] [stderr] warning: /workspace/builds/worker-5-tc1/source/services/driver/virtio_input/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
[INFO] [stderr] (in the `driver` dependency)
[INFO] [stderr] warning: /workspace/builds/worker-5-tc1/source/thirdparty/rust/vcell/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024
[INFO] [stderr] warning: /workspace/builds/worker-5-tc1/source/services/driver/virtio_gpu/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
[INFO] [stderr] (in the `driver` dependency)
[INFO] [stderr] warning: /workspace/builds/worker-5-tc1/source/services/driver/pci/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
[INFO] [stderr] (in the `driver` dependency)
[INFO] [stderr] warning: /workspace/builds/worker-5-tc1/source/Cargo.toml: the cargo feature `strip` has been stabilized in the 1.58 release and is no longer necessary to be listed in the manifest
[INFO] [stderr]   See https://doc.rust-lang.org/nightly/cargo/reference/profiles.html#strip-option for more information about using this feature.
[INFO] [stderr] warning: /workspace/builds/worker-5-tc1/source/services/driver/plic/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
[INFO] [stderr] (in the `driver` dependency)
[INFO] [stderr] warning: /workspace/builds/worker-5-tc1/source/thirdparty/rust/xmas-elf/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024
[INFO] [stderr] warning: /workspace/builds/worker-5-tc1/source/thirdparty/rust/zero/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded fscommon v0.1.1
[INFO] [stderr]   Downloaded memchr v2.4.0
[INFO] [stderr]   Downloaded libc v0.2.98
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 115186d43e7738e49de579038d850ee13f019bb24c53e4f418eaa51c7c160ef3
[INFO] running `Command { std: "docker" "start" "-a" "115186d43e7738e49de579038d850ee13f019bb24c53e4f418eaa51c7c160ef3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "115186d43e7738e49de579038d850ee13f019bb24c53e4f418eaa51c7c160ef3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "115186d43e7738e49de579038d850ee13f019bb24c53e4f418eaa51c7c160ef3", kill_on_drop: false }`
[INFO] [stdout] 115186d43e7738e49de579038d850ee13f019bb24c53e4f418eaa51c7c160ef3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] e0687fed3487ccb3cb9eb89c0d6ce42080dab28c8b2efd4a15844d87e3c64a6e
[INFO] running `Command { std: "docker" "start" "-a" "e0687fed3487ccb3cb9eb89c0d6ce42080dab28c8b2efd4a15844d87e3c64a6e", kill_on_drop: false }`
[INFO] [stderr] warning: /opt/rustwide/workdir/services/driver/pci/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
[INFO] [stderr] (in the `driver` dependency)
[INFO] [stderr] warning: /opt/rustwide/workdir/thirdparty/rust/vcell/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024
[INFO] [stderr] warning: /opt/rustwide/workdir/thirdparty/rust/xmas-elf/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024
[INFO] [stderr] warning: /opt/rustwide/workdir/services/driver/virtio_block/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
[INFO] [stderr] (in the `driver` dependency)
[INFO] [stderr] warning: /opt/rustwide/workdir/thirdparty/rust/zero/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024
[INFO] [stderr] warning: /opt/rustwide/workdir/services/driver/virtio_gpu/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
[INFO] [stderr] (in the `driver` dependency)
[INFO] [stderr] warning: /opt/rustwide/workdir/Cargo.toml: the cargo feature `strip` has been stabilized in the 1.58 release and is no longer necessary to be listed in the manifest
[INFO] [stderr]   See https://doc.rust-lang.org/nightly/cargo/reference/profiles.html#strip-option for more information about using this feature.
[INFO] [stderr] warning: /opt/rustwide/workdir/services/driver/plic/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
[INFO] [stderr] (in the `driver` dependency)
[INFO] [stderr] warning: /opt/rustwide/workdir/services/driver/virtio_input/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
[INFO] [stderr] (in the `driver` dependency)
[INFO] [stderr]    Compiling syscalls v0.1.0 (/opt/rustwide/workdir/lib/rust/kernel)
[INFO] [stderr]    Compiling zero v0.1.2 (/opt/rustwide/workdir/thirdparty/rust/zero)
[INFO] [stderr]    Compiling simple_endian v0.2.0 (/opt/rustwide/workdir/thirdparty/rust/simple-endian)
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]    Compiling vcell v0.1.3 (/opt/rustwide/workdir/thirdparty/rust/vcell)
[INFO] [stderr]    Compiling libc v0.2.98
[INFO] [stderr]    Compiling driver v0.1.0 (/opt/rustwide/workdir/lib/rust/driver)
[INFO] [stderr]    Compiling bitflags v1.2.1
[INFO] [stderr]    Compiling log v0.4.14
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling pci_manager v0.1.0 (/opt/rustwide/workdir/services/driver/pci)
[INFO] [stderr]    Compiling b0 v0.1.0 (/opt/rustwide/workdir/services/init/b0)
[INFO] [stderr]    Compiling kernel v0.1.0 (/opt/rustwide/workdir/kernel)
[INFO] [stdout] error: cannot find macro `syscall` in this scope
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:205:1
[INFO] [stdout]     |
[INFO] [stdout] 205 | syscall!(saveall io_wait, 0, time: u64);
[INFO] [stdout]     | ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `syscall` in this scope
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:206:1
[INFO] [stdout]     |
[INFO] [stdout] 206 | syscall!(
[INFO] [stdout]     | ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `syscall` in this scope
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:214:1
[INFO] [stdout]     |
[INFO] [stdout] 214 | syscall!(io_set_notify_handler, 2, function: notification::Handler);
[INFO] [stdout]     | ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `syscall` in this scope
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:216:1
[INFO] [stdout]     |
[INFO] [stdout] 216 | syscall!(mem_alloc, 3, address: *mut Page, size: usize, flags: u8);
[INFO] [stdout]     | ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `syscall` in this scope
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:217:1
[INFO] [stdout]     |
[INFO] [stdout] 217 | syscall!(mem_dealloc, 4, address: *mut Page, size: usize);
[INFO] [stdout]     | ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `syscall` in this scope
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:218:1
[INFO] [stdout]     |
[INFO] [stdout] 218 | syscall!(
[INFO] [stdout]     | ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `syscall` in this scope
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:226:1
[INFO] [stdout]     |
[INFO] [stdout] 226 | syscall!(
[INFO] [stdout]     | ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `syscall` in this scope
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:234:1
[INFO] [stdout]     |
[INFO] [stdout] 234 | syscall!(io_notify_return, 9);
[INFO] [stdout]     | ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `syscall` in this scope
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:236:1
[INFO] [stdout]     |
[INFO] [stdout] 236 | syscall!(sys_reserve_interrupt, 10, interrupt: usize);
[INFO] [stdout]     | ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `syscall` in this scope
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:238:1
[INFO] [stdout]     |
[INFO] [stdout] 238 | syscall!(
[INFO] [stdout]     | ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `syscall` in this scope
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:247:1
[INFO] [stdout]     |
[INFO] [stdout] 247 | syscall!(
[INFO] [stdout]     | ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `syscall` in this scope
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:255:1
[INFO] [stdout]     |
[INFO] [stdout] 255 | syscall!(sys_platform_info, 13, address: *mut Page, max_count: usize);
[INFO] [stdout]     | ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `syscall` in this scope
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:256:1
[INFO] [stdout]     |
[INFO] [stdout] 256 | syscall!(
[INFO] [stdout]     | ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `syscall` in this scope
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:264:1
[INFO] [stdout]     |
[INFO] [stdout] 264 | syscall!(sys_log, 15, string: *const u8, length: usize);
[INFO] [stdout]     | ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `syscall` in this scope
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:266:1
[INFO] [stdout]     |
[INFO] [stdout] 266 | syscall!(
[INFO] [stdout]     | ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `syscall` in this scope
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:273:1
[INFO] [stdout]     |
[INFO] [stdout] 273 | syscall!(sys_registry_get, 17, name: *const u8, name_length: usize);
[INFO] [stdout]     | ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Page` in this scope
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:112:28
[INFO] [stdout]     |
[INFO] [stdout] 112 |         pub data: Option<NonNull<Page>>,
[INFO] [stdout]     |                                  ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 110 |     pub struct Packet<Page> {
[INFO] [stdout]     |                      ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Page` in this scope
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:113:28
[INFO] [stdout]     |
[INFO] [stdout] 113 |         pub name: Option<NonNull<Page>>,
[INFO] [stdout]     |                                  ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 110 |     pub struct Packet<Page> {
[INFO] [stdout]     |                      ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Page` in this scope
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:166:31
[INFO] [stdout]     |
[INFO] [stdout] 166 |         pub address: Option<NonNull<Page>>,
[INFO] [stdout]     |                                     ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 165 |     pub struct FreePage<Page> {
[INFO] [stdout]     |                        ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Page` in this scope
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:193:25
[INFO] [stdout]     |
[INFO] [stdout] 193 |     pub task_address: *mut Page,
[INFO] [stdout]     |                            ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Page` in this scope
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:196:25
[INFO] [stdout]     |
[INFO] [stdout] 196 |     pub self_address: *mut Page,
[INFO] [stdout]     |                            ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::ffi`
[INFO] [stdout]  --> lib/rust/kernel/src/lib.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use core::ffi;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `asm` has been stable since 1.59.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> lib/rust/kernel/src/lib.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | #![feature(asm)]
[INFO] [stdout]   |            ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(stable_features)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> thirdparty/rust/zero/src/lib.rs:70:33
[INFO] [stdout]    |
[INFO] [stdout] 70 | pub fn read_strs_to_null(input: &[u8]) -> StrReaderIterator {
[INFO] [stdout]    |                                 ^^^^^     ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                                 |
[INFO] [stdout]    |                                 the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 70 | pub fn read_strs_to_null(input: &[u8]) -> StrReaderIterator<'_> {
[INFO] [stdout]    |                                                            ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling xmas-elf v0.8.0 (/opt/rustwide/workdir/thirdparty/rust/xmas-elf)
[INFO] [stdout] error[E0557]: feature has been removed
[INFO] [stdout]   --> kernel/src/main.rs:33:12
[INFO] [stdout]    |
[INFO] [stdout] 33 | #![feature(untagged_unions)]
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^ feature has been removed
[INFO] [stdout]    |
[INFO] [stdout]    = note: removed in 1.64.0; see <https://github.com/rust-lang/rust/pull/97995> for more information
[INFO] [stdout]    = note: unions with `Copy` and `ManuallyDrop` fields are stable; there is no intent to stabilize more
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:177:13
[INFO] [stdout]     |
[INFO] [stdout] 177 |                         .map(|p| p.as_ptr())
[INFO] [stdout]     |                               ^  - type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving this closure parameter an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 177 |                         .map(|p: /* Type */| p.as_ptr())
[INFO] [stdout]     |                                ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected function, found macro `sys_log`
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:281:14
[INFO] [stdout]     |
[INFO] [stdout] 281 |             let ret = sys_log(s as *const _ as *const _, s.len());
[INFO] [stdout]     |                       ^^^^^^^ not a function
[INFO] [stdout]     |
[INFO] [stdout] help: use `!` to invoke the macro
[INFO] [stdout]     |
[INFO] [stdout] 281 |             let ret = sys_log!(s as *const _ as *const _, s.len());
[INFO] [stdout]     |                              +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Page`
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:344:17
[INFO] [stdout]     |
[INFO] [stdout] 344 |             .checked_shl(Page::OFFSET_BITS.into())
[INFO] [stdout]     |                          ^^^^ use of undeclared type `Page`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Page`
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:354:11
[INFO] [stdout]     |
[INFO] [stdout] 354 |         (pa.0 & Page::MASK == 0)
[INFO] [stdout]     |                 ^^^^ use of undeclared type `Page`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Page`
[INFO] [stdout]    --> lib/rust/kernel/src/lib.rs:355:26
[INFO] [stdout]     |
[INFO] [stdout] 355 |             .then(|| Self(pa.0 >> Page::OFFSET_BITS))
[INFO] [stdout]     |                                   ^^^^ use of undeclared type `Page`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: No arch init function defined
[INFO] [stdout]   --> kernel/src/arch/mod.rs:50:2
[INFO] [stdout]    |
[INFO] [stdout] 50 |     compile_error!("No arch init function defined");
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0423, E0433.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `syscalls` (lib) due to 26 previous errors; 2 warnings emitted
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0432]: unresolved import `super::reserved::PMM_STACK`
[INFO] [stdout]   --> kernel/src/memory/allocator.rs:26:5
[INFO] [stdout]    |
[INFO] [stdout] 26 | use super::reserved::PMM_STACK;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `PMM_STACK` in `memory::reserved`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `riscv` in `super`
[INFO] [stdout]   --> kernel/src/arch/interrupts.rs:1:16
[INFO] [stdout]    |
[INFO] [stdout]  1 | pub use super::riscv::plic::*;
[INFO] [stdout]    |                ^^^^^ could not find `riscv` in `super`
[INFO] [stdout]    |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]   --> kernel/src/arch/mod.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout]  9 | #[cfg(any(target_arch = "riscv64", target_arch = "riscv32"))]
[INFO] [stdout]    |          -------------------------------------------------- the item is gated here
[INFO] [stdout] 10 | pub mod riscv;
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `super::reserved::SHARED_ALLOC`, `super::reserved::SHARED_COUNTERS`
[INFO] [stdout]  --> kernel/src/memory/shared.rs:3:23
[INFO] [stdout]   |
[INFO] [stdout] 3 | use super::reserved::{SHARED_ALLOC, SHARED_COUNTERS};
[INFO] [stdout]   |                       ^^^^^^^^^^^^  ^^^^^^^^^^^^^^^ no `SHARED_COUNTERS` in `memory::reserved`
[INFO] [stdout]   |                       |
[INFO] [stdout]   |                       no `SHARED_ALLOC` in `memory::reserved`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `crate::memory::reserved::PLIC`
[INFO] [stdout]    --> kernel/src/syscall.rs:524:8
[INFO] [stdout]     |
[INFO] [stdout] 524 |             use crate::memory::reserved::PLIC;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `PLIC` in `memory::reserved`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `arch::interrupts::ReserveError`
[INFO] [stdout]    --> kernel/src/syscall.rs:465:33
[INFO] [stdout]     |
[INFO] [stdout] 465 |             use arch::interrupts::{self, ReserveError};
[INFO] [stdout]     |                                          ^^^^^^^^^^^^ no `ReserveError` in `arch::interrupts`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `asm` in this scope
[INFO] [stdout]    --> kernel/src/arch/mod.rs:106:12
[INFO] [stdout]     |
[INFO] [stdout] 106 |         unsafe { asm!("csrs sstatus, {0}", in(reg) imm) };
[INFO] [stdout]     |                  ^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this macro
[INFO] [stdout]     |
[INFO] [stdout]   6 + use core::arch::asm;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `asm` in this scope
[INFO] [stdout]    --> kernel/src/arch/mod.rs:108:12
[INFO] [stdout]     |
[INFO] [stdout] 108 |         unsafe { asm!("csrc sstatus, {0}", in(reg) imm) };
[INFO] [stdout]     |                  ^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this macro
[INFO] [stdout]     |
[INFO] [stdout]   6 + use core::arch::asm;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `asm` in this scope
[INFO] [stdout]    --> kernel/src/arch/mod.rs:119:12
[INFO] [stdout]     |
[INFO] [stdout] 119 |         unsafe { asm!("csrs sie, {0}", in(reg) imm) };
[INFO] [stdout]     |                  ^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this macro
[INFO] [stdout]     |
[INFO] [stdout]   6 + use core::arch::asm;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `asm` in this scope
[INFO] [stdout]    --> kernel/src/arch/mod.rs:121:12
[INFO] [stdout]     |
[INFO] [stdout] 121 |         unsafe { asm!("csrc sie, {0}", in(reg) imm) };
[INFO] [stdout]     |                  ^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this macro
[INFO] [stdout]     |
[INFO] [stdout]   6 + use core::arch::asm;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `asm` in this scope
[INFO] [stdout]    --> kernel/src/arch/mod.rs:130:12
[INFO] [stdout]     |
[INFO] [stdout] 130 |         unsafe { asm!("csrsi sstatus, 1 << 1") };
[INFO] [stdout]     |                  ^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this macro
[INFO] [stdout]     |
[INFO] [stdout]   6 + use core::arch::asm;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `asm` in this scope
[INFO] [stdout]    --> kernel/src/arch/mod.rs:132:12
[INFO] [stdout]     |
[INFO] [stdout] 132 |         unsafe { asm!("csrci sstatus, 1 << 1") };
[INFO] [stdout]     |                  ^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this macro
[INFO] [stdout]     |
[INFO] [stdout]   6 + use core::arch::asm;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `asm` in this scope
[INFO] [stdout]    --> kernel/src/task/executor.rs:155:12
[INFO] [stdout]     |
[INFO] [stdout] 155 |         unsafe { asm!("csrr {0}, sscratch", out(reg) task) };
[INFO] [stdout]     |                  ^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this macro
[INFO] [stdout]     |
[INFO] [stdout]   5 + use core::arch::asm;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `asm` in this scope
[INFO] [stdout]    --> kernel/src/task/executor.rs:131:12
[INFO] [stdout]     |
[INFO] [stdout] 131 |         unsafe { asm!("csrw sscratch, {0}", in(reg) IDLE_TASK_STUB.0.get()) };
[INFO] [stdout]     |                  ^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this macro
[INFO] [stdout]     |
[INFO] [stdout]   5 + use core::arch::asm;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `asm` in this scope
[INFO] [stdout]    --> kernel/src/main.rs:272:8
[INFO] [stdout]     |
[INFO] [stdout] 272 |                             asm!("
[INFO] [stdout]     |                             ^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this macro
[INFO] [stdout]     |
[INFO] [stdout]  51 + use core::arch::asm;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: lint `box_pointers` has been removed: it does not detect other kinds of allocations, and existed only for historical reasons
[INFO] [stdout]  --> thirdparty/rust/xmas-elf/src/lib.rs:2:9
[INFO] [stdout]   |
[INFO] [stdout] 2 | #![warn(box_pointers, missing_copy_implementations, missing_debug_implementations)]
[INFO] [stdout]   |         ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(renamed_and_removed_lints)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `compression`
[INFO] [stdout]   --> thirdparty/rust/xmas-elf/src/lib.rs:20:7
[INFO] [stdout]    |
[INFO] [stdout] 20 | #[cfg(feature = "compression")]
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]    |
[INFO] [stdout]    = note: no expected values for `feature`
[INFO] [stdout]    = help: consider adding `compression` as a feature in `Cargo.toml`
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]    = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `compression`
[INFO] [stdout]   --> thirdparty/rust/xmas-elf/src/lib.rs:22:7
[INFO] [stdout]    |
[INFO] [stdout] 22 | #[cfg(feature = "compression")]
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]    |
[INFO] [stdout]    = note: no expected values for `feature`
[INFO] [stdout]    = help: consider adding `compression` as a feature in `Cargo.toml`
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary qualification
[INFO] [stdout]  --> thirdparty/rust/xmas-elf/src/header.rs:9:20
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let size_pt1 = mem::size_of::<HeaderPt1>();
[INFO] [stdout]   |                    ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] note: the lint level is defined here
[INFO] [stdout]  --> thirdparty/rust/xmas-elf/src/lib.rs:3:53
[INFO] [stdout]   |
[INFO] [stdout] 3 | #![warn(unused_extern_crates, unused_import_braces, unused_qualifications, unused_results)]
[INFO] [stdout]   |                                                     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] help: remove the unnecessary path segments
[INFO] [stdout]   |
[INFO] [stdout] 9 -     let size_pt1 = mem::size_of::<HeaderPt1>();
[INFO] [stdout] 9 +     let size_pt1 = size_of::<HeaderPt1>();
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary qualification
[INFO] [stdout]   --> thirdparty/rust/xmas-elf/src/header.rs:22:28
[INFO] [stdout]    |
[INFO] [stdout] 22 |             let size_pt2 = mem::size_of::<HeaderPt2_<P32>>();
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: remove the unnecessary path segments
[INFO] [stdout]    |
[INFO] [stdout] 22 -             let size_pt2 = mem::size_of::<HeaderPt2_<P32>>();
[INFO] [stdout] 22 +             let size_pt2 = size_of::<HeaderPt2_<P32>>();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary qualification
[INFO] [stdout]   --> thirdparty/rust/xmas-elf/src/header.rs:27:50
[INFO] [stdout]    |
[INFO] [stdout] 27 |                 read(&input[size_pt1..size_pt1 + mem::size_of::<HeaderPt2_<P32>>()]);
[INFO] [stdout]    |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: remove the unnecessary path segments
[INFO] [stdout]    |
[INFO] [stdout] 27 -                 read(&input[size_pt1..size_pt1 + mem::size_of::<HeaderPt2_<P32>>()]);
[INFO] [stdout] 27 +                 read(&input[size_pt1..size_pt1 + size_of::<HeaderPt2_<P32>>()]);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary qualification
[INFO] [stdout]   --> thirdparty/rust/xmas-elf/src/header.rs:31:28
[INFO] [stdout]    |
[INFO] [stdout] 31 |             let size_pt2 = mem::size_of::<HeaderPt2_<P64>>();
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: remove the unnecessary path segments
[INFO] [stdout]    |
[INFO] [stdout] 31 -             let size_pt2 = mem::size_of::<HeaderPt2_<P64>>();
[INFO] [stdout] 31 +             let size_pt2 = size_of::<HeaderPt2_<P64>>();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary qualification
[INFO] [stdout]   --> thirdparty/rust/xmas-elf/src/header.rs:36:50
[INFO] [stdout]    |
[INFO] [stdout] 36 |                 read(&input[size_pt1..size_pt1 + mem::size_of::<HeaderPt2_<P64>>()]);
[INFO] [stdout]    |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: remove the unnecessary path segments
[INFO] [stdout]    |
[INFO] [stdout] 36 -                 read(&input[size_pt1..size_pt1 + mem::size_of::<HeaderPt2_<P64>>()]);
[INFO] [stdout] 36 +                 read(&input[size_pt1..size_pt1 + size_of::<HeaderPt2_<P64>>()]);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary qualification
[INFO] [stdout]    --> thirdparty/rust/xmas-elf/src/header.rs:124:39
[INFO] [stdout]     |
[INFO] [stdout] 124 |             HeaderPt2::Header32(_) => mem::size_of::<HeaderPt2_<P32>>(),
[INFO] [stdout]     |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: remove the unnecessary path segments
[INFO] [stdout]     |
[INFO] [stdout] 124 -             HeaderPt2::Header32(_) => mem::size_of::<HeaderPt2_<P32>>(),
[INFO] [stdout] 124 +             HeaderPt2::Header32(_) => size_of::<HeaderPt2_<P32>>(),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary qualification
[INFO] [stdout]    --> thirdparty/rust/xmas-elf/src/header.rs:125:39
[INFO] [stdout]     |
[INFO] [stdout] 125 |             HeaderPt2::Header64(_) => mem::size_of::<HeaderPt2_<P64>>(),
[INFO] [stdout]     |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: remove the unnecessary path segments
[INFO] [stdout]     |
[INFO] [stdout] 125 -             HeaderPt2::Header64(_) => mem::size_of::<HeaderPt2_<P64>>(),
[INFO] [stdout] 125 +             HeaderPt2::Header64(_) => size_of::<HeaderPt2_<P64>>(),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary qualification
[INFO] [stdout]    --> thirdparty/rust/xmas-elf/src/header.rs:429:12
[INFO] [stdout]     |
[INFO] [stdout] 429 |     check!(mem::size_of::<HeaderPt1>() == 16);
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: remove the unnecessary path segments
[INFO] [stdout]     |
[INFO] [stdout] 429 -     check!(mem::size_of::<HeaderPt1>() == 16);
[INFO] [stdout] 429 +     check!(size_of::<HeaderPt1>() == 16);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary qualification
[INFO] [stdout]    --> thirdparty/rust/xmas-elf/src/header.rs:432:12
[INFO] [stdout]     |
[INFO] [stdout] 432 |     check!(mem::size_of::<HeaderPt1>() + pt2.size() == pt2.header_size() as usize,
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: remove the unnecessary path segments
[INFO] [stdout]     |
[INFO] [stdout] 432 -     check!(mem::size_of::<HeaderPt1>() + pt2.size() == pt2.header_size() as usize,
[INFO] [stdout] 432 +     check!(size_of::<HeaderPt1>() + pt2.size() == pt2.header_size() as usize,
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `compression`
[INFO] [stdout]  --> thirdparty/rust/xmas-elf/src/sections.rs:1:7
[INFO] [stdout]   |
[INFO] [stdout] 1 | #[cfg(feature = "compression")]
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]   |
[INFO] [stdout]   = note: no expected values for `feature`
[INFO] [stdout]   = help: consider adding `compression` as a feature in `Cargo.toml`
[INFO] [stdout]   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `compression`
[INFO] [stdout]  --> thirdparty/rust/xmas-elf/src/sections.rs:3:7
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[cfg(feature = "compression")]
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]   |
[INFO] [stdout]   = note: no expected values for `feature`
[INFO] [stdout]   = help: consider adding `compression` as a feature in `Cargo.toml`
[INFO] [stdout]   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `compression`
[INFO] [stdout]   --> thirdparty/rust/xmas-elf/src/sections.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | #[cfg(feature = "compression")]
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]    |
[INFO] [stdout]    = note: no expected values for `feature`
[INFO] [stdout]    = help: consider adding `compression` as a feature in `Cargo.toml`
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `compression`
[INFO] [stdout]    --> thirdparty/rust/xmas-elf/src/sections.rs:174:11
[INFO] [stdout]     |
[INFO] [stdout] 174 |     #[cfg(feature = "compression")]
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]     |
[INFO] [stdout]     = note: no expected values for `feature`
[INFO] [stdout]     = help: consider adding `compression` as a feature in `Cargo.toml`
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary qualification
[INFO] [stdout]    --> thirdparty/rust/xmas-elf/src/program.rs:309:20
[INFO] [stdout]     |
[INFO] [stdout] 309 |             check!(mem::size_of_val(ph) == header.pt2.ph_entry_size() as usize,
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: remove the unnecessary path segments
[INFO] [stdout]     |
[INFO] [stdout] 309 -             check!(mem::size_of_val(ph) == header.pt2.ph_entry_size() as usize,
[INFO] [stdout] 309 +             check!(size_of_val(ph) == header.pt2.ph_entry_size() as usize,
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary qualification
[INFO] [stdout]    --> thirdparty/rust/xmas-elf/src/program.rs:320:20
[INFO] [stdout]     |
[INFO] [stdout] 320 |             check!(mem::size_of_val(ph) == header.pt2.ph_entry_size() as usize,
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: remove the unnecessary path segments
[INFO] [stdout]     |
[INFO] [stdout] 320 -             check!(mem::size_of_val(ph) == header.pt2.ph_entry_size() as usize,
[INFO] [stdout] 320 +             check!(size_of_val(ph) == header.pt2.ph_entry_size() as usize,
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `asm` in this scope
[INFO] [stdout]   --> kernel/src/task/executor.rs:97:4
[INFO] [stdout]    |
[INFO] [stdout] 97 |             asm!("csrw sscratch, {0}", in(reg) IDLE_TASK_STUB.0.get());
[INFO] [stdout]    |             ^^^
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this macro
[INFO] [stdout]    |
[INFO] [stdout]  5 + use core::arch::asm;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `asm` in this scope
[INFO] [stdout]  --> kernel/src/powerstate.rs:5:3
[INFO] [stdout]   |
[INFO] [stdout] 5 |         asm!("wfi");
[INFO] [stdout]   |         ^^^
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this macro
[INFO] [stdout]   |
[INFO] [stdout] 1 + use core::arch::asm;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `asm` in this scope
[INFO] [stdout]    --> kernel/src/arch/mod.rs:156:3
[INFO] [stdout]     |
[INFO] [stdout] 156 |         asm!("csrr {0}, time", out(reg) now);
[INFO] [stdout]     |         ^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this macro
[INFO] [stdout]     |
[INFO] [stdout]   6 + use core::arch::asm;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `asm` in this scope
[INFO] [stdout]   --> kernel/src/arch/mod.rs:88:3
[INFO] [stdout]    |
[INFO] [stdout] 88 |         asm!("mv    t0, sp", out("t0") sp);
[INFO] [stdout]    |         ^^^
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this macro
[INFO] [stdout]    |
[INFO] [stdout]  6 + use core::arch::asm;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `asm` in this scope
[INFO] [stdout]   --> kernel/src/arch/mod.rs:78:3
[INFO] [stdout]    |
[INFO] [stdout] 78 |         asm!("
[INFO] [stdout]    |         ^^^
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this macro
[INFO] [stdout]    |
[INFO] [stdout]  6 + use core::arch::asm;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `riscv` in `arch`
[INFO] [stdout]   --> kernel/src/log.rs:12:17
[INFO] [stdout]    |
[INFO] [stdout] 12 |             crate::arch::riscv::sbi::console_putchar(b);
[INFO] [stdout]    |                          ^^^^^ could not find `riscv` in `arch`
[INFO] [stdout]    |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]   --> kernel/src/arch/mod.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout]  9 | #[cfg(any(target_arch = "riscv64", target_arch = "riscv32"))]
[INFO] [stdout]    |          -------------------------------------------------- the item is gated here
[INFO] [stdout] 10 | pub mod riscv;
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `riscv`
[INFO] [stdout]    --> kernel/src/arch/mod.rs:140:2
[INFO] [stdout]     |
[INFO] [stdout] 140 |     riscv::sbi::set_timer(time);
[INFO] [stdout]     |     ^^^^^ use of unresolved module or unlinked crate `riscv`
[INFO] [stdout]     |
[INFO] [stdout] help: to make use of source file kernel/src/arch/riscv/mod.rs, use `mod riscv` in this file to declare the module
[INFO] [stdout]    --> kernel/src/main.rs:36:1
[INFO] [stdout]     |
[INFO] [stdout]  36 + mod riscv;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `riscv`
[INFO] [stdout]    --> kernel/src/arch/mod.rs:147:2
[INFO] [stdout]     |
[INFO] [stdout] 147 |     riscv::sbi::set_timer(current_time().checked_add(delay).unwrap_or(u64::MAX));
[INFO] [stdout]     |     ^^^^^ use of unresolved module or unlinked crate `riscv`
[INFO] [stdout]     |
[INFO] [stdout] help: to make use of source file kernel/src/arch/riscv/mod.rs, use `mod riscv` in this file to declare the module
[INFO] [stdout]    --> kernel/src/main.rs:36:1
[INFO] [stdout]     |
[INFO] [stdout]  36 + mod riscv;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `VMS` in `arch`
[INFO] [stdout]    --> kernel/src/memory/allocator.rs:156:10
[INFO] [stdout]     |
[INFO] [stdout] 156 |             arch::VMS::allocate_pages(
[INFO] [stdout]     |                   ^^^ could not find `VMS` in `arch`
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> kernel/src/arch/mod.rs:21:10
[INFO] [stdout]     |
[INFO] [stdout]  20 | #[cfg(target_arch = "riscv64")]
[INFO] [stdout]     |       ----------------------- the item is gated behind the `riscv64` feature
[INFO] [stdout]  21 | pub type VMS = riscv::vms::Sv39;
[INFO] [stdout]     |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `VMS` in `arch`
[INFO] [stdout]    --> kernel/src/syscall.rs:335:20
[INFO] [stdout]     |
[INFO] [stdout] 335 |             let ret = arch::VMS::physical_addresses(address, store);
[INFO] [stdout]     |                             ^^^ could not find `VMS` in `arch`
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> kernel/src/arch/mod.rs:21:10
[INFO] [stdout]     |
[INFO] [stdout]  20 | #[cfg(target_arch = "riscv64")]
[INFO] [stdout]     |       ----------------------- the item is gated behind the `riscv64` feature
[INFO] [stdout]  21 | pub type VMS = riscv::vms::Sv39;
[INFO] [stdout]     |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `VMS` in `arch`
[INFO] [stdout]    --> kernel/src/syscall.rs:346:20
[INFO] [stdout]     |
[INFO] [stdout] 346 |             let vms = arch::VMS::new().unwrap();
[INFO] [stdout]     |                             ^^^ could not find `VMS` in `arch`
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> kernel/src/arch/mod.rs:21:10
[INFO] [stdout]     |
[INFO] [stdout]  20 | #[cfg(target_arch = "riscv64")]
[INFO] [stdout]     |       ----------------------- the item is gated behind the `riscv64` feature
[INFO] [stdout]  21 | pub type VMS = riscv::vms::Sv39;
[INFO] [stdout]     |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `VMS` in `arch`
[INFO] [stdout]    --> kernel/src/syscall.rs:395:13
[INFO] [stdout]     |
[INFO] [stdout] 395 |                         arch::VMS::add(a, p, vms::RWX::RW, vms::Accessibility::UserLocal)
[INFO] [stdout]     |                               ^^^ could not find `VMS` in `arch`
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> kernel/src/arch/mod.rs:21:10
[INFO] [stdout]     |
[INFO] [stdout]  20 | #[cfg(target_arch = "riscv64")]
[INFO] [stdout]     |       ----------------------- the item is gated behind the `riscv64` feature
[INFO] [stdout]  21 | pub type VMS = riscv::vms::Sv39;
[INFO] [stdout]     |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `VMS` in `arch`
[INFO] [stdout]    --> kernel/src/syscall.rs:418:13
[INFO] [stdout]     |
[INFO] [stdout] 418 |                         arch::VMS::add_range(a, p, vms::RWX::R, vms::Accessibility::UserLocal).unwrap();
[INFO] [stdout]     |                               ^^^ could not find `VMS` in `arch`
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> kernel/src/arch/mod.rs:21:10
[INFO] [stdout]     |
[INFO] [stdout]  20 | #[cfg(target_arch = "riscv64")]
[INFO] [stdout]     |       ----------------------- the item is gated behind the `riscv64` feature
[INFO] [stdout]  21 | pub type VMS = riscv::vms::Sv39;
[INFO] [stdout]     |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `VMS` in `arch`
[INFO] [stdout]    --> kernel/src/syscall.rs:440:20
[INFO] [stdout]     |
[INFO] [stdout] 440 |                             match arch::VMS::add_range(addr, map, RWX::RW, vms::Accessibility::UserLocal) {
[INFO] [stdout]     |                                         ^^^ could not find `VMS` in `arch`
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> kernel/src/arch/mod.rs:21:10
[INFO] [stdout]     |
[INFO] [stdout]  20 | #[cfg(target_arch = "riscv64")]
[INFO] [stdout]     |       ----------------------- the item is gated behind the `riscv64` feature
[INFO] [stdout]  21 | pub type VMS = riscv::vms::Sv39;
[INFO] [stdout]     |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `VMS` in `arch`
[INFO] [stdout]    --> kernel/src/task/executor.rs:134:9
[INFO] [stdout]     |
[INFO] [stdout] 134 |         arch::VMS::add(
[INFO] [stdout]     |               ^^^ could not find `VMS` in `arch`
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> kernel/src/arch/mod.rs:21:10
[INFO] [stdout]     |
[INFO] [stdout]  20 | #[cfg(target_arch = "riscv64")]
[INFO] [stdout]     |       ----------------------- the item is gated behind the `riscv64` feature
[INFO] [stdout]  21 | pub type VMS = riscv::vms::Sv39;
[INFO] [stdout]     |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `VMS` in `arch`
[INFO] [stdout]    --> kernel/src/task/mod.rs:180:9
[INFO] [stdout]     |
[INFO] [stdout] 180 |         arch::VMS::allocate(address, count, rwx, vms::Accessibility::UserLocal)
[INFO] [stdout]     |               ^^^ could not find `VMS` in `arch`
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> kernel/src/arch/mod.rs:21:10
[INFO] [stdout]     |
[INFO] [stdout]  20 | #[cfg(target_arch = "riscv64")]
[INFO] [stdout]     |       ----------------------- the item is gated behind the `riscv64` feature
[INFO] [stdout]  21 | pub type VMS = riscv::vms::Sv39;
[INFO] [stdout]     |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `VMS` in `arch`
[INFO] [stdout]    --> kernel/src/task/mod.rs:191:9
[INFO] [stdout]     |
[INFO] [stdout] 191 |         arch::VMS::deallocate(address, count)
[INFO] [stdout]     |               ^^^ could not find `VMS` in `arch`
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> kernel/src/arch/mod.rs:21:10
[INFO] [stdout]     |
[INFO] [stdout]  20 | #[cfg(target_arch = "riscv64")]
[INFO] [stdout]     |       ----------------------- the item is gated behind the `riscv64` feature
[INFO] [stdout]  21 | pub type VMS = riscv::vms::Sv39;
[INFO] [stdout]     |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `VMS` in `arch`
[INFO] [stdout]    --> kernel/src/main.rs:356:10
[INFO] [stdout]     |
[INFO] [stdout] 356 |             arch::VMS::add(
[INFO] [stdout]     |                   ^^^ could not find `VMS` in `arch`
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> kernel/src/arch/mod.rs:21:10
[INFO] [stdout]     |
[INFO] [stdout]  20 | #[cfg(target_arch = "riscv64")]
[INFO] [stdout]     |       ----------------------- the item is gated behind the `riscv64` feature
[INFO] [stdout]  21 | pub type VMS = riscv::vms::Sv39;
[INFO] [stdout]     |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `VMS` in `arch`
[INFO] [stdout]    --> kernel/src/main.rs:382:8
[INFO] [stdout]     |
[INFO] [stdout] 382 |     arch::VMS::clear_identity_maps();
[INFO] [stdout]     |           ^^^ could not find `VMS` in `arch`
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> kernel/src/arch/mod.rs:21:10
[INFO] [stdout]     |
[INFO] [stdout]  20 | #[cfg(target_arch = "riscv64")]
[INFO] [stdout]     |       ----------------------- the item is gated behind the `riscv64` feature
[INFO] [stdout]  21 | pub type VMS = riscv::vms::Sv39;
[INFO] [stdout]     |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `VMS` in `arch`
[INFO] [stdout]    --> kernel/src/main.rs:385:35
[INFO] [stdout]     |
[INFO] [stdout] 385 |     let init = task::Task::new(arch::VMS::current()).expect("Failed to create task");
[INFO] [stdout]     |                                      ^^^ could not find `VMS` in `arch`
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> kernel/src/arch/mod.rs:21:10
[INFO] [stdout]     |
[INFO] [stdout]  20 | #[cfg(target_arch = "riscv64")]
[INFO] [stdout]     |       ----------------------- the item is gated behind the `riscv64` feature
[INFO] [stdout]  21 | pub type VMS = riscv::vms::Sv39;
[INFO] [stdout]     |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `VMS` in `arch`
[INFO] [stdout]    --> kernel/src/main.rs:390:10
[INFO] [stdout]     |
[INFO] [stdout] 390 |             arch::VMS::add(
[INFO] [stdout]     |                   ^^^ could not find `VMS` in `arch`
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> kernel/src/arch/mod.rs:21:10
[INFO] [stdout]     |
[INFO] [stdout]  20 | #[cfg(target_arch = "riscv64")]
[INFO] [stdout]     |       ----------------------- the item is gated behind the `riscv64` feature
[INFO] [stdout]  21 | pub type VMS = riscv::vms::Sv39;
[INFO] [stdout]     |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `ELF_MACHINE` in module `arch`
[INFO] [stdout]    --> kernel/src/elf.rs:182:9
[INFO] [stdout]     |
[INFO] [stdout] 182 |         arch::ELF_MACHINE,
[INFO] [stdout]     |               ^^^^^^^^^^^ not found in `arch`
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> kernel/src/arch/mod.rs:14:32
[INFO] [stdout]     |
[INFO] [stdout]  13 | #[cfg(any(target_arch = "riscv64", target_arch = "riscv32"))]
[INFO] [stdout]     |          -------------------------------------------------- the item is gated here
[INFO] [stdout]  14 | pub use riscv::elf::MACHINE as ELF_MACHINE;
[INFO] [stdout]     |                                ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `ELF_FLAGS` in module `arch`
[INFO] [stdout]    --> kernel/src/elf.rs:186:35
[INFO] [stdout]     |
[INFO] [stdout] 186 |     assert_eq!(header.flags & !arch::ELF_FLAGS, 0, "Unsupported flags");
[INFO] [stdout]     |                                      ^^^^^^^^^ not found in `arch`
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> kernel/src/arch/mod.rs:27:11
[INFO] [stdout]     |
[INFO] [stdout]  26 | #[cfg(any(target_arch = "riscv64", target_arch = "riscv32"))]
[INFO] [stdout]     |          -------------------------------------------------- the item is gated here
[INFO] [stdout]  27 | pub const ELF_FLAGS: u32 = riscv::elf::RVC | riscv::elf::FLOAT_ABI_DOUBLE;
[INFO] [stdout]     |           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `reserve` in module `interrupts`
[INFO] [stdout]    --> kernel/src/syscall.rs:466:22
[INFO] [stdout]     |
[INFO] [stdout] 466 |             match interrupts::reserve(interrupt as u16, address) {
[INFO] [stdout]     |                               ^^^^^^^ not found in `interrupts`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `set_controller` in module `arch::interrupts`
[INFO] [stdout]    --> kernel/src/syscall.rs:529:31
[INFO] [stdout]     |
[INFO] [stdout] 529 |             unsafe { arch::interrupts::set_controller(MapRange::Direct(ppn_range), max_devices) };
[INFO] [stdout]     |                                        ^^^^^^^^^^^^^^ not found in `arch::interrupts`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HART_STACKS` in module `crate::memory::reserved`
[INFO] [stdout]    --> kernel/src/task/executor.rs:117:56
[INFO] [stdout]     |
[INFO] [stdout] 117 |         const STACK_ADDRESS: Page = crate::memory::reserved::HART_STACKS.start;
[INFO] [stdout]     |                                                              ^^^^^^^^^^^ not found in `crate::memory::reserved`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HART_STACKS` in module `crate::memory::reserved`
[INFO] [stdout]    --> kernel/src/task/executor.rs:122:30
[INFO] [stdout]     |
[INFO] [stdout] 122 |                 crate::memory::reserved::HART_STACKS.start.skip(1).unwrap()
[INFO] [stdout]     |                                          ^^^^^^^^^^^ not found in `crate::memory::reserved`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `TASK_GROUPS` in module `reserved`
[INFO] [stdout]   --> kernel/src/task/group.rs:18:13
[INFO] [stdout]    |
[INFO] [stdout] 18 |         reserved::TASK_GROUPS.start.as_non_null_ptr().cast(),
[INFO] [stdout]    |                   ^^^^^^^^^^^ not found in `reserved`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `TASK_GROUPS` in module `reserved`
[INFO] [stdout]   --> kernel/src/task/group.rs:19:13
[INFO] [stdout]    |
[INFO] [stdout] 19 |         reserved::TASK_GROUPS.byte_count(),
[INFO] [stdout]    |                   ^^^^^^^^^^^ not found in `reserved`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `VMS` in module `arch`
[INFO] [stdout]   --> kernel/src/task/mod.rs:76:24
[INFO] [stdout]    |
[INFO] [stdout] 76 |     virtual_memory: arch::VMS,
[INFO] [stdout]    |                           ^^^ not found in `arch`
[INFO] [stdout]    |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]   --> kernel/src/arch/mod.rs:21:10
[INFO] [stdout]    |
[INFO] [stdout] 20 | #[cfg(target_arch = "riscv64")]
[INFO] [stdout]    |       ----------------------- the item is gated behind the `riscv64` feature
[INFO] [stdout] 21 | pub type VMS = riscv::vms::Sv39;
[INFO] [stdout]    |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `RegisterState` in module `arch`
[INFO] [stdout]   --> kernel/src/task/mod.rs:83:24
[INFO] [stdout]    |
[INFO] [stdout] 83 |     register_state: arch::RegisterState,
[INFO] [stdout]    |                           ^^^^^^^^^^^^^ not found in `arch`
[INFO] [stdout]    |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]   --> kernel/src/arch/mod.rs:17:16
[INFO] [stdout]    |
[INFO] [stdout] 16 | #[cfg(any(target_arch = "riscv64", target_arch = "riscv32"))]
[INFO] [stdout]    |          -------------------------------------------------- the item is gated here
[INFO] [stdout] 17 | pub use riscv::RegisterState;
[INFO] [stdout]    |                ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HART_STACKS` in module `memory::reserved`
[INFO] [stdout]    --> kernel/src/task/mod.rs:111:47
[INFO] [stdout]     |
[INFO] [stdout] 111 | const STACK_ADDRESS: Page = memory::reserved::HART_STACKS.start;
[INFO] [stdout]     |                                               ^^^^^^^^^^^ not found in `memory::reserved`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `TASK_DATA` in module `memory::reserved`
[INFO] [stdout]    --> kernel/src/task/mod.rs:112:56
[INFO] [stdout]     |
[INFO] [stdout] 112 | static mut TASK_DATA_ADDRESS: Page = memory::reserved::TASK_DATA.start;
[INFO] [stdout]     |                                                        ^^^^^^^^^ not found in `memory::reserved`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `VMS` in module `arch`
[INFO] [stdout]    --> kernel/src/task/mod.rs:116:24
[INFO] [stdout]     |
[INFO] [stdout] 116 |     pub fn new(vms: arch::VMS) -> Result<Self, AllocateError> {
[INFO] [stdout]     |                           ^^^ not found in `arch`
[INFO] [stdout]     |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]    --> kernel/src/arch/mod.rs:21:10
[INFO] [stdout]     |
[INFO] [stdout]  20 | #[cfg(target_arch = "riscv64")]
[INFO] [stdout]     |       ----------------------- the item is gated behind the `riscv64` feature
[INFO] [stdout]  21 | pub type VMS = riscv::vms::Sv39;
[INFO] [stdout]     |          ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `dump_vms_map` in module `memory::reserved`
[INFO] [stdout]    --> kernel/src/main.rs:317:20
[INFO] [stdout]     |
[INFO] [stdout] 317 |     memory::reserved::dump_vms_map();
[INFO] [stdout]     |                       ^^^^^^^^^^^^ not found in `memory::reserved`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DEVICE_TREE` in module `memory::reserved`
[INFO] [stdout]    --> kernel/src/main.rs:352:35
[INFO] [stdout]     |
[INFO] [stdout] 352 |     let mut addr = memory::reserved::DEVICE_TREE.start;
[INFO] [stdout]     |                                      ^^^^^^^^^^^ not found in `memory::reserved`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `lang_items` is internal to the compiler or standard library
[INFO] [stdout]   --> kernel/src/main.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | #![feature(lang_items)]
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: using it is strongly discouraged
[INFO] [stdout]    = note: `#[warn(internal_features)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `link_llvm_intrinsics` is internal to the compiler or standard library
[INFO] [stdout]   --> kernel/src/main.rs:34:12
[INFO] [stdout]    |
[INFO] [stdout] 34 | #![feature(link_llvm_intrinsics)]
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: using it is strongly discouraged
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `ptr_internals` is internal to the compiler or standard library
[INFO] [stdout]   --> kernel/src/main.rs:29:12
[INFO] [stdout]    |
[INFO] [stdout] 29 | #![feature(ptr_internals)]
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: using it is strongly discouraged
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::arch::Page`
[INFO] [stdout]  --> kernel/src/memory/mod.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub use crate::arch::Page;
[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: `core::mem`
[INFO] [stdout]   --> kernel/src/memory/reserved.rs:40:5
[INFO] [stdout]    |
[INFO] [stdout] 40 | use core::mem;
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused macro definition: `page`
[INFO] [stdout]   --> kernel/src/memory/reserved.rs:76:14
[INFO] [stdout]    |
[INFO] [stdout] 76 | macro_rules! page {
[INFO] [stdout]    |              ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_macros)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition name: `fals`
[INFO] [stdout]    --> kernel/src/memory/allocator.rs:112:7
[INFO] [stdout]     |
[INFO] [stdout] 112 | #[cfg(fals)]
[INFO] [stdout]     |       ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: expected names are: `docsrs`, `feature`, and `test` and 31 more
[INFO] [stdout]     = help: consider using a Cargo feature instead
[INFO] [stdout]     = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[INFO] [stdout]              [lints.rust]
[INFO] [stdout]              unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fals)'] }
[INFO] [stdout]     = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(fals)");` to the top of the `build.rs`
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]     = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition name: `fals`
[INFO] [stdout]    --> kernel/src/memory/allocator.rs:130:7
[INFO] [stdout]     |
[INFO] [stdout] 130 | #[cfg(fals)]
[INFO] [stdout]     |       ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider using a Cargo feature instead
[INFO] [stdout]     = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[INFO] [stdout]              [lints.rust]
[INFO] [stdout]              unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fals)'] }
[INFO] [stdout]     = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(fals)");` to the top of the `build.rs`
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition name: `fals`
[INFO] [stdout]    --> kernel/src/memory/allocator.rs:135:7
[INFO] [stdout]     |
[INFO] [stdout] 135 | #[cfg(fals)]
[INFO] [stdout]     |       ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider using a Cargo feature instead
[INFO] [stdout]     = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[INFO] [stdout]              [lints.rust]
[INFO] [stdout]              unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fals)'] }
[INFO] [stdout]     = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(fals)");` to the top of the `build.rs`
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition name: `fals`
[INFO] [stdout]    --> kernel/src/memory/allocator.rs:140:7
[INFO] [stdout]     |
[INFO] [stdout] 140 | #[cfg(fals)]
[INFO] [stdout]     |       ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider using a Cargo feature instead
[INFO] [stdout]     = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[INFO] [stdout]              [lints.rust]
[INFO] [stdout]              unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fals)'] }
[INFO] [stdout]     = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(fals)");` to the top of the `build.rs`
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PPNDirect`
[INFO] [stdout]   --> kernel/src/memory/mod.rs:16:23
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub use ppn::{PPNBox, PPNDirect, PPNRange, PPN};
[INFO] [stdout]    |                       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `128`
[INFO] [stdout]  --> kernel/src/task/address.rs:8:2
[INFO] [stdout]   |
[INFO] [stdout] 8 |     target_pointer_width = "128"
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: expected values for `target_pointer_width` are: `16`, `32`, and `64`
[INFO] [stdout]   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `128`
[INFO] [stdout]   --> kernel/src/task/address.rs:27:7
[INFO] [stdout]    |
[INFO] [stdout] 27 | #[cfg(target_pointer_width = "128")]
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected values for `target_pointer_width` are: `16`, `32`, and `64`
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `128`
[INFO] [stdout]   --> kernel/src/task/address.rs:45:7
[INFO] [stdout]    |
[INFO] [stdout] 45 | #[cfg(target_pointer_width = "128")]
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected values for `target_pointer_width` are: `16`, `32`, and `64`
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `arbitrary_enum_discriminant` has been stable since 1.66.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> kernel/src/main.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | #![feature(arbitrary_enum_discriminant)]
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(stable_features)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `const_mut_refs` has been stable since 1.83.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> kernel/src/main.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | #![feature(const_mut_refs)]
[INFO] [stdout]   |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `const_panic` has been stable since 1.57.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> kernel/src/main.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 9 | #![feature(const_panic)]
[INFO] [stdout]   |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `const_raw_ptr_deref` has been stable since 1.58.0 and no longer requires an attribute to enable
[INFO] [stdout]   --> kernel/src/main.rs:12:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | #![feature(const_raw_ptr_deref)]
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `destructuring_assignment` has been stable since 1.59.0 and no longer requires an attribute to enable
[INFO] [stdout]   --> kernel/src/main.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | #![feature(destructuring_assignment)]
[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]   --> kernel/src/main.rs:21:12
[INFO] [stdout]    |
[INFO] [stdout] 21 | #![feature(naked_functions)]
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `asm` has been stable since 1.59.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> kernel/src/main.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | #![feature(asm)]
[INFO] [stdout]   |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `const_option` has been stable since 1.83.0 and no longer requires an attribute to enable
[INFO] [stdout]  --> kernel/src/main.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | #![feature(const_option)]
[INFO] [stdout]   |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `const_ptr_is_null` has been stable since 1.84.0 and no longer requires an attribute to enable
[INFO] [stdout]   --> kernel/src/main.rs:10:12
[INFO] [stdout]    |
[INFO] [stdout] 10 | #![feature(const_ptr_is_null)]
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `const_ptr_offset` has been stable since 1.61.0 and no longer requires an attribute to enable
[INFO] [stdout]   --> kernel/src/main.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | #![feature(const_ptr_offset)]
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `global_asm` has been stable since 1.59.0 and no longer requires an attribute to enable
[INFO] [stdout]   --> kernel/src/main.rs:15:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | #![feature(global_asm)]
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `maybe_uninit_extra` has been stable since 1.60.0 and no longer requires an attribute to enable
[INFO] [stdout]   --> kernel/src/main.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 | #![feature(maybe_uninit_extra)]
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `nonnull_slice_from_raw_parts` has been stable since 1.70.0 and no longer requires an attribute to enable
[INFO] [stdout]   --> kernel/src/main.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | #![feature(nonnull_slice_from_raw_parts)]
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `once_cell` has been stable since 1.70.0 and no longer requires an attribute to enable
[INFO] [stdout]   --> kernel/src/main.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 26 | #![feature(once_cell)]
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `option_result_unwrap_unchecked` has been stable since 1.58.0 and no longer requires an attribute to enable
[INFO] [stdout]   --> kernel/src/main.rs:24:12
[INFO] [stdout]    |
[INFO] [stdout] 24 | #![feature(option_result_unwrap_unchecked)]
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `panic_info_message` has been stable since 1.81.0 and no longer requires an attribute to enable
[INFO] [stdout]   --> kernel/src/main.rs:27:12
[INFO] [stdout]    |
[INFO] [stdout] 27 | #![feature(panic_info_message)]
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the feature `slice_ptr_len` has been stable since 1.79.0 and no longer requires an attribute to enable
[INFO] [stdout]   --> kernel/src/main.rs:30:12
[INFO] [stdout]    |
[INFO] [stdout] 30 | #![feature(slice_ptr_len)]
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0635]: unknown feature `maybe_uninit_uninit_array`
[INFO] [stdout]   --> kernel/src/main.rs:20:12
[INFO] [stdout]    |
[INFO] [stdout] 20 | #![feature(maybe_uninit_uninit_array)]
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VMS`
[INFO] [stdout]    --> kernel/src/allocator/arena.rs:120:6
[INFO] [stdout]     |
[INFO] [stdout] 120 |                     VMS::add(
[INFO] [stdout]     |                     ^^^ use of undeclared type `VMS`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> kernel/src/main.rs:61:9
[INFO] [stdout]    |
[INFO] [stdout] 61 |     if let Some(msg) = info.message() {
[INFO] [stdout]    |            ^^^^^^^^^   -------------- this expression has type `PanicMessage<'_>`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            expected `PanicMessage<'_>`, found `Option<_>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `PanicMessage<'_>`
[INFO] [stdout]                 found enum `Option<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::arch::vms::VirtualMemorySystem`
[INFO] [stdout]   --> kernel/src/allocator/arena.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use crate::arch::vms::VirtualMemorySystem;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `arch::vms::VirtualMemorySystem`
[INFO] [stdout]    --> kernel/src/main.rs:379:6
[INFO] [stdout]     |
[INFO] [stdout] 379 |     use arch::vms::VirtualMemorySystem;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0425, E0432, E0433, E0557, E0635.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `kernel` (bin "kernel") due to 55 previous errors; 33 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "e0687fed3487ccb3cb9eb89c0d6ce42080dab28c8b2efd4a15844d87e3c64a6e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e0687fed3487ccb3cb9eb89c0d6ce42080dab28c8b2efd4a15844d87e3c64a6e", kill_on_drop: false }`
[INFO] [stdout] e0687fed3487ccb3cb9eb89c0d6ce42080dab28c8b2efd4a15844d87e3c64a6e
