-
Notifications
You must be signed in to change notification settings - Fork 48
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
Proj isnt compiling in docker container, but does locally #163
Comments
Hmmmm. What Rust version is running in the Docker container? |
I'm just using the official I can easily try other versions, if you think that might be the issue. |
That should be fine and that call to from_raw is also correct: it expects *mut i8, and it's been available since Rustc 1.4: https://doc.rust-lang.org/std/ffi/struct.CString.html#method.from_raw. |
Weird, I've tried boiling down by dockerfile to the bare minimum needed for it to reproduce the issue. Here it is:
And this gives me the above error:
Is it possible that I'm missing some platform-specific dependency or flag? 🤔 |
Is your Docker build running on aarch64 or another ARM platform? I've just pushed an experiment to my clone. If you update your proj dependency in
(Make sure you specify the same features as you are currently if you're using e.g. |
yes, and maybe 🤣
Thank you! |
I just discovered that if I build from the latest Georust image ( I'll give your fork a test shortly. |
This worked! Thanks @urschrei ! Once this version is released I'll reenable the network feature (I've disabled it on CI again and the tests that fail without Network for the time being). |
Great, I'll see about integrating that as a fix and releasing a new crates.io version this week. |
Thank you! |
@gmmorris This fix is now available on crates.io as 0.27.1 |
Thank you! |
I'm not sure if this is a Proj issue specifically, this might be an
ffi
issue, but I'm hoping you'll have a better hunch than I.I have a project that compiles locally just fine, and runs fine on an ubuntu based image in CI.
When I try to build a local docker image, I get the following error:
It seems proj can't compile due to a type mismatch with
CString
in the container.I'm guessing this an API being called in
proj-sys
? But don't really know where to start debugging this. 😅Any advice would be highly appreciated!
The text was updated successfully, but these errors were encountered: