You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Orbstack uses Rosetta to run containers with foreign architectures.
However I could not find a configuration to specify the container platform.
A workaround is described below
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?
macOS
Windows
Linux / BSD
other OS (specify in description)
What architecture is the host?
x86_64 / AMD64
arm32
arm64 (including Mac M1)
What container engine is cross using?
docker
podman
other container engine (specify in description)
cross version
cross 0.2.5
Example
cross build --release --target aarch64-unknown-linux-gnu
Unable to find image 'ghcr.io/cross-rs/aarch64-unknown-linux-gnu:0.2.5' locally
0.2.5: Pulling from cross-rs/aarch64-unknown-linux-gnu
docker: no matching manifest for linux/arm64/v8 in the manifest list entries.
See 'docker run --help'.
make: *** [build] Error 125
Additional information / notes
Workaround:
after downloading the image manually (forcing the platform) i can run the cross compiler successfulle:
docker pull ghcr.io/cross-rs/aarch64-unknown-linux-gnu:0.2.5 --platform linux/amd64
....
cross build --release --target aarch64-unknown-linux-gnu
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Compiling proc-macro2 v1.0.54
....
The text was updated successfully, but these errors were encountered:
Checklist
Describe your issue
Running cross on macOS arm64 with orbstack (https://docs.orbstack.dev/docker/) fails to download the docker image.
Orbstack uses Rosetta to run containers with foreign architectures.
However I could not find a configuration to specify the container platform.
A workaround is described below
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
Example
Additional information / notes
Workaround:
after downloading the image manually (forcing the platform) i can run the cross compiler successfulle:
The text was updated successfully, but these errors were encountered: