martinthenth / uuidv7

UUID v7 implementation and Ecto.Type for Elixir
https://hexdocs.pm/uuidv7
MIT License
82 stars 7 forks source link

precompiled NIF is not available: Compilation fails on M2 #26

Closed connorsmallman closed 10 months ago

connorsmallman commented 1 year ago

First of all thanks for the project. Unfortunately I'm having an issue running my app within an Alpine image on an M2 Mac

== Compilation error in file lib/uuidv7.ex == ** (RuntimeError) precompiled NIF is not available for this target: "aarch64-unknown-linux-musl". The available targets are:

sebasortiz-dev commented 11 months ago

Same error on M1 Macbook

martinthenth commented 11 months ago

Hi! Thanks for the report. It looks like the rustler_precompiled dependency needs an update and the images a rebuild. The mentioned image is available in the defaults: https://hexdocs.pm/rustler_precompiled/RustlerPrecompiled.html

connorsmallman commented 11 months ago

@martinthenth looks like dependabot was listening https://github.com/martinthenth/uuidv7/pull/29

martinthenth commented 11 months ago

It's a major upgrade so it needs a little more attention than just a merge. I'll take a look when I have some time

martinthenth commented 11 months ago

👋🏻 I upgraded the library and built NIFs with additional build targets, including aarch64-unknown-linux-musl, and released a new version on hex.pm. Can you check it works for you?

martinthenth commented 10 months ago

The new builds should work as expected so I'm closing this issue. Let me know if there is any problem