rustler_precompiled icon indicating copy to clipboard operation
rustler_precompiled copied to clipboard

`TARGET_ARCH` using nerves remains invalid

Open steffenix opened this issue 1 year ago • 2 comments

I am setting up a nerve project using ex_keccak. When not forcing the recompile the project would not compile because the used lib is the right one for the rpi5 but not for my Apple silicon computer. Once I enable force build then it will compile but fail at the firmware generation step.

Updating base firmware image with Erlang release...
scrub-otp-release.sh: ERROR: Unexpected executable format for '/Users/user/Repositories/home_screen/_build/rpi5_dev/_nerves-tmp/rootfs_overlay/srv/erlang/lib/ex_keccak-0.7.5/priv/native/libexkeccak.so'

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

Expecting:
 readelf:AArch64;0x0

steffenix avatar May 24 '24 11:05 steffenix

So is this working only if you force the build?

philss avatar Jun 21 '24 23:06 philss

It will compile with a force compile yes but won't produce a firmware.

steffenix avatar Jun 22 '24 07:06 steffenix