aws / aws-lambda-java-libs

Official mirror for interface definitions and helper classes for Java code running on the AWS Lambda platform.

Home Page:https://aws.amazon.com/lambda/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Published jars on maven.org have wrong arch for RIC ARM shared objects

dshick-nydig opened this issue · comments

λ curl -sLo ./aws-ric.jar "https://search.maven.org/remotecontent?filepath=com/amazonaws/aws-lambda-java-runtime-interface-client/2.1.0/aws-lambda-java-runtime-interface-client-2.1.0.jar"

λ unzip -qq aws-ric.jar

λ file arm64/*
arm64/aws-lambda-runtime-interface-client.glibc.so: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=2b546f8d337d95e96fbf08f486a92ca29cde36da, not stripped
arm64/aws-lambda-runtime-interface-client.musl.so:  ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, with debug_info, not stripped

We're having the same problem. It's causing issues when converting our lambda code into GraalVM native images using the client library. We've had to recompile the lib on M1s and use that. It would also be good if there was an option to run the client on an M1 directly, rather than in a container as we currently have to. Looks as though GraalVM should be bringing support for DARWIN_AARCH as of release 22.1 - oracle/graal#2666 (comment)

v2.1.1 has been released with re-built shared objects