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

failure to build on architecture arm64 #193

Closed
alexanderkjall opened this issue Apr 25, 2020 · 0 comments · Fixed by #194
Closed

failure to build on architecture arm64 #193

alexanderkjall opened this issue Apr 25, 2020 · 0 comments · Fixed by #194

Comments

@alexanderkjall
Copy link
Contributor

Hi

I'm packaging this crate for debian, and it fails to build on arm64 with the following error:

error[E0308]: mismatched types
   --> src/menu/wrapper.rs:166:39
    |
166 |             let _ = CString::from_raw(name);
    |                                       ^^^^ expected `u8`, found `i8`
    |
    = note: expected raw pointer `*mut u8`
               found raw pointer `*mut i8`

Full build log can be found here: https://ci.debian.net/data/autopkgtest/testing/arm64/r/rust-ncurses/5114573/log.gz

I think the correct solution should be to cast to c_char instead of i8, per this commit: alexanderkjall@4fe1f7d

But I haven't managed to get hold of a arm64 system to test it yet.

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

Successfully merging a pull request may close this issue.

1 participant