Failed to compile on CentOS 7 with OTP-23 and rebar3 3.11.1.
Here is the log —
make: Entering directory `/home/user/git/myProj/_build/default/lib/enif_protobuf'
Uncaught error in rebar_core: {'EXIT',
{undef,
[{rebar_utils,get_cwd,[],[]},
{rebar_config,new,0,[]},
{rebar,init_config,1,[]},
{rebar,run,1,[]},
{rebar,main,1,[]},
{escript,run,2,
[{file,"escript.erl"},{line,758}]},
{escript,start,1,
[{file,"escript.erl"},{line,277}]},
{init,start_em,1,[]}]}}
=ERROR REPORT==== 3-Sep-2020::12:05:20.089932 ===
Loading of /home/user/git/myProj/_build/default/lib/enif_protobuf/rebar/rebar/ebin/rebar_utils.beam failed: badfile
=ERROR REPORT==== 3-Sep-2020::12:05:20.089905 ===
beam/beam_load.c(1624): Error loading module rebar_utils:
please re-compile this module with an 23 compiler (old-style fun with indices: 3/6)
=ERROR REPORT==== 3-Sep-2020::12:05:20.106527 ===
beam/beam_load.c(1624): Error loading module rebar_utils:
please re-compile this module with an 23 compiler (old-style fun with indices: 3/6)
=ERROR REPORT==== 3-Sep-2020::12:05:20.106573 ===
Loading of /home/user/git/myProj/_build/default/lib/enif_protobuf/rebar/rebar/ebin/rebar_utils.beam failed: badfile
escript: exception error: undefined function rebar_utils:delayed_halt/1
in function escript:run/2 (escript.erl, line 758)
in call from escript:start/1 (escript.erl, line 277)
in call from init:start_em/1
in call from init:do_boot/3
make: *** [get-deps] Error 127
make: Leaving directory `/home/user/git/myProj/_build/default/lib/enif_protobuf'
The issue is with deprecated rebar 2 and migration to rebar3 will solve the issue.
Does it make sense to you guys ? Happy to do migration.
Hello Devs,
Failed to compile on CentOS 7 with OTP-23 and rebar3 3.11.1.
Here is the log —
The issue is with deprecated rebar 2 and migration to rebar3 will solve the issue.
Does it make sense to you guys ? Happy to do migration.
/Prakash