0
我有這個工作與ERLC_OPTS的修改,所以我想。 不得不清理我的erlang.mk並沒有保存它。編譯牛仔項目忽略錯誤
我在哪裏添加警告ok標誌?
[email protected]:~/tunnel-deploy# make run
erlang.mk:26: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
make[1]: Entering directory `/root/tunnel-deploy/deps/cowboy'
/root/tunnel-deploy/erlang.mk:26: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
make[2]: Entering directory `/root/tunnel-deploy/deps/cowlib'
/root/tunnel-deploy/erlang.mk:26: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
DEPEND cowlib.d
/root/tunnel-deploy/erlang.mk:26: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
ERLC cow_base64url.erl cow_cookie.erl cow_date.erl cow_hpack.erl cow_http.erl cow_http2.erl cow_http_hd.erl cow_http_te.erl cow_mimetypes.erl cow_multipart.erl cow_qs.erl cow_spdy.erl cow_sse.erl cow_uri.erl cow_ws.erl
APP cowlib
make[2]: Leaving directory `/root/tunnel-deploy/deps/cowlib'
make[2]: Entering directory `/root/tunnel-deploy/deps/ranch'
/root/tunnel-deploy/erlang.mk:26: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
DEPEND ranch.d
/root/tunnel-deploy/erlang.mk:26: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
make[2]: Leaving directory `/root/tunnel-deploy/deps/ranch'
DEPEND cowboy.d
/root/tunnel-deploy/erlang.mk:26: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
GEN rebar.config
make[1]: Leaving directory `/root/tunnel-deploy/deps/cowboy'
make[1]: Entering directory `/root/tunnel-deploy/deps/jiffy'
/root/tunnel-deploy/erlang.mk:26: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
CC=cc escript enc compile
make -f c_src/Makefile.erlang.mk
make[2]: Entering directory `/root/tunnel-deploy/deps/jiffy'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/tunnel-deploy/deps/jiffy'
DEPEND jiffy.d
/root/tunnel-deploy/erlang.mk:26: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
make[1]: Leaving directory `/root/tunnel-deploy/deps/jiffy'
DEPEND tunnel.d
erlang.mk:26: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
ERLC actions.erl board.erl clock.erl door.erl hall.erl join_handler.erl player_status_handler.erl res.erl res_test.erl room.erl room_test.erl s.erl seats.erl table.erl table_info_handler.erl table_play_handler.erl table_test.erl tunnel_app.erl tunnel_sup.erl
compile: warnings being treated as errors
src/actions.erl:2: export_all flag enabled - all functions will be exported
make[1]: *** [ebin/tunnel.app] Error 1
make: *** [app] Error 2
我嘗試添加-W0
這樣:
Write(["ERLANG_ARCH = ", rebar_utils:wordsize(), "\nexport ERLANG_ARCH\n"]),
fun() ->
Write("ERLC_OPTS = +debug_info -W0\nexport ERLC_OPTS\n"),
case lists:keyfind(erl_opts, 1, Conf) of
false -> ok;
{_, ErlOpts} ->
但我仍然得到這個錯誤。