rusterlium / rustler

Safe Rust bridge for creating Erlang NIF functions
https://docs.rs/crate/rustler
Apache License 2.0
4.36k stars 225 forks source link

load failed error on aarch64 #652

Closed pikdum closed 1 month ago

pikdum commented 1 month ago

Hello,

I recently added Rustler to my project here, and it's working on x86_64 but giving an error on my aarch64 server:

03:02:22.142 [warning] The on_load function for module Elixir.ThistleTea.Namigator returned:
{:error,
 {:load_failed,
  ~c"Failed to load NIF library: '/home/opc/thistle_tea/_build/prod/lib/thistle_tea/priv/native/libthistletea_namigator.so: undefined symbol: _ZNSt10filesystem8relativeERKNS_7__cxx114pathES3_RSt10error_code'"}}
$ iex --version
Erlang/OTP 27 [erts-15.0.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit]

IEx 1.17.2 (compiled with Erlang/OTP 25)
$ rustc --version
rustc 1.81.0 (eeb90cda1 2024-09-04)

Any ideas on what could be going wrong here?

Thanks

pikdum commented 1 month ago

Or actually, looks like it's working just fine in a docker container. Must be something up with my old server. :)