ExWeb3 / ex_keccak

Elixir library for computing Keccak SHA3-256 hashes using a NIF built tiny-keccak Rust crate.
Apache License 2.0
25 stars 20 forks source link

Building keccak for nerves using rpi5 #53

Open steffenix opened 1 month ago

steffenix commented 1 month ago

I am trying to use ex_keccak on a nerve instance deployed on a rpi5. I have used the option to force_build ex_keccak. Once I am getting to the step that creates the firmware I am getting an issue with the libexkeccak.so the arch is incorrect.

Got:
 file:Mach-O 64-bit dynamically linked shared library arm64

Expecting:
 readelf:AArch64;0x0

How could I force it to compile for AArch64;0x0?

tzumby commented 1 month ago

Hey @steffenix, I'll look into this, we might have to add a special target here: https://github.com/ExWeb3/ex_keccak/blob/main/native/exkeccak/.cargo/config

steffenix commented 1 month ago

After looking at rustler_precompiled doc, I am leaning toward an issue with the rustler_precompiled library. That could also be an issue with nerves.