-
Notifications
You must be signed in to change notification settings - Fork 117
Compilation for Android x86 fails #345
Comments
The issue is that the generated bindings use std::os::raw::c_char, and our code uses libc::c_char. In the past these types have been identical, and now they are not for some reason. rust-lang/rust#40317 just merged four days ago, so rust-mozjs requires a more recent nightly version in order to avoid this problem. For Servo, this can be addressed by updating the contents of the |
I've updated rust via rustup, my system is now on
Which is after the commit rust-lang/rust@24be899 mentioned above. The error is still the same. |
Unless you are building rust-mozjs standalone, your local compiler (as updated by rustup) has no effect on the Servo build system. Are you building Servo (via |
I'm building rust-mozjs standalone (it's all I care about atm). See the exact command I'm building with on the original bug description. |
It builds now. My nightly build wasn't recent enough as as fix got merged with rust-lang/rust#40867 just two days ago. Another |
I tried to compile
rust-mozjs
for Android x86. It fails with the error below. I suspect that there's a mismatch between the platform headers and the actual platform. On Android x86c_char
isi8
on ARM it'su8
.I have no clue, why it would expect an ARM-stlye
u8
although I compile for x86. I'm happy to work on a fix if anyone tells me where to look.The text was updated successfully, but these errors were encountered: