-
Notifications
You must be signed in to change notification settings - Fork 386
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
Darwin+Podman: Unable to cross-compile #1583
Comments
Podman info (if needed) $ podman version
Client: Podman Engine
Version: 5.2.5
API Version: 5.2.5
Go Version: go1.23.2
Git Commit: 10c5aa720d59480bc7edad347c1f5d5b75d4424f
Built: Fri Oct 18 07:51:48 2024
OS/Arch: darwin/arm64
Server: Podman Engine
Version: 5.2.5
API Version: 5.2.5
Go Version: go1.22.7
Built: Thu Oct 17 17:00:00 2024
OS/Arch: linux/arm64 |
This was changed in #1485 and there some assumption done there that is incorrect for podman in the rest of the application logic. Should be an easy fix once located why it happens |
I looked at the code in this linked commit, and realized that MacOS doesn't set a
|
rustup toolchain that is being complained about is present, though it is not native to my platform.
When I run
I don't understand why the x86_64 target is needed when the target is specify is aarch64, but I'll assume that's the platform that cross uses to cross-compile. I also ran If I use docker though, the cross compilation continues to work just fine. |
Checklist
Describe your issue
cross doesn't work when I try to use it with
podman
(even if I set theCROSS_CONTAINER_ENGINE=podman
env variable) on my Mac/M2. But the same project cross compiles successfully withdocker
.What target(s) are you cross-compiling for?
aarch64-unknown-linux-gnu
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 (4090bec 2024-10-15)
Example
I have both
docker
andpodman
installed on my Mac. MyDocker Desktop
application is not running.ps -ef | grep docker 503 68715 69102 0 5:05PM ttys007 0:00.00 grep docker
This results in an error like so:
Additional information / notes
Cross works just fine with Docker. The command below results in a successful build when my
Docker Desktop
application is running in the background.I installed cross as specified in the docs: https://github.com/cross-rs/cross/blob/main/docs/getting-started.md#installing-cross-1
The text was updated successfully, but these errors were encountered: