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

On M1 Mac with arm64: issues java.lang.UnsatisfiedLinkError: while loading kognac-core #96

Closed
irina-dragoste opened this issue Jul 26, 2022 · 4 comments
Labels

Comments

@irina-dragoste
Copy link
Collaborator

Error when running version 1.3.5 on M1 Mac (Mac with architecture arm64)

Exception in thread "main" java.lang.UnsatisfiedLinkError: while loading kognac-core: /private/var/folders/nk/mg7msvvx4rg7d9bht0l7lnwr0000gp/T/VLog-tmp6815360794293855698/libkognac-core.dylib: dlopen(/private/var/folders/nk/mg7msvvx4rg7d9bht0l7lnwr0000gp/T/VLog-tmp6815360794293855698/libkognac-core.dylib, 0x0001): tried: '/private/var/folders/nk/mg7msvvx4rg7d9bht0l7lnwr0000gp/T/VLog-tmp6815360794293855698/libkognac-core.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libkognac-core.dylib' (no such file)

Reported as a Rulewerk bug.

@irina-dragoste
Copy link
Collaborator Author

I tested VLog on an M1 Mac.
The jar try-solve-vlog-bug-96.zip attached to [linked Rulewerk issue 220] (knowsys/rulewerk#220) works with rulewerk unit and integration tests.

I also tried building the current version of VLog witb the regular cmake arguments cmake -DJAVA=1 -DSPARQL=1 .., and it works rulewerk unit and integration tests.

However, when building it with cmake -DDIST=1 -DJAVA=1 -DSPARQL=1 .., I get the attached error during building
error_msg-DDIST=1.txt

@CerielJacobs
Copy link
Contributor

Ah, yes, the DIST flag must be propagated to the trident build, which, in turn, must propagate it to the kognac build.
Should work now.

@irina-dragoste
Copy link
Collaborator Author

On an M1 Mac I tried building the current version of VLog with and without the cmake argument -DDIST=1, and all rulewerk unit and integration tests work.

I guess I should also test if a jar built with -DDIST=1 on a regular Mac machine works on an M1 Mac.

@CerielJacobs
Copy link
Contributor

I tried it on a "regular" Mac. Closing this issue.

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

No branches or pull requests

2 participants