-
Notifications
You must be signed in to change notification settings - Fork 322
Closed
Description
Compiling jiffy with Erlang/OTP 23.0-rc3 fails with the following error message:
$ make
./rebar compile
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==== 22-Apr-2020::13:39:22.741797 ===
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==== 22-Apr-2020::13:39:22.741840 ===
Loading of /home/magnus/src/jiffy-upstream/rebar/rebar/ebin/rebar_utils.beam failed: badfile
=ERROR REPORT==== 22-Apr-2020::13:39:22.761395 ===
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==== 22-Apr-2020::13:39:22.761467 ===
Loading of /home/magnus/src/jiffy-upstream/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
Makefile:19: recipe for target 'build' failed
make: *** [build] Error 127
This happens because release 23 dropped support for loading beam files compiled with a compiler older than R15 (see here), and the beam files inside the rebar binary were compiled with R14.
taiyow, jbernardo95, tiagonbotelho and darrenklein
Metadata
Metadata
Assignees
Labels
No labels