-
Notifications
You must be signed in to change notification settings - Fork 47
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
Tests fail on Apple Silicon #52
Comments
I've reproduced this. Taking a look now. |
I haven't solved this yet, but some notes: On arm64 mac:
|
I made a minimal reproduction of the issue here: https://github.com/georust/proj/blob/frewsxcv-min/src/main.rs in this draft PR #63 I have absolutely no idea what's going on 😔 |
I think we should cast the net wider and see whether the PROJ maintainers (or anyone else in the community) have begun to test on M1, and if they have, whether they can repro this using analogous c or cpp (which I cannot write at all) wrapping the API calls. I just don't see what's wrong on the Rust side. |
I don't currently have access to my M1 machine, but IIRC I was able to build and pass the proj test suite (the c++ one). I think it was as simple as running My best guess was that it had to do with how we were managing pointers, similar to what @urschrei fixed in #56 but I don't yet have any real evidence or solution. |
This is probably the underlying bug: rust-lang/rust-bindgen#1973 |
Confirmed this is the bug. I got tests passing on my Macbook Air M1 with these changes: #65 |
The text was updated successfully, but these errors were encountered: