Hi. Is there a guide out there for cross-compiling...
# general
b
Hi. Is there a guide out there for cross-compiling
pex_binary
for ARM from
x86_64
machines? I'm trying to setup a
docker_environment
for arm64, but am seeing the error:
Copy code
NoFallbackEnvironmentError: The Docker environment `linux_arm` is specified in the `environment` field from the target <target>, but it cannot be used because the local host has the platform `linux_x86_64` and the Docker environment has the platform Platform.linux_arm64.

Consider setting the field `fallback_environment` for the target //:linux-py12-arm, such as to a `docker_environment` target that sets `platform` to `linux_x86_64`. Alternatively, consider not explicitly setting the field `platform` for the target //:linux-py12-arm because the default behavior is to use the CPU architecture of the current host for the platform (although this requires that the docker image supports that CPU architecture).
Using pants 2.24.1
b
b
Thanks. I'll try that next. Hopefully, it's more reliable
And it worked.
🙌 1