Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Compiling error - filebuffer v0.4.0: expected i8, found u8 #274

Open
yonas opened this issue Nov 8, 2022 · 0 comments
Open

Compiling error - filebuffer v0.4.0: expected i8, found u8 #274

yonas opened this issue Nov 8, 2022 · 0 comments

Comments

@yonas
Copy link

yonas commented Nov 8, 2022

$ cargo build --release
...
   Compiling filebuffer v0.4.0
error[E0308]: mismatched types
    --> /home/yonas/.cargo/registry/src/github.com-1ecc6299db9ec823/filebuffer-0.4.0/src/unix.rs:64:60
     |
64   |         libc::mincore(buffer as *mut libc::c_void, length, residency_uchar)
     |         -------------                                      ^^^^^^^^^^^^^^^ expected `i8`, found `u8`
     |         |
     |         arguments to this function are incorrect
     |
     = note: expected raw pointer `*mut i8`
                found raw pointer `*mut u8`
note: function defined here
    --> /home/yonas/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.132/src/unix/bsd/freebsdlike/mod.rs:1539:12
     |
1539 |     pub fn mincore(addr: *const ::c_void, len: ::size_t, vec: *mut ::c_char) -> ::c_int;
     |            ^^^^^^^

For more information about this error, try `rustc --explain E0308`.
error: could not compile `filebuffer` due to previous error
warning: build failed, waiting for other jobs to finish...

OS: FreeBSD 13.1 amd64
Cargo: 1.63.0

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

No branches or pull requests

1 participant