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 building #223

Closed
m-kru opened this issue Dec 13, 2020 · 3 comments
Closed

Error when building #223

m-kru opened this issue Dec 13, 2020 · 3 comments

Comments

@m-kru
Copy link

m-kru commented Dec 13, 2020

I am trying to build current master, but I get following error:

escript ./rebar get-deps 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==== 13-Dec-2020::19:09:16.197609 ===
beam/beam_load.c(1621): Error loading module rebar_utils:
  please re-compile this module with an 23 compiler (old-style fun with indices: 3/6)


=ERROR REPORT==== 13-Dec-2020::19:09:16.197631 ===
Loading of /home/mkru/workspace/ipbus-software/controlhub/rebar/rebar/ebin/rebar_utils.beam failed: badfile

=ERROR REPORT==== 13-Dec-2020::19:09:16.214943 ===
Loading of /home/mkru/workspace/ipbus-software/controlhub/rebar/rebar/ebin/rebar_utils.beam failed: badfile

=ERROR REPORT==== 13-Dec-2020::19:09:16.214912 ===
beam/beam_load.c(1621): Error loading module rebar_utils:
  please re-compile this module with an 23 compiler (old-style fun with indices: 3/6)


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[1]: *** [Makefile:65: _all] Error 127
make[1]: Leaving directory '/home/mkru/workspace/ipbus-software/controlhub'
make: *** [Makefile:58: controlhub/.virtual.Makefile] Error 2

Does anyone know what might be wrong?

@tswilliams
Copy link
Collaborator

Hi,

Which operating system are you building the software on, and which version of Erlang is installed? So far we've tested the software up to Erlang v22, and I'm wondering if your machine has a more recent version installed.

Cheers,
Tom

@m-kru
Copy link
Author

m-kru commented Dec 14, 2020

I use Linux arch, but the issue is probably cause by the Erlang.

Erlang/OTP 23 [erts-11.1.3] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [hipe]

@tswilliams
Copy link
Collaborator

Hi,

I just merged a fix for this into the master branch. This will be included in the next release.

Cheers,
Tom

tswilliams added a commit that referenced this issue Jan 22, 2021
….6.4-16.fc33.noarch RPM) to support Erlang 23. Fixes #223
tswilliams added a commit that referenced this issue Jan 22, 2021
…of rebar v2.6.4, patch to remove '-lerl_interface' from 'src/rebar_port_compiler.erl'. See #223
@tswilliams tswilliams added this to the v2.8.0 release milestone Jan 30, 2021
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

2 participants