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

Error when compiling against OTP-26 #40

Open
deepankar-j opened this issue Dec 27, 2023 · 0 comments
Open

Error when compiling against OTP-26 #40

deepankar-j opened this issue Dec 27, 2023 · 0 comments

Comments

@deepankar-j
Copy link

When compiling excoding against OTP-26, I'm seeing the error The NIF version given from RUSTLER_NIF_VERSION is not supported: 2.17. Please see below for the full log.

It appears that Excoding (v0.1.5) is using rustler v0.28.0. Based on the rustler changelog, that release should include support for OTP-26, but I'm not sure why this error is happening.

I can get around this error if I force the NIF version to 2.16 via the environment variable: export RUSTLER_NIF_VERSION="2.16"

Full Log

==> excoding
Compiling 1 file (.ex)
Compiling crate excoding in release mode (native/excoding)
   Compiling memchr v2.5.0
   Compiling proc-macro2 v1.0.56
   Compiling encoding_index_tests v0.1.4
   Compiling regex-syntax v0.7.1
   Compiling quote v1.0.26
   Compiling unicode-ident v1.0.8
   Compiling void v1.0.2
   Compiling rustler v0.28.0
   Compiling heck v0.4.1
   Compiling lazy_static v1.4.0
   Compiling encoding-index-japanese v1.20141219.5
   Compiling unreachable v1.0.0
   Compiling encoding-index-singlebyte v1.20141219.5
   Compiling encoding-index-tradchinese v1.20141219.5
   Compiling encoding-index-simpchinese v1.20141219.5
   Compiling encoding-index-korean v1.20141219.5
   Compiling encoding v0.2.33
   Compiling aho-corasick v1.0.1
   Compiling syn v2.0.15
   Compiling regex v1.8.1
   Compiling rustler_sys v2.2.0
error: failed to run custom build command for `rustler_sys v2.2.0`

Caused by:
  process didn't exit successfully: `/workspace/code/hapi/_build/dev/lib/excoding/native/excoding/release/build/rustler_sys-b78e75b29c187b18/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustler_sys-2.2.0/build.rs:925:9:
  The NIF version given from RUSTLER_NIF_VERSION is not supported: 2.17
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

== Compilation error in file lib/excoding.ex ==
** (RuntimeError) Rust NIF compile error (rustc exit code 101)
    (rustler 0.28.0) lib/rustler/compiler.ex:41: Rustler.Compiler.compile_crate/2
    lib/excoding.ex:39: (module)
could not compile dependency :excoding, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile excoding --force", update it with "mix deps.update excoding" or clean it with "mix deps.clean excoding"
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

1 participant