ttop fails to install on my arm64 based Arch linux VM running on an Apple silicon M3 host.
Command: cargo install ttop
Output:
Compiling trueno-viz v0.1.12
error[E0308]: mismatched types
--> /home/lex/.config/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/trueno-viz-0.1.12/src/monitor/collectors/gpu_amd.rs:203:32
|
203 | CStr::from_ptr(name_buf.as_ptr())
| -------------- ^^^^^^^^^^^^^^^^^ expected `*const u8`, found `*const i8`
| |
| arguments to this function are incorrect
|
= note: expected raw pointer `*const u8`
found raw pointer `*const i8`
note: associated function defined here
--> /home/lex/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ffi/c_str.rs:255:25
|
255 | pub const unsafe fn from_ptr<'a>(ptr: *const c_char) -> &'a CStr {
| ^^^^^^^^
For more information about this error, try `rustc --explain E0308`.
error: could not compile `trueno-viz` (lib) due to 1 previous error
error: failed to compile `ttop v0.2.2`, intermediate artifacts can be found at `/tmp/target`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
ttop fails to install on my arm64 based Arch linux VM running on an Apple silicon M3 host.
Command:
cargo install ttopOutput: