Skip to content

Instantly share code, notes, and snippets.

@jchassoul
Created April 9, 2017 21:09

Revisions

  1. Jean Chassoul created this gist Apr 9, 2017.
    23 changes: 23 additions & 0 deletions With custom Makefile no problem
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    erlang/treehouse [ make clean ] 5:08 PM
    erlang/treehouse [ make all ] 5:08 PM
    erlc -pa ~/work/structures/treehouse/deps/luerl/ebin -o ./ebin src/treehouse_app.erl
    erlc -pa ~/work/structures/treehouse/deps/luerl/ebin -o ./ebin src/sim_master.erl
    src/sim_master.erl:57: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
    src/sim_master.erl:57: Warning: random:seed/1: the 'random' module is deprecated; use the 'rand' module instead
    src/sim_master.erl:93: Warning: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
    src/sim_master.erl:94: Warning: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
    src/sim_master.erl:97: Warning: random:uniform/0: the 'random' module is deprecated; use the 'rand' module instead
    src/sim_master.erl:98: Warning: random:uniform/0: the 'random' module is deprecated; use the 'rand' module instead
    erlc -pa ~/work/structures/treehouse/deps/luerl/ebin -o ./ebin src/luerl_unit.erl
    erlc -pa ~/work/structures/treehouse/deps/luerl/ebin -o ./ebin src/unit.erl
    src/unit.erl:87: Warning: variable 'From' is unused
    src/unit.erl:101: Warning: variable 'From' is unused
    src/unit.erl:109: Warning: variable 'From' is unused
    src/unit.erl:113: Warning: variable 'From' is unused
    src/unit.erl:126: Warning: variable 'From' is unused
    erlc -pa ~/work/structures/treehouse/deps/luerl/ebin -o ./ebin src/user_default.erl
    erlc -pa ~/work/structures/treehouse/deps/luerl/ebin -o ./ebin src/units_handler.erl
    erlc -pa ~/work/structures/treehouse/deps/luerl/ebin -o ./ebin src/luerl_region.erl
    erlc -pa ~/work/structures/treehouse/deps/luerl/ebin -o ./ebin src/treehouse_sup.erl
    erlc -pa ~/work/structures/treehouse/deps/luerl/ebin -o ./ebin src/zmq_sub_bind.erl
    erlc -pa ~/work/structures/treehouse/deps/luerl/ebin -o ./ebin src/region.erl
    59 changes: 59 additions & 0 deletions make all with erlang.mk
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,59 @@
    /home/ooo/work/other/erlang/treehouse
    erlang/treehouse [ make clean ] 5:05 PM
    GEN clean-app
    GEN coverdata-clean
    erlang/treehouse [ make all ] 5:05 PM
    make[1]: Entering directory '/home/ooo/work/other/erlang/treehouse/deps/cowboy'
    make[2]: Entering directory '/home/ooo/work/other/erlang/treehouse/deps/cowlib'
    make[2]: Leaving directory '/home/ooo/work/other/erlang/treehouse/deps/cowlib'
    make[2]: Entering directory '/home/ooo/work/other/erlang/treehouse/deps/ranch'
    make[2]: Leaving directory '/home/ooo/work/other/erlang/treehouse/deps/ranch'
    GEN rebar.config
    make[1]: Leaving directory '/home/ooo/work/other/erlang/treehouse/deps/cowboy'
    make[1]: Entering directory '/home/ooo/work/other/erlang/treehouse/deps/chumak'
    make[1]: Leaving directory '/home/ooo/work/other/erlang/treehouse/deps/chumak'
    make[1]: Entering directory '/home/ooo/work/other/erlang/treehouse/deps/luerl'
    make[1]: Nothing to be done for 'all'.
    make[1]: Leaving directory '/home/ooo/work/other/erlang/treehouse/deps/luerl'
    make[1]: Entering directory '/home/ooo/work/other/erlang/treehouse/deps/lager'
    make[2]: Entering directory '/home/ooo/work/other/erlang/treehouse/deps/goldrush'
    make[2]: Leaving directory '/home/ooo/work/other/erlang/treehouse/deps/goldrush'
    make[1]: Leaving directory '/home/ooo/work/other/erlang/treehouse/deps/lager'
    make[1]: Entering directory '/home/ooo/work/other/erlang/treehouse/deps/econfig'
    make[1]: Leaving directory '/home/ooo/work/other/erlang/treehouse/deps/econfig'
    make[1]: Entering directory '/home/ooo/work/other/erlang/treehouse/deps/uuid'
    make[2]: Entering directory '/home/ooo/work/other/erlang/treehouse/deps/quickrand'
    make[2]: Leaving directory '/home/ooo/work/other/erlang/treehouse/deps/quickrand'
    make[1]: Leaving directory '/home/ooo/work/other/erlang/treehouse/deps/uuid'
    make[1]: Entering directory '/home/ooo/work/other/erlang/treehouse/deps/jiffy'
    CC=cc escript enc compile
    make -f c_src/Makefile.erlang.mk
    make[2]: Entering directory '/home/ooo/work/other/erlang/treehouse/deps/jiffy'
    make[2]: Nothing to be done for 'all'.
    make[2]: Leaving directory '/home/ooo/work/other/erlang/treehouse/deps/jiffy'
    make[1]: Leaving directory '/home/ooo/work/other/erlang/treehouse/deps/jiffy'
    make[1]: Entering directory '/home/ooo/work/other/erlang/treehouse/deps/hackney'
    make[2]: Entering directory '/home/ooo/work/other/erlang/treehouse/deps/idna'
    make[2]: Leaving directory '/home/ooo/work/other/erlang/treehouse/deps/idna'
    make[2]: Entering directory '/home/ooo/work/other/erlang/treehouse/deps/mimerl'
    make[2]: Leaving directory '/home/ooo/work/other/erlang/treehouse/deps/mimerl'
    make[2]: Entering directory '/home/ooo/work/other/erlang/treehouse/deps/certifi'
    make[2]: Leaving directory '/home/ooo/work/other/erlang/treehouse/deps/certifi'
    make[2]: Entering directory '/home/ooo/work/other/erlang/treehouse/deps/metrics'
    make[2]: Leaving directory '/home/ooo/work/other/erlang/treehouse/deps/metrics'
    make[2]: Entering directory '/home/ooo/work/other/erlang/treehouse/deps/ssl_verify_fun'
    make[2]: Leaving directory '/home/ooo/work/other/erlang/treehouse/deps/ssl_verify_fun'
    make[1]: Leaving directory '/home/ooo/work/other/erlang/treehouse/deps/hackney'
    DEPEND treehouse.d
    ERLC luerl_region.erl luerl_unit.erl region.erl sim_master.erl treehouse_app.erl treehouse_sup.erl unit.erl units_handler.erl user_default.erl zmq_sub_bind.erl
    compile: warnings being treated as errors
    src/sim_master.erl:57: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
    src/sim_master.erl:57: random:seed/1: the 'random' module is deprecated; use the 'rand' module instead
    src/sim_master.erl:93: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
    src/sim_master.erl:94: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
    src/sim_master.erl:97: random:uniform/0: the 'random' module is deprecated; use the 'rand' module instead
    src/sim_master.erl:98: random:uniform/0: the 'random' module is deprecated; use the 'rand' module instead
    erlang.mk:5055: recipe for target 'ebin/treehouse.app' failed
    make[1]: *** [ebin/treehouse.app] Error 1
    erlang.mk:4859: recipe for target 'app' failed
    make: *** [app] Error 2