We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am new to Rust and experimenting with this plugin.
Environment OS: macOS 11.1 Erlang: 22.0.7 (via asdf) Rust: rustc 1.49.0 (e1884a8e3 2020-12-29)
asdf
When I run the CT suite I get:
% asdf local erlang 22.0.7 % rm -rf _build % DIAGNOSTICS=1 rebar3 ct ===> Verifying dependencies... ===> Fetching cargo v0.1.2 ===> Fetching jsx v2.11.0 ===> Analyzing applications... ===> Compiling cargo ===> Compiling jsx ===> Analyzing applications... ===> Compiling rebar3_cargo ===> Running Common Test suites... %%% rebar3_cargo_SUITE: %%% rebar3_cargo_SUITE ==> test_test_nif_app: FAILED %%% rebar3_cargo_SUITE ==> {thrown,rebar_abort}
The rustc portion fails with:
rustc
Updating crates.io index Compiling autocfg v1.0.1 Compiling libc v0.2.81 Compiling gimli v0.23.0 Compiling adler v0.2.3 Compiling cfg-if v1.0.0 Compiling proc-macro2 v0.4.30 Compiling rustc-demangle v0.1.18 Compiling object v0.22.0 Compiling unicode-xid v0.1.0 Compiling syn v0.15.44 Compiling unicode-segmentation v1.7.1 Compiling rustler_sys v2.1.0 Compiling void v1.0.2 Compiling lazy_static v1.4.0 Compiling unreachable v1.0.0 Compiling miniz_oxide v0.4.3 Compiling heck v0.3.2 Compiling quote v0.6.13 Compiling addr2line v0.14.1 Compiling backtrace v0.3.55 Compiling rustler_codegen v0.21.1 Compiling failure v0.1.8 Compiling which v2.0.1 Compiling rustler v0.21.1 Compiling nifsys v0.0.2 (/Users/varnerac/rebar3_cargo/_build/test/logs/ct_run.nonode@nohost.2020-12-31_11.40.42/rebar3_cargo.ct.logs/run.2020-12-31_11.40.42/log_private/test_nif_app/rust_src/nifsys) dyld: lazy symbol binding failed: Symbol not found: __ZN5alloc3vec12Vec$LT$T$GT$3new17h54bac6e7732ce9a4E Referenced from: /Users/varnerac/rebar3_cargo/_build/test/logs/ct_run.nonode@nohost.2020-12-31_11.40.42/rebar3_cargo.ct.logs/run.2020-12-31_11.40.42/log_private/test_nif_app/_build/prod/lib/test_nif_app/target/release/deps/librustler_codegen-38dcfb2200be0555.dylib Expected in: flat namespace dyld: Symbol not found: __ZN5alloc3vec12Vec$LT$T$GT$3new17h54bac6e7732ce9a4E Referenced from: /Users/varnerac/rebar3_cargo/_build/test/logs/ct_run.nonode@nohost.2020-12-31_11.40.42/rebar3_cargo.ct.logs/run.2020-12-31_11.40.42/log_private/test_nif_app/_build/prod/lib/test_nif_app/target/release/deps/librustler_codegen-38dcfb2200be0555.dylib Expected in: flat namespace error: could not compile `nifsys` Caused by: process didn't exit successfully: `rustc --crate-name nifsys rust_src/nifsys/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,diagnostic-short --crate-type dylib --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C metadata=aa6455da133a77ec --out-dir '/Users/varnerac/rebar3_cargo/_build/test/logs/ct_run.nonode@nohost.2020-12-31_11.40.42/rebar3_cargo.ct.logs/run.2020-12-31_11.40.42/log_private/test_nif_app/_build/prod/lib/test_nif_app/target/release/deps' -L 'dependency=/Users/varnerac/rebar3_cargo/_build/test/logs/ct_run.nonode@nohost.2020-12-31_11.40.42/rebar3_cargo.ct.logs/run.2020-12-31_11.40.42/log_private/test_nif_app/_build/prod/lib/test_nif_app/target/release/deps' --extern 'lazy_static=/Users/varnerac/rebar3_cargo/_build/test/logs/ct_run.nonode@nohost.2020-12-31_11.40.42/rebar3_cargo.ct.logs/run.2020-12-31_11.40.42/log_private/test_nif_app/_build/prod/lib/test_nif_app/target/release/deps/liblazy_static-3bf6fd78efb7d92b.rlib' --extern 'rustler=/Users/varnerac/rebar3_cargo/_build/test/logs/ct_run.nonode@nohost.2020-12-31_11.40.42/rebar3_cargo.ct.logs/run.2020-12-31_11.40.42/log_private/test_nif_app/_build/prod/lib/test_nif_app/target/release/deps/librustler-74884604a7aa9a89.rlib' --codegen link-arg=-flat_namespace --codegen link-arg=-undefined --codegen link-arg=suppress` (signal: 6, SIGABRT: process abort signal)
Is there some requisite I'm missing?
The text was updated successfully, but these errors were encountered:
In the meantime, I'll test rustler-codegen out and see if that shines some light on this.
rustler-codegen
Sorry, something went wrong.
My work in progress PR to add macOS 11.0 CI here reproduces the issue.
No branches or pull requests
I am new to Rust and experimenting with this plugin.
Environment
OS: macOS 11.1
Erlang: 22.0.7 (via
asdf
)Rust: rustc 1.49.0 (e1884a8e3 2020-12-29)
When I run the CT suite I get:
The
rustc
portion fails with:Is there some requisite I'm missing?
The text was updated successfully, but these errors were encountered: