-
-
Notifications
You must be signed in to change notification settings - Fork 757
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
openssl-sys v0.9.87
fails to build in a CI
#1985
Comments
What openssl are you trying to point the build to? OPENSSL_DIR is unset in that error message. |
I am not sure? I'm following an auto-generated CI file by maturin. Any help on where openssl will be in the system, so I can set it and try again? |
It looks like your build is running inside of the manylinux container, so it would need to be installed there. I am not familiar with Python build infrastructure, but @alex may be able to help there. |
manylinux containers do not have an openssl installed in them, because they provide only the bare set of libraries that can be assumed on all linux installations (e.g., an old glibc). To resolve this, you need to bring your own openssl and statically link it (and therefore, update it whenever openssl does a security release). https://github.com/pyca/cryptography/blob/main/.github/workflows/wheel-builder.yml#L49 is how we do it (containers are built elsewhere) |
that was helpful, appreciate it. The manylinux container is so complicated, it took me a while to figure out. |
I'm using this CI workflow file and this keeps happening, I have tried a number of solutions including OPENSSL_DIR and other things found in:
Ubuntu 18: failed to run custom build command for
openssl-sys v0.9.39
#1021https://stackoverflow.com/questions/65553557/why-rust-is-failing-to-build-command-for-openssl-sys-v0-9-60-even-after-local-in
Can't set up my CI till this is fixed, pretty unfortunate.
Here's the logs, entire thing over here :
The text was updated successfully, but these errors were encountered: