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

installation failes (at arm64) #155

Open
tammo0 opened this issue Feb 17, 2023 · 2 comments
Open

installation failes (at arm64) #155

tammo0 opened this issue Feb 17, 2023 · 2 comments

Comments

@tammo0
Copy link

tammo0 commented Feb 17, 2023

Hi!
Im trying to install entity-fishing at an arm64. But I don't know if this causes the problem.
Following the instructions, the installation failes at Step 2 (./gradlew clean build) with 35 failed and 6 skipped tests.
The grobid-home seems to be fine.
Looking at the output there are a lot of java.lang.UnsatisfiedLinkError and java.lang.NoClassDefFoundError.
I tested it with java-11-openjdk-arm64 and java-8-openjdk-arm64 but no differences at all.

If it helps, i can provide the cli output.

Also the docker seems not to run, even when i start it with --platform linux/amd64. Will there be a compatible image?

What am i missing?

Thanks for your help

@kermitt2
Copy link
Owner

kermitt2 commented Mar 6, 2023

Hi @tammo0 !

My guess is that the problem is the native lmdb data/library.

  • for storing and accessing efficiently the huge amount of information, we use LMDB, and more precisely in this project a JNI wrapper. It's likely that the native lib coming with JNI interface (org.deephacks.lmdbjni) does not support arm64 (I would even say very likely !).

  • we provide all the knowledge base resources as precompiled lmdb for linux/amd64 only, we would need to build these resources for arm64 and store it as alternative download

  • as you saw, the docker image is not a multi-arch image... I still need to learn how to do it.

@lfoppiano do you have maybe some ideas how to ensure arm64 compatibility without too much effort/pain ?

@lfoppiano
Copy link
Collaborator

I think that we can build the docker image on linux, and test if it works with a arm64 host using the current knowledge base resources for linux/amd64.

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