-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
How to build cryptography for linux/arm/v7 #6347
Comments
You'll need to install the rust compiler. There are several paths available for this, although rustup.rs is probably the simplest (and supports a variety of armv7 ABIs). https://cryptography.io/en/latest/installation/#rust has more information. Note that Ubuntu 20.04 ships Rust 1.41, which is sufficient, but we still recommend using a path like rustup.rs because we may raise our minimum supported rust version in the future. |
I first tried the easy way with an
Will look tomorrow into rustup.rs |
Here is als an issue regarding the problem with buildx: docker/buildx#395 |
Looks like rust-lang/cargo#8719 is relevant, which is unfortunate since it appears to be a bug with qemu and 32-bit/64-bit filesystem data from the kernel. |
hmmm, yes I think you are right. Do you have an idea how to come around that? |
for who is interested. This is my workaround:
This puts the .cargo home into a tmpfs and resolves the problem with the filesystem. Quite ugly, but it works |
Glad it worked for you. I’m going to close this since this is ultimately a qemu issue but hopefully it will get resolved upstream eventually so this workaround becomes unnecessary. Thanks for finding a solution, I’m sure others will appreciate it! |
I had a working setup to build a docker container with
ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1
which allowed me to come around the problem that I could not build my container for linux/armv7. Is there a workaround to get this working again?Dockerfile looks like this:
The text was updated successfully, but these errors were encountered: