-
Notifications
You must be signed in to change notification settings - Fork 8
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
macos arm64 compatibility #38
Comments
This NIF currently tries to load |
thanks for reply, are there any plan to support more architectures? |
#37 was a bazel-only change, so would not apply when this library is included via mix in that way |
The reason for lz4_nif.so having the wrong architecture is because the currently included version of erlang.mk always sets This has been fixed upstream in ninenines/erlang.mk@94718f7 After removing the hardcoded flags, I could build and use the package on an M1 machine. |
The upgrade broke something else for me. Erlang.mk now fails at host_triple with
Followed by
|
The package |
I think the error happens during autopatch (see 7.10). I can reproduce it when just running |
Yup, |
Finally got around to digging into the remaining issue. It's because I'm using the library through mix and mix was trying to compile it with rebar (probably because it detected the rebar config file). I needed to specify the dependency as
I can confirm the project compiles (with some warnings) on Erlang/OTP 26 on Apple Silicon (macOS 14.2). |
hi, i try run it on my macos immediately when i saw #37 merged
i get the same error
this is my
mix.exs
depscompile log
error log
sorry for my lack of c++ knowledge, Are there any steps I'm doing wrong?
The text was updated successfully, but these errors were encountered: