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

Mac os: cargo build --target aarch64-linux-android --release error[E0308]: mismatched types #7

Open
Javanew opened this issue Jul 23, 2024 · 0 comments

Comments

@Javanew
Copy link

Javanew commented Jul 23, 2024

cargo build --target aarch64-linux-android --release

error[E0308]: mismatched types
--> /Users/javanew/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libuv-2.9.0/src/requests/fs.rs:112:46
|
112 | ...fe { CStr::from_ptr(ptr).to_string_lossy().into_owned() })
| -------------- ^^^ 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
--> /Users/javanew/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/ffi/c_str.rs:274:25
|
274 | pub const unsafe fn from_ptr<'a>(ptr: *const c_char) -> &'a CStr {
| ^^^^^^^^

@Javanew Javanew changed the title cargo build --target aarch64-linux-android --release error[E0308]: mismatched types Mac os: cargo build --target aarch64-linux-android --release error[E0308]: mismatched types Jul 26, 2024
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