Open benkeil opened 2 years ago
I ran into the same thing. It's because the version of erlexec that is included with your release does match the operating system, Amazon Linux 2 if you are building for Lambda. In my case, I thought I had this covered by building on the latest Amazon Linux 2 docker container using Docker Desktop for MacOS but there is a problem with the current Docker Engine version for MacOS that generates an ERTS that is somehow incompatible with the Amazon Linux 2 version used by Lambda.
See Error compiling elixir 1.15.2 on amazon linux with otp-26.0.2] and Erlang/OTP 25 JIT on AArch64 fails in user mode emulation.
As a workaround, I recommend you spin up an Amazon Linux 2 EC2 instance and build there. Of course, that has it's own challenges because using any recent version of OTP and Elixir will require building it from scratch.
Does anyone has a running example?