v0.8.9 make errors

452 views
Skip to first unread message

Romu

unread,
Jan 15, 2014, 10:22:14 PM1/15/14
to chica...@googlegroups.com
When I run 'make' in v0.8.9 for the first time, I get:

Compiled src/tests/ct/make_app_SUITE.erl
:0: Warning: function render_tag/3 is unused
:0: Warning: function render_tag/3 is unused
ERROR: Compiling template src/boss/boss_html_error_template.dtl failed:
  {ok,boss_html_error_template,
      [{[],[{0,erl_lint,{unused_function,{render_tag,3}}}]}]}
ERROR: compile failed while processing /home/simon/devel/ChicagoBoss-0.8.9: rebar_abort
Makefile:11: recipe for target 'all' failed
make: *** [all] Error 1


I ignore it and run 'make' again, I get

==> ChicagoBoss-0.8.9 (compile)
:0: Warning: function render_tag/3 is unused
:0: Warning: variable 'Counters' shadowed in 'fun'
:0: Warning: variable 'Counters' shadowed in 'fun'
:0: Warning: variable 'Counters' shadowed in 'fun'
:0: Warning: variable 'Counters' shadowed in 'fun'
:0: Warning: variable 'Var_module' is unused
:0: Warning: variable 'Var_module' is unused
:0: Warning: variable 'Var_module' is unused
:0: Warning: variable 'Var_module' is unused
ERROR: Compiling template src/boss/boss_html_errors_template.dtl failed:
  {ok,boss_html_errors_template,
      [{[],
        [{0,erl_lint,{unused_function,{render_tag,3}}},
         {0,erl_lint,{unused_var,'Var_module'}},
         {0,erl_lint,{unused_var,'Var_module'}},
         {0,erl_lint,{unused_var,'Var_module'}},
         {0,erl_lint,{unused_var,'Var_module'}},
         {0,erl_lint,{shadowed_var,'Counters','fun'}},
         {0,erl_lint,{shadowed_var,'Counters','fun'}},
         {0,erl_lint,{shadowed_var,'Counters','fun'}},
         {0,erl_lint,{shadowed_var,'Counters','fun'}}]}]}
ERROR: compile failed while processing /home/simon/devel/ChicagoBoss-0.8.9: rebar_abort
Makefile:11: recipe for target 'all' failed
make: *** [all] Error 1


I ignore it and run make for the third time, it passes:

==> goldrush (get-deps)
==> lager (get-deps)
==> pmod_transform (get-deps)
==> erlando (get-deps)
==> aleppo (get-deps)
==> bson (get-deps)
==> jsx (get-deps)
==> ibrowse (get-deps)
==> src (get-deps)
==> ddb (get-deps)
==> epgsql (get-deps)
==> gen_server2 (get-deps)
==> erlmc (get-deps)
==> medici (get-deps)
==> mongodb (get-deps)
==> mysql (get-deps)
==> poolboy (get-deps)
==> meck (get-deps)
==> protobuffs (get-deps)
==> riak_pb (get-deps)
==> riakc (get-deps)
==> tiny_pq (get-deps)
==> uuid (get-deps)
==> redo (get-deps)
==> ets_cache (get-deps)
==> proper (get-deps)
==> erlydtl (get-deps)
==> boss_db (get-deps)
==> tinymq (get-deps)
==> cowlib (get-deps)
==> ranch (get-deps)
==> cowboy (get-deps)
==> mimetypes (get-deps)
==> mochiweb (get-deps)
==> mochicow (get-deps)
==> dynamic_compile (get-deps)
==> jaderl (get-deps)
==> lfe (get-deps)
==> gen_smtp (get-deps)
==> simple_bridge (get-deps)
==> ChicagoBoss-0.8.9 (get-deps)
==> goldrush (compile)
==> lager (compile)
==> pmod_transform (compile)
==> erlando (compile)
==> aleppo (compile)
==> bson (compile)
==> jsx (compile)
==> ibrowse (compile)
==> src (compile)
==> ddb (compile)
==> epgsql (compile)
==> gen_server2 (compile)
==> erlmc (compile)
==> medici (compile)
==> mongodb (compile)
==> mysql (compile)
==> poolboy (compile)
==> meck (compile)
==> protobuffs (compile)
==> riak_pb (compile)
==> riakc (compile)
==> tiny_pq (compile)
==> uuid (compile)
==> redo (compile)
==> ets_cache (compile)
==> proper (compile)
make[1]: Entering directory '/home/simon/devel/ChicagoBoss-0.8.9/deps/proper'
make[1]: 'include/compile_flags.hrl' is up to date.
make[1]: Leaving directory '/home/simon/devel/ChicagoBoss-0.8.9/deps/proper'
==> erlydtl (compile)
==> boss_db (compile)
==> tinymq (compile)
==> cowlib (compile)
==> ranch (compile)
==> cowboy (compile)
==> mimetypes (compile)
==> mochiweb (compile)
==> mochicow (compile)
==> dynamic_compile (compile)
==> jaderl (compile)
==> lfe (compile)
==> gen_smtp (compile)
==> simple_bridge (compile)
==> ChicagoBoss-0.8.9 (compile)


The whole process is reproducible.  My env: Arch Linux with erlang R16B02-2.

Is this expected?


Thanks
Romu

Zachary Kessin

unread,
Jan 15, 2014, 11:44:27 PM1/15/14
to chica...@googlegroups.com
No I don't think so, please post an issue on github and I will try to
get to it.

--Zach
> --
> You received this message because you are subscribed to the Google
> Groups "ChicagoBoss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to chicagoboss...@googlegroups.com.
> Visit this group at http://groups.google.com/group/chicagoboss.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/chicagoboss/ea73c69d-9e41-493f-aeaf-8b8b87578ceb%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

chan sisowath

unread,
Jan 16, 2014, 1:42:55 AM1/16/14
to chica...@googlegroups.com
look like the last version of erlydtl break the compilation. just downgrade it ?



2014/1/16 Zachary Kessin <zke...@gmail.com>
To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscribe@googlegroups.com.

Guido Rumi

unread,
Feb 21, 2014, 12:56:29 PM2/21/14
to chica...@googlegroups.com
I'm having the same issue on a clean VPS with Ubuntu 13.10 and OTP R16B03-1
Cheers!
Guido Rumi

David Welton

unread,
Feb 21, 2014, 1:48:37 PM2/21/14
to chica...@googlegroups.com
If you're feeling adventurous, you can try my fork:

https://github.com/davidw/ChicagoBoss

Hopefully those changes will get merged into CB proper soon.
> --
> You received this message because you are subscribed to the Google Groups
> "ChicagoBoss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to chicagoboss...@googlegroups.com.
> Visit this group at http://groups.google.com/group/chicagoboss.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/chicagoboss/f2f136c7-5fe8-4301-8818-6d11dd4f2669%40googlegroups.com.
>
> For more options, visit https://groups.google.com/groups/opt_out.



--
David N. Welton

http://www.welton.it/davidw/

http://www.dedasys.com/

Nicholas Whittier

unread,
Feb 21, 2014, 5:39:32 PM2/21/14
to chica...@googlegroups.com
David's fork or waiting on the merge is probably a good idea, but if you want to get up and running right now this stuff worked for me:


Important bits:

  git clone https://github.com/ChicagoBoss/ChicagoBoss.git
  cd ChicagoBoss
  git checkout "0d99199"
  ./rebar get-deps
  # hack because 0d99199 seems buggy (rolling back to erlydtl 0.8.0)
  sed -i 's/0.8.2/0.8.0/' rebar.config deps/boss_db/rebar.config
  sed -i '/erlydtl/ s/"HEAD"/{tag,"0.8.0"}/' deps/boss_db/rebar.config
  rm -rf /home/vagrant/chicagoboss/ChicagoBoss/deps/erlydtl
  ./rebar get-deps
  # end hack
  ./rebar compile


Note - I confirmed this in R15B02, and haven't had a chance to confirm functionality in other Erlang releases.


-- Nicholas

Guido Rumi

unread,
Feb 21, 2014, 6:40:23 PM2/21/14
to chica...@googlegroups.com
Thank you for your responses!
Just wanted to clarify; after running make three times, it compiles everything and works OK.




Nicholas Whittier

unread,
Feb 21, 2014, 7:04:09 PM2/21/14
to chica...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages