Iulian7
Erlang dependency doesn't compile with mix
Hi guys,
I have an Erlang dependency which does not compile with mix but compiles fine with rebar3. The output when compiling with DEBUG=1 is:
...
===> Building escript...
===> Creating escript file /Users/iulian/elixir/riak/deps/cuttlefish/_build/default/bin/cuttlefish
===> processing <<"cuttlefish">>
===> new deps of <<"cuttlefish">> found to be []
===> processing <<"getopt">>
===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult rebar3.crashdump
===> Uncaught error: {badmatch,error}
===> Stack trace to the error location:
[{rebar_prv_escriptize,find_deps_of_deps,3,
[{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_prv_escriptize.erl"},
{line,246}]},
{rebar_prv_escriptize,find_deps,2,
[{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_prv_escriptize.erl"},
{line,240}]},
{rebar_prv_escriptize,escriptize,2,
[{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_prv_escriptize.erl"},
{line,104}]},
{rebar_prv_escriptize,do,1,
[{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_prv_escriptize.erl"},
{line,80}]},
{rebar_core,do,2,
[{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_core.erl"},
{line,153}]},
{rebar_hooks,run_provider_hooks_,6,
[{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_hooks.erl"},
{line,49}]},
{rebar_hooks,run_all_hooks,6,
[{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_hooks.erl"},
{line,16}]},
{rebar_prv_compile,compile,3,
[{file,"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_prv_compile.erl"},
{line,129}]}]
...
I am running Elixir 1.4.5, Erlang/OTP 20 on macOS Sierra. I also made sure the rebar3 mix uses is the correct version using mix local.rebar rebar3. The rebar3 version is 3.4.2.
Any help would be much appreciated!
Most Liked
Iulian7
Interesting. I observed the memory usage. It doesn’t really go up and there is no swapping. It is worth noting I have 16GB of RAM. The usage is constant at about 8GB.
This is also followed in this issue: https://github.com/Kyorai/riak_core/issues/23.
2
Iulian7
This is the full output:
$ DEBUG=1 mix compile
===> 20.0 satisfies the requirement for minimum OTP version R16
===> Expanded command sequence to be run: []
===> Expanded command sequence to be run: [{default,app_discovery},
{bare,compile}]
===> 20.0 satisfies the requirement for minimum OTP version R16
===> Compiling cuttlefish
===> run_hooks("/Users/iulian/elixir/riak/deps/cuttlefish", pre_hooks, compile) -> no hooks defined
===> run_hooks("/Users/iulian/elixir/riak/deps/cuttlefish", pre_hooks, erlc_compile) -> no hooks defined
===> erlopts [debug_info,warnings_as_errors,
{parse_transform,lager_transform},
debug_info,warn_untyped_record]
===> files to compile ["/Users/iulian/elixir/riak/deps/cuttlefish/src/lager_stderr_backend.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish_vmargs.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish_variable.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish_validator.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish_util.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish_unit.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish_translation.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish_schema.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish_rebar_plugin.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish_mapping.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish_generator.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish_flag.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish_escript.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish_error.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish_enum.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish_effective.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish_duration_parse.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish_duration.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish_datatypes.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish_conf.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish_bytesize.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish_advanced.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/cuttlefish.erl",
"/Users/iulian/elixir/riak/deps/cuttlefish/src/conf_parse.erl"]
===> run_hooks("/Users/iulian/elixir/riak/deps/cuttlefish", post_hooks, erlc_compile) -> no hooks defined
===> run_hooks("/Users/iulian/elixir/riak/deps/cuttlefish", pre_hooks, app_compile) -> no hooks defined
===> run_hooks("/Users/iulian/elixir/riak/deps/cuttlefish", post_hooks, app_compile) -> no hooks defined
===> run_hooks("/Users/iulian/elixir/riak/deps/cuttlefish", pre_hooks, escriptize) -> no hooks defined
===> run_hooks("/Users/iulian/elixir/riak/deps/cuttlefish", pre_hooks, escriptize) -> no hooks defined
===> Building escript...
===> Creating escript file /Users/iulian/elixir/riak/deps/cuttlefish/_build/default/bin/cuttlefish
===> processing <<"cuttlefish">>
===> new deps of <<"cuttlefish">> found to be []
===> processing <<"getopt">>
===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult rebar3.crashdump
===> Uncaught error: {badmatch,error}
===> Stack trace to the error location:
[{rebar_prv_escriptize,find_deps_of_deps,3,
[{file,"/private/tmp/rebar@3-20170715-74378-1pwzyot/rebar3-3.4.2/_build/default/lib/rebar/src/rebar_prv_escriptize.erl"},
{line,246}]},
{rebar_prv_escriptize,find_deps,2,
[{file,"/private/tmp/rebar@3-20170715-74378-1pwzyot/rebar3-3.4.2/_build/default/lib/rebar/src/rebar_prv_escriptize.erl"},
{line,240}]},
{rebar_prv_escriptize,escriptize,2,
[{file,"/private/tmp/rebar@3-20170715-74378-1pwzyot/rebar3-3.4.2/_build/default/lib/rebar/src/rebar_prv_escriptize.erl"},
{line,104}]},
{rebar_prv_escriptize,do,1,
[{file,"/private/tmp/rebar@3-20170715-74378-1pwzyot/rebar3-3.4.2/_build/default/lib/rebar/src/rebar_prv_escriptize.erl"},
{line,80}]},
{rebar_core,do,2,
[{file,"/private/tmp/rebar@3-20170715-74378-1pwzyot/rebar3-3.4.2/_build/default/lib/rebar/src/rebar_core.erl"},
{line,153}]},
{rebar_hooks,run_provider_hooks_,6,
[{file,"/private/tmp/rebar@3-20170715-74378-1pwzyot/rebar3-3.4.2/_build/default/lib/rebar/src/rebar_hooks.erl"},
{line,49}]},
{rebar_hooks,run_all_hooks,6,
[{file,"/private/tmp/rebar@3-20170715-74378-1pwzyot/rebar3-3.4.2/_build/default/lib/rebar/src/rebar_hooks.erl"},
{line,16}]},
{rebar_prv_compile,compile,3,
[{file,"/private/tmp/rebar@3-20170715-74378-1pwzyot/rebar3-3.4.2/_build/default/lib/rebar/src/rebar_prv_compile.erl"},
{line,129}]}]
===> When submitting a bug report, please include the output of `rebar3 report "your command"`
** (Mix) Could not compile dependency :cuttlefish, "/Users/iulian/.mix/rebar3 bare compile --paths "/Users/iulian/elixir/riak/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile cuttlefish", update it with "mix deps.update cuttlefish" or clean it with "mixdeps.clean cuttlefish"
1
Popular in Questions
can someone please explain to me how Enum.reduce works with maps
New
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
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this
"1000"
What is the ...
New
Using vs code and installed ElixirLS: support and debugger.
And I got an error popped up on start up says
Failed to run ‘elixir’ comma...
New
Hello everybody,
usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
Hi guys, nice to meet you to the whole forum, I’m new here, I’m trying to configure visual studio code for elixir, right now the intellis...
New
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
In AR this is so simple
@articles = current_user.articles
How to do in Ecto?
def index(conn, _params) do
current_user = conn.assig...
New
Other popular topics
Update:
How to use the Blogs & Podcasts section
You can post links to your blog posts or podcasts either in one of the Official Blog...
New
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
Good day to you all.
I have been struggling to get a query involving like and ilike to work.
Can anyone assist me on this, please?
pro...
New
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode.
The solution seems to be, in a hyphena...
New
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
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
Hey all,
I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
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
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
Hey :wave:t3: Elixir community,
I’ve been learning Elixir, and working on some side projects. My editor of choice is VSCode, and althoug...
New







