Closed JulesGuesnon closed 2 years ago
Actually I tried creating a new rustler nif from scratch and I got the same error, so I'll open an issue on the rustler repo and make a PR if something needs to be updated later
Hey @JulesGuesnon, my guess is that we probably need another entry similar to this one here for arm ?
https://github.com/tzumby/ex_keccak/blob/master/native/exkeccak/.cargo/config
aarch64 is arm64, it's just another name for it (The naming scheme is confusion, ARM64, ARM64e, AARCH64, Apple Silicon..)
You could also add the following for all Macs:
[target.'cfg(target_os = "macos")']
that's right, i keep forgetting the m1 is arm. in that case this is odd, i can definitely compile this on my m1.
As mentioned in this issue, my toolchain was an x86_64
one, so I changed it to aarch64
and now it's good, thanks for your help!
Hello!
I'm using a library that is using this library, and when I run the code I get this error:
And IMO the most important part is this one:
(mach-o file, but is an incompatible architecture (have \'x86_64\', need \'arm64e\'))
. It's probably happening because I'm running the code on the Mac M1.Would it be possible to ship an arm compatible version as well?