Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NI does not work on Mac/AMR64 #19

Open
RainerXE opened this issue Oct 15, 2024 · 3 comments
Open

NI does not work on Mac/AMR64 #19

RainerXE opened this issue Oct 15, 2024 · 3 comments
Assignees

Comments

@RainerXE
Copy link

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.

@mukel mukel self-assigned this Oct 15, 2024
@mukel
Copy link
Owner

mukel commented Oct 15, 2024

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.

@RainerXE
Copy link
Author

Any idea how I can build it for NI?

@petarov
Copy link

petarov commented Oct 15, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants