Escript: exception error: undefined function erlang:get_stacktrace/0 when building Aestratum

Hi everyone,

I’m trying to build an Aestratum client in my Ubuntu 18.04. I’ve cloned the repository from https://github.com/aeternity/aestratum_client and installed Erlang but when I run make in the cloned repo folder, I get the escript: exception error: undefined function erlang:get_stacktrace/0 error. Here’s the full error message:

[email protected]:~/aestratum_client$ make
./rebar3 as local compile
===> Verifying dependencies…
===> Fetching yamerl ({pkg,<<“yamerl”>>,<<“0.7.0”>>})
=WARNING REPORT==== 25-Nov-2021::09:20:34.593125 ===
Description: “Authenticity is not established by certificate path validation”
Reason: “Option {verify, verify_peer} and cacertfile/cacerts is missing”

===> Version cached at /home/ubuntu/.cache/rebar3/hex/hexpm/packages/yamerl-0.7.0.tar is up to date, reusing it
escript: exception error: undefined function erlang:get_stacktrace/0
in function rebar3:main/1 (/home/dev/work/rebar3/src/rebar3.erl, line 72)
in call from escript:run/2 (escript.erl, line 750)
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:13: recipe for target ‘all’ failed
make: *** [all] Error 127

Does anyone know how to solve this?

Thanks in advance! :slight_smile:

Hi,

Unfortunately the rebar3 version checked in to that repo is not compatible with OTP-24.

Your quickest workaround will be to replace that rebar3 file with a new 3.17.0 one from http://rebar3.org

Thanks for the report. Please do let us know your experience as you start to use aestratum.

1 Like

Thanks for the help! I did what you said (and installed build-essentials that apparently was missing somehow :open_mouth: ) and it worked! :tada:

1 Like