Cross compiling a release with Apple M1 and Docker

Cross-/multiplatform images of OTP languages is unsupported since the introduction of the JIT compiler in OTP24.
Docker uses QEMU for that under the hood, which doesn’t support some of the memory magic that happens for JIT, see: Erlang/OTP 25 JIT on AArch64 fails in user mode emulation (#1034) · Issues · QEMU / QEMU · GitLab

5 Likes