sahilpaudel

sahilpaudel

Escript: exception error: undefined function erlang:get_stacktrace/0

elixir -v

Erlang/OTP 24 [erts-12.0.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [dtrace]

Elixir 1.8.2 (compiled with Erlang/OTP 24)

~/.mix/rebar3 --version

rebar 3.13.3 on Erlang/OTP 24 Erts 12.0.3

Error I am getting while compiling lz4

===> Fetching pc v1.13.0
===> Downloaded package, caching at /Users/sahilpaudel/.cache/rebar3/hex/hexpm/packages/pc-1.13.0.tar
escript: exception error: undefined function erlang:get_stacktrace/0
  in function  rebar3:main/1 (/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 
** (Mix) Could not compile dependency :lz4, "/Users/sahilpaudel/.mix/rebar3 bare compile --paths "/Users/sahilpaudel/Documents/Elixir/diamond/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile lz4", update it with "mix deps.update lz4" or clean it with "mix deps.clean lz4"

Marked As Solved

axelson

axelson

Scenic Core Team

Additionally Elixir 1.8 only supports up to Erlang/OTP 22 so you should either upgrade Elixir (preferable) or downgrade Erlang/OTP.

Source: https://hexdocs.pm/elixir/master/compatibility-and-deprecations.html

Also Liked

Nicd

Nicd

Try upgrading your rebar with mix local.rebar, erlang:get_stacktrace/0 was removed in OTP 24.

Where Next?

Popular in Questions Top

vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
PeterCarter
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New

Other popular topics Top

grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 54006 488
New
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42533 114
New

We're in Beta

About us Mission Statement