Checking typenum v1.20.1 Checking turkos-os-exceptions v0.1.0 (/reports/os-implementation/K1940-sandbox-quotas-staging-build-Zor8rq/source/os-exceptions) Checking cpufeatures v0.3.1 Checking cfg-if v1.0.5 Checking zeroize v1.9.1 Checking turkos-os-shell-input v0.1.0 (/reports/os-implementation/K1940-sandbox-quotas-staging-build-Zor8rq/source/os-shell-input) Checking turkos-os-shell-foreground v0.1.0 (/reports/os-implementation/K1940-sandbox-quotas-staging-build-Zor8rq/source/os-shell-foreground) Checking turkos-os-init-reaper v0.1.0 (/reports/os-implementation/K1940-sandbox-quotas-staging-build-Zor8rq/source/os-init-reaper) Checking turkos-bootinfo v0.0.1 (/reports/os-implementation/K1940-sandbox-quotas-staging-build-Zor8rq/source/bootinfo) Checking turkos-os-syscall-abi v0.1.0 (/reports/os-implementation/K1940-sandbox-quotas-staging-build-Zor8rq/source/os-syscall-abi) Checking turkos-os-user-runtime-io v0.1.0 (/reports/os-implementation/K1940-sandbox-quotas-staging-build-Zor8rq/source/os-user-runtime-io) Checking turkos-os-user-runtime-abi v0.1.0 (/reports/os-implementation/K1940-sandbox-quotas-staging-build-Zor8rq/source/os-user-runtime-abi) Checking turkos-os-shell-echo v0.1.0 (/reports/os-implementation/K1940-sandbox-quotas-staging-build-Zor8rq/source/os-shell-echo) Checking hybrid-array v0.4.15 Checking crypto-common v0.2.2 Checking block-buffer v0.12.1 Checking digest v0.11.3 Checking sha2 v0.11.0 Checking turkos-kernel v0.0.1 (/reports/os-implementation/K1940-sandbox-quotas-staging-build-Zor8rq/source/kernel) warning: unexpected `cfg` condition value: `host-fixture` --> src/runtime/process_table.rs:180:15 | 180 | #[cfg(all(feature = "host-fixture", not(target_os = "none")))] | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: expected values for `feature` are: `el0-fault-test`, `elf-hello-test`, `elf-ident-test`, `elf-layout-test`, `elf-load-test`, `elf-sequence-test`, `elf-stack-test`, `exception-test`, `fault-test`, `fiq-label-test`, `frame-stress-test`, `heap-panic-test`, `heap-test`, `ipc-basic-test`, `ipc-multi-test`, `ipc-timeline-test`, `ipc-user-test`, `ipc-wait-test`, `irq-gp-test`, `irq-guard-test`, `irq-return-test`, `irq-service-test`, `irq-sgi-test`, `irq-spurious-test`, `irq-spurious-vector-guard-test`, `irq-spurious-vector-test`, `irq-timer-late-test`, `irq-timer-storm-test`, `irq-timer-test`, `irq-unknown-test`, `log-secret-test`, `mmu-brk-test`, `mmu-guard-test`, `mmu-mmio-exec-test`, and `mmu-no-map-test` and 140 more = help: consider adding `host-fixture` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration = note: `#[warn(unexpected_cfgs)]` on by default warning: unexpected `cfg` condition value: `host-fixture` --> src/runtime/process_table.rs:184:15 | 184 | #[cfg(all(feature = "host-fixture", not(target_os = "none")))] | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: expected values for `feature` are: `el0-fault-test`, `elf-hello-test`, `elf-ident-test`, `elf-layout-test`, `elf-load-test`, `elf-sequence-test`, `elf-stack-test`, `exception-test`, `fault-test`, `fiq-label-test`, `frame-stress-test`, `heap-panic-test`, `heap-test`, `ipc-basic-test`, `ipc-multi-test`, `ipc-timeline-test`, `ipc-user-test`, `ipc-wait-test`, `irq-gp-test`, `irq-guard-test`, `irq-return-test`, `irq-service-test`, `irq-sgi-test`, `irq-spurious-test`, `irq-spurious-vector-guard-test`, `irq-spurious-vector-test`, `irq-timer-late-test`, `irq-timer-storm-test`, `irq-timer-test`, `irq-unknown-test`, `log-secret-test`, `mmu-brk-test`, `mmu-guard-test`, `mmu-mmio-exec-test`, and `mmu-no-map-test` and 140 more = help: consider adding `host-fixture` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration warning: unexpected `cfg` condition value: `host-fixture` --> src/runtime/process_guest.rs:888:15 | 888 | #[cfg(all(feature = "host-fixture", not(target_os = "none")))] | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: expected values for `feature` are: `el0-fault-test`, `elf-hello-test`, `elf-ident-test`, `elf-layout-test`, `elf-load-test`, `elf-sequence-test`, `elf-stack-test`, `exception-test`, `fault-test`, `fiq-label-test`, `frame-stress-test`, `heap-panic-test`, `heap-test`, `ipc-basic-test`, `ipc-multi-test`, `ipc-timeline-test`, `ipc-user-test`, `ipc-wait-test`, `irq-gp-test`, `irq-guard-test`, `irq-return-test`, `irq-service-test`, `irq-sgi-test`, `irq-spurious-test`, `irq-spurious-vector-guard-test`, `irq-spurious-vector-test`, `irq-timer-late-test`, `irq-timer-storm-test`, `irq-timer-test`, `irq-unknown-test`, `log-secret-test`, `mmu-brk-test`, `mmu-guard-test`, `mmu-mmio-exec-test`, and `mmu-no-map-test` and 140 more = help: consider adding `host-fixture` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration warning: unexpected `cfg` condition value: `host-fixture` --> src/runtime/process_guest.rs:904:15 | 904 | #[cfg(all(feature = "host-fixture", not(target_os = "none")))] | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: expected values for `feature` are: `el0-fault-test`, `elf-hello-test`, `elf-ident-test`, `elf-layout-test`, `elf-load-test`, `elf-sequence-test`, `elf-stack-test`, `exception-test`, `fault-test`, `fiq-label-test`, `frame-stress-test`, `heap-panic-test`, `heap-test`, `ipc-basic-test`, `ipc-multi-test`, `ipc-timeline-test`, `ipc-user-test`, `ipc-wait-test`, `irq-gp-test`, `irq-guard-test`, `irq-return-test`, `irq-service-test`, `irq-sgi-test`, `irq-spurious-test`, `irq-spurious-vector-guard-test`, `irq-spurious-vector-test`, `irq-timer-late-test`, `irq-timer-storm-test`, `irq-timer-test`, `irq-unknown-test`, `log-secret-test`, `mmu-brk-test`, `mmu-guard-test`, `mmu-mmio-exec-test`, and `mmu-no-map-test` and 140 more = help: consider adding `host-fixture` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration warning: unexpected `cfg` condition value: `host-fixture` --> src/runtime/process_guest.rs:908:15 | 908 | #[cfg(all(feature = "host-fixture", not(target_os = "none")))] | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: expected values for `feature` are: `el0-fault-test`, `elf-hello-test`, `elf-ident-test`, `elf-layout-test`, `elf-load-test`, `elf-sequence-test`, `elf-stack-test`, `exception-test`, `fault-test`, `fiq-label-test`, `frame-stress-test`, `heap-panic-test`, `heap-test`, `ipc-basic-test`, `ipc-multi-test`, `ipc-timeline-test`, `ipc-user-test`, `ipc-wait-test`, `irq-gp-test`, `irq-guard-test`, `irq-return-test`, `irq-service-test`, `irq-sgi-test`, `irq-spurious-test`, `irq-spurious-vector-guard-test`, `irq-spurious-vector-test`, `irq-timer-late-test`, `irq-timer-storm-test`, `irq-timer-test`, `irq-unknown-test`, `log-secret-test`, `mmu-brk-test`, `mmu-guard-test`, `mmu-mmio-exec-test`, and `mmu-no-map-test` and 140 more = help: consider adding `host-fixture` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration warning: unexpected `cfg` condition value: `host-fixture` --> src/runtime/process_guest.rs:926:15 | 926 | #[cfg(all(feature = "host-fixture", not(target_os = "none")))] | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: expected values for `feature` are: `el0-fault-test`, `elf-hello-test`, `elf-ident-test`, `elf-layout-test`, `elf-load-test`, `elf-sequence-test`, `elf-stack-test`, `exception-test`, `fault-test`, `fiq-label-test`, `frame-stress-test`, `heap-panic-test`, `heap-test`, `ipc-basic-test`, `ipc-multi-test`, `ipc-timeline-test`, `ipc-user-test`, `ipc-wait-test`, `irq-gp-test`, `irq-guard-test`, `irq-return-test`, `irq-service-test`, `irq-sgi-test`, `irq-spurious-test`, `irq-spurious-vector-guard-test`, `irq-spurious-vector-test`, `irq-timer-late-test`, `irq-timer-storm-test`, `irq-timer-test`, `irq-unknown-test`, `log-secret-test`, `mmu-brk-test`, `mmu-guard-test`, `mmu-mmio-exec-test`, and `mmu-no-map-test` and 140 more = help: consider adding `host-fixture` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration warning: unexpected `cfg` condition value: `host-fixture` --> src/runtime/process_guest.rs:996:23 | 996 | #[cfg(all(feature = "host-fixture", not(target_os = "none")))] | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: expected values for `feature` are: `el0-fault-test`, `elf-hello-test`, `elf-ident-test`, `elf-layout-test`, `elf-load-test`, `elf-sequence-test`, `elf-stack-test`, `exception-test`, `fault-test`, `fiq-label-test`, `frame-stress-test`, `heap-panic-test`, `heap-test`, `ipc-basic-test`, `ipc-multi-test`, `ipc-timeline-test`, `ipc-user-test`, `ipc-wait-test`, `irq-gp-test`, `irq-guard-test`, `irq-return-test`, `irq-service-test`, `irq-sgi-test`, `irq-spurious-test`, `irq-spurious-vector-guard-test`, `irq-spurious-vector-test`, `irq-timer-late-test`, `irq-timer-storm-test`, `irq-timer-test`, `irq-unknown-test`, `log-secret-test`, `mmu-brk-test`, `mmu-guard-test`, `mmu-mmio-exec-test`, and `mmu-no-map-test` and 140 more = help: consider adding `host-fixture` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration warning: unexpected `cfg` condition value: `host-fixture` --> src/runtime/process_guest.rs:1149:19 | 1149 | #[cfg(all(feature = "host-fixture", not(target_os = "none")))] | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: expected values for `feature` are: `el0-fault-test`, `elf-hello-test`, `elf-ident-test`, `elf-layout-test`, `elf-load-test`, `elf-sequence-test`, `elf-stack-test`, `exception-test`, `fault-test`, `fiq-label-test`, `frame-stress-test`, `heap-panic-test`, `heap-test`, `ipc-basic-test`, `ipc-multi-test`, `ipc-timeline-test`, `ipc-user-test`, `ipc-wait-test`, `irq-gp-test`, `irq-guard-test`, `irq-return-test`, `irq-service-test`, `irq-sgi-test`, `irq-spurious-test`, `irq-spurious-vector-guard-test`, `irq-spurious-vector-test`, `irq-timer-late-test`, `irq-timer-storm-test`, `irq-timer-test`, `irq-unknown-test`, `log-secret-test`, `mmu-brk-test`, `mmu-guard-test`, `mmu-mmio-exec-test`, and `mmu-no-map-test` and 140 more = help: consider adding `host-fixture` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration warning: unexpected `cfg` condition value: `host-fixture` --> src/runtime/process_image_recipe.rs:677:15 | 677 | #[cfg(all(feature = "host-fixture", not(target_os = "none")))] | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: expected values for `feature` are: `el0-fault-test`, `elf-hello-test`, `elf-ident-test`, `elf-layout-test`, `elf-load-test`, `elf-sequence-test`, `elf-stack-test`, `exception-test`, `fault-test`, `fiq-label-test`, `frame-stress-test`, `heap-panic-test`, `heap-test`, `ipc-basic-test`, `ipc-multi-test`, `ipc-timeline-test`, `ipc-user-test`, `ipc-wait-test`, `irq-gp-test`, `irq-guard-test`, `irq-return-test`, `irq-service-test`, `irq-sgi-test`, `irq-spurious-test`, `irq-spurious-vector-guard-test`, `irq-spurious-vector-test`, `irq-timer-late-test`, `irq-timer-storm-test`, `irq-timer-test`, `irq-unknown-test`, `log-secret-test`, `mmu-brk-test`, `mmu-guard-test`, `mmu-mmio-exec-test`, and `mmu-no-map-test` and 140 more = help: consider adding `host-fixture` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration warning: unexpected `cfg` condition value: `host-fixture` --> src/runtime/process_image_recipe.rs:681:15 | 681 | #[cfg(all(feature = "host-fixture", not(target_os = "none")))] | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: expected values for `feature` are: `el0-fault-test`, `elf-hello-test`, `elf-ident-test`, `elf-layout-test`, `elf-load-test`, `elf-sequence-test`, `elf-stack-test`, `exception-test`, `fault-test`, `fiq-label-test`, `frame-stress-test`, `heap-panic-test`, `heap-test`, `ipc-basic-test`, `ipc-multi-test`, `ipc-timeline-test`, `ipc-user-test`, `ipc-wait-test`, `irq-gp-test`, `irq-guard-test`, `irq-return-test`, `irq-service-test`, `irq-sgi-test`, `irq-spurious-test`, `irq-spurious-vector-guard-test`, `irq-spurious-vector-test`, `irq-timer-late-test`, `irq-timer-storm-test`, `irq-timer-test`, `irq-unknown-test`, `log-secret-test`, `mmu-brk-test`, `mmu-guard-test`, `mmu-mmio-exec-test`, and `mmu-no-map-test` and 140 more = help: consider adding `host-fixture` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration warning: unused import: `MAX_HEAP_PAGES` --> src/runtime/elf_thread_space.rs:3:42 | 3 | use super::process_heap::{Image, Layout, MAX_HEAP_PAGES}; | ^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default warning: `turkos-kernel` (lib) generated 11 warnings (run `cargo fix --lib -p turkos-kernel` to apply 1 suggestion) warning: unused imports: `DMA_ADDRESS` and `MAP_BAR` --> src/k1935-device-access.rs:2:76 | 2 | use turkos_kernel::runtime::{device_access::{Service,Principal,Error,READY,MAP_BAR,DMA_ADDRESS},device_access_space::Space,elf_segmen... | ^^^^^^^ ^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default warning: unused import: `policy_timer as os_k1100_timer` --> src/main.rs:38952:5 | 38952 | policy_timer as os_k1100_timer,policy_ingress as os_k1100_ingress,policy_source as os_k1100_source}; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: unnecessary parentheses around block return value --> src/main.rs:39563:29 | 39563 | if ordinal>=3 || unsafe{(&*core::ptr::addr_of!(OS_K1100_CONTEXT_HANDLES))}[ordinal as usize].is_none() | ^ ^ | = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default help: remove these parentheses | 39563 - if ordinal>=3 || unsafe{(&*core::ptr::addr_of!(OS_K1100_CONTEXT_HANDLES))}[ordinal as usize].is_none() 39563 + if ordinal>=3 || unsafe{&*core::ptr::addr_of!(OS_K1100_CONTEXT_HANDLES)}[ordinal as usize].is_none() | warning: unused import: `turkos_kernel::runtime::process_table as process` --> src/main.rs:42431:9 | 42431 | use turkos_kernel::runtime::process_table as process; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: unused import: `turkos_kernel::runtime::process_table as process` --> src/main.rs:42731:9 | 42731 | use turkos_kernel::runtime::process_table as process; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: unused import: `turkos_kernel::runtime::process_table as process` --> src/main.rs:43035:9 | 43035 | use turkos_kernel::runtime::process_table as process; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: unreachable statement --> src/main.rs:2378:5 | 2377 | os_k680_kernel_fault(slot, esr as u64, elr as u64); | -------------------------------------------------- any code following this expression is unreachable 2378 | let depth = core::ptr::addr_of_mut!(FATAL_ENTRIES); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement | = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default warning: unreachable statement --> src/main.rs:5547:5 | 5546 | os_k680_panic(); | --------------- any code following this expression is unreachable 5547 | write_line("TURKOS/PANIC"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement warning: unreachable expression --> src/main.rs:24607:9 | 24607 | return park(); | ^^^^^^^------ | | | | | any code following this expression is unreachable | unreachable expression error[E0502]: cannot borrow `*allocator` as mutable because it is also borrowed as immutable --> src/k1940-sandbox-quotas.rs:86:467 | 86 | ...ty=allocator.os_authority();let boot_id=unsafe{read_volatile(core::ptr::addr_of!(OS_K680_EVIDENCE).cast::())};for(i,v)in[(0,1940),(2,boot_id),(3,before),(4,allocator.remaining_pages()),(6,tables.root),(7,regs.3&0x3c0),(10,14),(11,ELF.len()as u64),(60,c as u64),(61,core::mem::size_of::()as u64),(62,core::ptr::addr_of!(OS_K1940_CONTROLLER_LAYOUT)as u64),(63,pointer as u64),(64,160),(65,core::ptr::addr_of!(OS_K1940_SPACE_LAYOUT)as u64),(66,allocator as*mut _ as u64),(67,core::mem::size_of::()as u64),(100,authority as... | --------- immutable borrow occurs here ^^^^^^^^^ mutable borrow occurs here --------- immutable borrow later used here warning: unused variable: `spsr` --> src/main.rs:2367:5 | 2367 | spsr: usize, | ^^^^ help: if this is intentional, prefix it with an underscore: `_spsr` | = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default warning: unnecessary `unsafe` block --> src/main.rs:34068:32 | 34054 | let (e,layout)=unsafe{(&*os_k1080_core()).with_backend_observation(|bridge| { | ------ because it's nested under this `unsafe` block ... 34068 | || unsafe{read_volatile(l.base as *const u64)}!=os_k1080_thread::LOW_CANARY | ^^^^^^ unnecessary `unsafe` block | = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default warning: unnecessary `unsafe` block --> src/main.rs:34069:32 | 34054 | let (e,layout)=unsafe{(&*os_k1080_core()).with_backend_observation(|bridge| { | ------ because it's nested under this `unsafe` block ... 34069 | || unsafe{read_volatile((l.base+l.bytes-8) as *const u64)}!=os_k1080_thread::HIGH_CANARY {park();} | ^^^^^^ unnecessary `unsafe` block warning: unnecessary `unsafe` block --> src/main.rs:34351:15 | 34351 | let saved=unsafe{core::ptr::addr_of!(OS_K1080_EVIDENCE).cast::()}; | ^^^^^^ unnecessary `unsafe` block warning: unnecessary `unsafe` block --> src/main.rs:39738:15 | 39738 | let prior=unsafe{core::ptr::addr_of!(OS_K1080_EVIDENCE).cast::()}; | ^^^^^^ unnecessary `unsafe` block warning: unnecessary `unsafe` block --> src/main.rs:39756:16 | 39756 | let kernel=unsafe{core::ptr::addr_of!(OS_K1080_KERNEL_TABLES).cast::()}; | ^^^^^^ unnecessary `unsafe` block warning: variable does not need to be mutable --> src/main.rs:39869:9 | 39869 | let mut stack=stack; | ----^^^^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default For more information about this error, try `rustc --explain E0502`. warning: `turkos-kernel` (bin "turkos-kernel") generated 16 warnings error: could not compile `turkos-kernel` (bin "turkos-kernel") due to 1 previous error; 16 warnings emitted