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

TARGET_ARCH using nerves remains invalid #72

Open
steffenix opened this issue May 24, 2024 · 2 comments
Open

TARGET_ARCH using nerves remains invalid #72

steffenix opened this issue May 24, 2024 · 2 comments

Comments

@steffenix
Copy link

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
@philss
Copy link
Owner

philss commented Jun 21, 2024

So is this working only if you force the build?

@steffenix
Copy link
Author

steffenix commented Jun 22, 2024

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

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

No branches or pull requests

2 participants