Compiling typenum v1.20.1 Compiling semver v1.0.28 Compiling turkos-os-exceptions v0.1.0 (/reports/os-implementation/K2155-shutdown-native-integrated-candidate-X5hbyj/sources/os-exceptions) Compiling cfg-if v1.0.5 Compiling cpufeatures v0.3.1 Compiling signature v3.0.0 Compiling subtle v2.6.1 Compiling turkos-os-shell-words v0.1.0 (/reports/os-implementation/K2155-shutdown-native-integrated-candidate-X5hbyj/sources/os-shell-words) Compiling turkos-bootinfo v0.0.1 (/reports/os-implementation/K2155-shutdown-native-integrated-candidate-X5hbyj/sources/bootinfo) Compiling zeroize v1.9.1 Compiling ed25519 v3.0.0 Compiling turkos-os-syscall-abi v0.1.0 (/reports/os-implementation/K2155-shutdown-native-integrated-candidate-X5hbyj/sources/os-syscall-abi) Compiling turkos-os-shell-dispatch v0.1.0 (/reports/os-implementation/K2155-shutdown-native-integrated-candidate-X5hbyj/sources/os-shell-dispatch) Compiling turkos-os-shell-input v0.1.0 (/reports/os-implementation/K2155-shutdown-native-integrated-candidate-X5hbyj/sources/os-shell-input) Compiling turkos-os-shell-foreground v0.1.0 (/reports/os-implementation/K2155-shutdown-native-integrated-candidate-X5hbyj/sources/os-shell-foreground) Compiling turkos-os-init-reaper v0.1.0 (/reports/os-implementation/K2155-shutdown-native-integrated-candidate-X5hbyj/sources/os-init-reaper) Compiling turkos-os-user-runtime-io v0.1.0 (/reports/os-implementation/K2155-shutdown-native-integrated-candidate-X5hbyj/sources/os-user-runtime-io) Compiling turkos-os-user-runtime-abi v0.1.0 (/reports/os-implementation/K2155-shutdown-native-integrated-candidate-X5hbyj/sources/os-user-runtime-abi) Compiling rustc_version v0.4.1 Compiling turkos-os-shell-echo v0.1.0 (/reports/os-implementation/K2155-shutdown-native-integrated-candidate-X5hbyj/sources/os-shell-echo) Compiling curve25519-dalek v5.0.0 Compiling hybrid-array v0.4.15 Compiling crypto-common v0.2.2 Compiling block-buffer v0.12.1 Compiling digest v0.11.3 Compiling sha2 v0.11.0 Compiling ed25519-dalek v3.0.0 Compiling turkos-kernel v0.0.1 (/reports/os-implementation/K2155-shutdown-native-integrated-candidate-X5hbyj/sources/kernel) error[E0308]: mismatched types --> src/k2155-native-probe.rs:46:125 | 46 | ...;31],sp_el0:0,elr:0,spsr:0,esr:0,far:0,q:[[0;2];32],fpcr:0,fpsr:0,slot:0,padding:0};3]; | ^^^^^ expected `u128`, found `[{integer}; 2]` error[E0560]: struct `feature_el0::Frame` has no field named `padding` --> src/k2155-native-probe.rs:46:156 | 46 | ...r:0,q:[[0;2];32],fpcr:0,fpsr:0,slot:0,padding:0};3]; | ^^^^^^^ `feature_el0::Frame` does not have this field | = note: all struct fields are already assigned error[E0277]: the trait bound `feature_el0::Frame: core::marker::Copy` is not satisfied --> src/k2155-native-probe.rs:46:68 | 46 | ...0::Frame;3]=[el0::Frame{x:[0;31],sp_el0:0,elr:0,spsr:0,esr:0,far:0,q:[[0;2];32],fpcr:0,fpsr:0,slot:0,padding:0};3]; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `core::marker::Copy` is not implemented for `feature_el0::Frame` | = note: the `Copy` trait is required because this value will be copied for each element of the array = help: consider using `core::array::from_fn` to initialize the array = help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html for more information help: consider annotating `feature_el0::Frame` with `#[derive(Copy)]` --> src/feature_el0.rs:20:1 | 20 + #[derive(Copy)] 21 | pub struct Frame { pub x:[u64;31], pub sp_el0:u64, pub elr:u64, pub spsr:u64, pub esr:u64, pub far:u64, | error[E0507]: cannot move out of `*frame` which is behind a mutable reference --> src/k2155-native-probe.rs:71:97 | 71 | unsafe{write_volatile(addr_of_mut!(OS_K2155_EL0_FRAMES).cast::().add(index),*frame)}; | ^^^^^^ move occurs because `*frame` has type `feature_el0::Frame`, which does not implement the `Copy` trait | note: if `feature_el0::Frame` implemented `Clone`, you could clone the value --> src/feature_el0.rs:20:1 | 20 | pub struct Frame { pub x:[u64;31], pub sp_el0:u64, pub elr:u64, pub spsr:u64, pub esr:u64, pub far:u64, | ^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type | ::: src/k2155-native-probe.rs:71:97 | 71 | unsafe{write_volatile(addr_of_mut!(OS_K2155_EL0_FRAMES).cast::().add(index),*frame)}; | ------ you could clone this value Some errors have detailed explanations: E0277, E0308, E0507, E0560. For more information about an error, try `rustc --explain E0277`. error: could not compile `turkos-kernel` (bin "turkos-kernel") due to 4 previous errors