Closed danielcamargoeti closed 1 year ago
This image does not work on M1, you need to use the https://quay.io/repository/quarkus/ubi-quarkus-mandrel-builder-image image.
@cescoffier changing to quay.io/quarkus/ubi-quarkus-mandrel-builder-image:22.2.0.0-Final-java11
does create the native build, but it is now using a format that won't run when running:
sam local invoke --template sam/sam.native.yaml --event sam/event.json
Here is the output:
Invoking not.used (provided)
Decompressing .../target/function.zip
Skip pulling image and use local one: public.ecr.aws/sam/emulation-provided:rapid-1.56.1-x86_64.
Mounting /private/var/folders/zm/0m9j6d_514q7sjpkgg6_7lzr0000gq/T/tmpi0ogn2dk as /var/task:ro,delegated inside runtime container
START RequestId: 472a007d-d5b4-4574-b3cb-9b87dde9d09a Version: $LATEST
28 Sep 2022 16:28:18,072 [ERROR] (rapid) Init failed error=fork/exec /var/task/bootstrap: no such file or directory InvokeID=
The file is in the container but with a bad ELF interpreter:
sh-4.2# ls /var/task/bootstrap
/var/task/bootstrap
sh-4.2# exec /var/task/bootstrap
sh: /var/task/bootstrap: /lib/ld-linux-aarch64.so.1: bad ELF interpreter: No such file or directory
Yes, you got an ARM 64 container, not a Linux 64 container. Cross-compilation is not supported by graalvm.
I'm working on a way to enable it using qemu, but I'm only at the beginning of the journey.
Hello, we have a new suite of both arm64 and amd64 Linux containers for Mandrel:
quay.io/quarkus/ubi-quarkus-mandrel-builder-image:22.3-java17
quay.io/quarkus/ubi-quarkus-mandrel-builder-image:21.3-java17
I tested both amd64 (Xeons, Skylake and Ivy Bridge EP) and aarch64 (Ampere Altra) variants on CentOS 8 Stream.
I don't have access to :apple: Silicon, you are welcome to give it a shot.
I am trying to create a native executable but the process hangs indefinitely (see output bellow). I am running it on macOS using an M1 chip.
I've heard people using
ghcr.io/graalvm/graalvm-ce:latest
but the binary file does not run using AWS SAM CLI (that is using this imageublic.ecr.aws/sam/emulation-provided
).I am not sure where to go from here. Here is the sample project I am working with: