-
-
Notifications
You must be signed in to change notification settings - Fork 113
Cannot compile in Alpine Linux #30
Copy link
Copy link
Open
Description
I'm trying to setup a workflow where I can compile my app in a docker container running Alpine Linux such that the release will then run in a docker image in a Kubernetes cluster. I'm using distillery and edeliver for this.
I do however get this when trying to compile my own app, as parse_trans is a part of the dependency tree. My app is a Phoenix 1.3.2 application.
In the Alpine Linux container I have these versions of Erlang and Elixir:
Erlang:
Erlang/OTP 20 [erts-9.1.5] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V9.1.5
Elixir (might not interesting for you I suppose):
IEx 1.5.2
Error when trying to compile parse_trans
DEBUG=1 rebar3 bare compile --paths "/tmp/edeliver/tol/builds/_build/prod/lib/*/ebin"
===> Expanded command sequence to be run: []
===> Provider: {default,do}
===> Expanded command sequence to be run: [{default,app_discovery},
{bare,compile}]
===> Provider: {default,app_discovery}
===> Provider: {bare,compile}
===> Compiling parse_trans
===> run_hooks("/tmp/edeliver/tol/builds/deps/parse_trans", pre_hooks, compile) -> no hooks defined
===> run_hooks("/tmp/edeliver/tol/builds/deps/parse_trans", pre_hooks, erlc_compile) -> no hooks defined
===> erlopts [debug_info]
===> files to compile ["/tmp/edeliver/tol/builds/deps/parse_trans/src/exprecs.erl",
"/tmp/edeliver/tol/builds/deps/parse_trans/src/ct_expand.erl",
"/tmp/edeliver/tol/builds/deps/parse_trans/src/parse_trans_pp.erl",
"/tmp/edeliver/tol/builds/deps/parse_trans/src/parse_trans_mod.erl",
"/tmp/edeliver/tol/builds/deps/parse_trans/src/parse_trans.erl",
"/tmp/edeliver/tol/builds/deps/parse_trans/src/parse_trans_codegen.erl"]
===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult rebar3.crashdump
===> Uncaught error: undef
===> Stack trace to the error location:
[{erl_syntax,type,[{attribute,626,module,exprecs}],[]},
{rebar_erlc_compiler,parse_attrs,3,
[{file,"/home/tristan/Devel/rebar3/_build/prod/lib/rebar/src/rebar_erlc_compiler.erl"},
{line,670}]},
{rebar_erlc_compiler,modify_erlcinfo,5,
[{file,"/home/tristan/Devel/rebar3/_build/prod/lib/rebar/src/rebar_erlc_compiler.erl"},
{line,478}]},
{rebar_erlc_compiler,'-update_erlcinfo_fun/2-fun-0-',4,
[{file,"/home/tristan/Devel/rebar3/_build/prod/lib/rebar/src/rebar_erlc_compiler.erl"},
{line,463}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
{rebar_erlc_compiler,init_erlcinfo,4,
[{file,"/home/tristan/Devel/rebar3/_build/prod/lib/rebar/src/rebar_erlc_compiler.erl"},
{line,411}]},
{rebar_erlc_compiler,compile_dirs,5,
[{file,"/home/tristan/Devel/rebar3/_build/prod/lib/rebar/src/rebar_erlc_compiler.erl"},
{line,195}]},
{rebar_erlc_compiler,compile,2,
[{file,"/home/tristan/Devel/rebar3/_build/prod/lib/rebar/src/rebar_erlc_compiler.erl"},
{line,121}]}]
===> When submitting a bug report, please include the output of `rebar3 report "your command"`
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels