Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could not compile fuse due to 2 previous errors #5

Open
mores opened this issue Jun 19, 2022 · 0 comments
Open

could not compile fuse due to 2 previous errors #5

mores opened this issue Jun 19, 2022 · 0 comments

Comments

@mores
Copy link

mores commented Jun 19, 2022

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:~#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant