wont compile on fedora 20 Erlang R16B03
ddosia opened this issue · comments
Daniil Churikov commented
Wont compile b/c of parse_trans 2.5.2:
[ddosia@dch-x1 ~/devel/erlang/jobs] make
rebar compile
==> meck (compile)
Compiled src/meck_cover.erl
Compiled src/meck_mod.erl
Compiled src/meck.erl
==> edown (compile)
Compiled src/edown_make.erl
Compiled src/edown_lib.erl
Compiled src/edown_xmerl.erl
Compiled src/edown_doclet.erl
Compiled src/edown_layout.erl
==> parse_trans (compile)
Compiled src/parse_trans.erl
Compiled src/parse_trans_pp.erl
Compiled src/parse_trans_codegen.erl
Compiled src/ct_expand.erl
Compiling /home/ddosia/devel/erlang/jobs/deps/parse_trans/src/exprecs.erl failed:
/home/ddosia/devel/erlang/jobs/deps/parse_trans/src/exprecs.erl:none: internal error in lint_module;
crash reason: {function_clause,
[{erl_internal,bif,
[{atom,416,do_transform},{integer,416,2}],
[{file,"erl_internal.erl"},{line,248}]},
{erl_lint,expr,3,[{file,"erl_lint.erl"},{line,2018}]},
{erl_lint,'-expr_list/3-fun-0-',3,
[{file,"erl_lint.erl"},{line,2151}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1248}]},
{erl_lint,expr_list,3,[{file,"erl_lint.erl"},{line,2150}]},
{erl_lint,exprs,3,[{file,"erl_lint.erl"},{line,1934}]},
{erl_lint,clause,2,[{file,"erl_lint.erl"},{line,1307}]},
{erl_lint,'-clauses/2-fun-0-',2,
[{file,"erl_lint.erl"},{line,1296}]}]}
ERROR: compile failed while processing /home/ddosia/devel/erlang/jobs/deps/parse_trans: rebar_abort
make: *** [compile] Error 1
Although if I manualy switch parse_trans
to 2.7
tag it compiles (with warnings):
[ddosia@dch-x1 ~/devel/erlang/jobs] make
rebar compile
==> meck (compile)
Compiled src/meck_mod.erl
Compiled src/meck_cover.erl
Compiled src/meck.erl
==> edown (compile)
Compiled src/edown_make.erl
Compiled src/edown_lib.erl
Compiled src/edown_xmerl.erl
Compiled src/edown_doclet.erl
Compiled src/edown_layout.erl
==> parse_trans (compile)
Compiled src/parse_trans.erl
Compiled src/parse_trans_pp.erl
Compiled src/parse_trans_codegen.erl
Compiled src/ct_expand.erl
Compiled src/exprecs.erl
Compiled src/parse_trans_mod.erl
==> jobs (compile)
include/jobs.hrl:27: Warning: opaque type counter() is not exported
include/jobs.hrl:28: Warning: opaque type reg_obj() is not exported
Compiled src/jobs_sampler.erl
include/jobs.hrl:27: Warning: opaque type counter() is not exported
include/jobs.hrl:28: Warning: opaque type reg_obj() is not exported
Compiled src/jobs_queue.erl
Compiled src/jobs.erl
Compiled src/jobs_sampler_history.erl
include/jobs.hrl:27: Warning: opaque type counter() is not exported
include/jobs.hrl:28: Warning: opaque type reg_obj() is not exported
Compiled src/jobs_queue_list.erl
include/jobs.hrl:27: Warning: opaque type counter() is not exported
include/jobs.hrl:28: Warning: opaque type reg_obj() is not exported
Compiled src/jobs_stateful_simple.erl
Compiled src/jobs_sampler_cpu.erl
Compiled src/jobs_lib.erl
Compiled src/jobs_app.erl
include/jobs.hrl:27: Warning: opaque type counter() is not exported
include/jobs.hrl:28: Warning: opaque type reg_obj() is not exported
Compiled src/jobs_prod_simple.erl
Compiled src/jobs_sampler_mnesia.erl
include/jobs.hrl:27: Warning: opaque type counter() is not exported
include/jobs.hrl:28: Warning: opaque type reg_obj() is not exported
Compiled src/jobs_info.erl
include/jobs.hrl:27: Warning: opaque type counter() is not exported
include/jobs.hrl:28: Warning: opaque type reg_obj() is not exported
Compiled src/jobs_server.erl
Ulf Wiger commented
I pushed a new version to master, which gives no warnings on R16B03, at least for me.
At the same time, I changed to a newer edown, which doesn't crash when building docs.
Daniil Churikov commented
works for me, thanks!
Ulf Wiger commented
Tagged as 0.3