llama3.java icon indicating copy to clipboard operation
llama3.java copied to clipboard

NI does not work on Mac/AMR64

Open RainerXE opened this issue 1 year ago • 3 comments

running "make native" on an ARM Mac with GraalVM 24 EA 16 leads to the following error:

Error: Support for the Foreign Function and Memory API is currently available only on the AMD64 architecture.

RainerXE avatar Oct 15 '24 14:10 RainerXE

The FFM API was disabled on Native Image for ARM64, because the linking/calling is not supported yet, but MemorySegment should work, at least, to build this project. I already reported the issue internally.

mukel avatar Oct 15 '24 15:10 mukel

Any idea how I can build it for NI?

RainerXE avatar Oct 15 '24 16:10 RainerXE

@RainerXE You may edit the Makefile and remove the -H:+ForeignAPISupport \ line. This will let you build the project, however, it fails when running with:

com.oracle.svm.core.jdk.UnsupportedFeatureError: Support for the Java Foreign Function and Memory API is not active: enable with -H:+ForeignAPISupport

petarov avatar Oct 15 '24 16:10 petarov