Open spilin opened 1 year ago
@spilin would you change to build Blockscout with Docker image? Current image (master
tag) is built on top of Alpine 3.18
https://github.com/blockscout/blockscout/blob/c46aa15d0bcb1d2a6aab15a9db03409ea46b4bd3/docker/Dockerfile#L1
and has no issues with precompiled NIF.
I will do that when will get a chance. As of now I still get:
Generated rustler_precompiled app
==> ex_secp256k1
Compiling 2 files (.ex)
== Compilation error in file lib/ex_secp256k1/impl.ex ==
** (RuntimeError) precompiled NIF is not available for this target: "x86_64-alpine-linux-musl".
But I resolved this by using:
export EX_SECP256K1_BUILD=true
export EXKECCAK_BUILD=true
export TARGET_VENDOR=unknown
So if it's only me who gets this error - you can close it.
Not compiling on latest version on alpine. Issue is within new version of :ex_keccak "0.7.1". Works with 0.6.0 as expected. Update was introduced in this commit.
Environment
elixir -version
): Elixir 1.13.4 (compiled with Erlang/OTP 24)node -v
): v16.20.0Steps to reproduce
Runing:
mix do deps.get, local.rebar --force, deps.compile, compile
Expected behaviour
Should raise no error