-
Notifications
You must be signed in to change notification settings - Fork 376
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
Building aarch64 image fails due to gfortran not being available #1518
Comments
Seems to be installing |
Still fails for me:
|
I solved it by swapping 'gfortran-aarch64-linux-gnu' for 'gfortran'. |
Please use our tool for building the docker images, |
How does one use it? I don't see any documentation anywhere for it. When I invoke it without arguments it builds images for targets I don't want. And when I build with the
|
"aarch64-unknown-linux-gnu for x86_64-unknown-linux-gnu" means that we build a image for the When the image platform=target we always use Dockerfile.native, this is because on aarch64 there are no cross tools to compile to aarch64, because its not a cross tool, its just the tool itself |
I tried building with
The build ends in these logs:
I also tried following the suggestion here with |
That's annoying, the problem is this line (and others of similar nature): Line 128 in d8631fe
I'm fairly sure this used to work though so I'm curious The reason --platform doesn't have docs is because we accidentally made the doc comments into regular comments 😅 cross/xtask/src/build_docker_image.rs Line 77 in d8631fe
|
Checklist
Describe your issue
Building the aarch64 Docker image on Mac M1/M2 fails due to a missing package error for gfortran. ie. running this:
results in this error:
which then fails the image creation.
It seems like this was introduced in this commit: 6ab0e7c
I also reproduced this on an x86_64 Windows host when specifying
--platform linux/arm64
during the build step.What target(s) are you cross-compiling for?
No response
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
cross 0.2.5
Example
Additional information / notes
Building with an older commit works:
The text was updated successfully, but these errors were encountered: