vasi / qcow2-fuse

Gain access to qcow2 virtual disk images as a user-space filesystem
MIT License
60 stars 5 forks source link

could not compile `fuse` due to 2 previous errors #5

Open mores opened 2 years ago

mores commented 2 years ago

OS: Ubuntu 22.04 LTS CPU: arm64

error[E0277]: a value of type Vec<*const i8> cannot be built from an iterator over elements of type *const u8 --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/fuse-0.2.8/src/channel.rs:65:67 65 let argptrs: Vec<*const i8> = args.iter().map( s s.as_ptr()).collect(); ^^^^^^^ value of type Vec<*const i8> cannot be built from std::iter::Iterator<Item=*const u8>
 = help: the trait `FromIterator<*const u8>` is not implemented for `Vec<*const i8>`

note: required by a bound in collect

error[E0308]: mismatched types --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/fuse-0.2.8/src/channel.rs:66:54 66 f(&fuse_args { argc: argptrs.len() as i32, argv: argptrs.as_ptr(), allocated: 0 }) ^^^^^^^^^^^^^^^^ expected u8, found i8

= note: expected raw pointer *const *const u8 found raw pointer *const *const i8

Some errors have detailed explanations: E0277, E0308. For more information about an error, try rustc --explain E0277. error: failed to compile qcow2-fuse v0.1.1, intermediate artifacts can be found at /tmp/cargo-installJLmlCk

Caused by: could not compile fuse due to 2 previous errors root@primary:~#