-
-
Notifications
You must be signed in to change notification settings - Fork 764
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
Unable to build openssl 0.7.x for ARM #314
Comments
We upgraded libc versions from 0.6 to 0.7 that fixed the definition of c_char on ARM. Should be an easy fix to add a cast there. |
Great! As I mentioned before, this is not the only problematic spot. Here is the complete error output:
|
Would you have the time to make a PR? It should be as simple as adding If not, I can get an ARM cross compilation toolchain setup and get it fixed. |
no problem, I can do it |
I've just sent you a pull request |
Cast correctly c_char raw pointers (fixes build on ARM #314)
I've just bumped into this issue (rust 1.5.0) and it seems the latest available crate is still @ 0.7.1 |
I've been trying to build the new 0.7.x release for ARM using rust 1.4.0 cross-compiler; unfortunately I always get the following errors:
Note that this is only an example. There is a lot of errors like this but it's always type mismatch between
*const u8
and*const i8
. Building it directly for x86/x86_64 works fine as well as building the 0.6.x release for ARM, x86 and x86_64. I use the same version of Rust on all mentioned architectures (it is 1.4.0 8ab8581f6 2015-10-27).My guess is that CStr and CString use different mapping for c_char on ARM but I don't know why there is no problem with the 0.6.x release.
The text was updated successfully, but these errors were encountered: