emqx / emqx-rel

Release Project for EMQX Broker prior to 4.3. Newer releases are built here: https://github.com/emqx/emqx
https://www.emqx.com
Apache License 2.0
190 stars 221 forks source link

Failed to build #317

Closed didasy closed 4 years ago

didasy commented 5 years ago

Environment

Description

Please look at the following log:

didasy@orangepione:~/emqx-rel$ make
 DEP    emqx
 DEP    emqx_retainer
 DEP    emqx_recon
 DEP    emqx_management
 DEP    emqx_auth_clientid
 DEP    emqx_auth_username
 DEP    emqx_auth_http
 DEP    emqx_auth_mysql
 DEP    emqx_reloader
 DEP    emqx_sn
 DEP    emqx_coap
 DEP    emqx_stomp
 DEP    emqx_web_hook
 DEP    emqx_auth_jwt
 DEP    emqx_delayed_publish
 DEP    emqx_lwm2m
 DEP    emqx_dashboard
 DEP    emqx_auth_ldap
 DEP    emqx_auth_pgsql
 DEP    emqx_auth_redis
 DEP    emqx_auth_mongo
 DEP    emqx_plugin_template
 DEP    emqx_statsd
 DEP    emqx_lua_hook
make[1]: Entering directory '/home/didasy/emqx-rel/deps/emqx'
 DEP    cuttlefish
 DEP    jsx
make[2]: Entering directory '/home/didasy/emqx-rel/.erlang.mk/rebar'
./bootstrap
Recompile: src/rebar
Recompile: src/rebar_abnfc_compiler
Recompile: src/rebar_app_utils
Recompile: src/rebar_appups
Recompile: src/rebar_asn1_compiler
Recompile: src/rebar_base_compiler
Recompile: src/rebar_cleaner
Recompile: src/rebar_config
Recompile: src/rebar_core
Recompile: src/rebar_cover_utils
Recompile: src/rebar_ct
Recompile: src/rebar_deps
Recompile: src/rebar_dia_compiler
Recompile: src/rebar_edoc
Recompile: src/rebar_erlc_compiler
Recompile: src/rebar_erlydtl_compiler
Recompile: src/rebar_escripter
Recompile: src/rebar_eunit
src/rebar_eunit.erl:279: Warning: crypto:rand_uniform/2 is deprecated and will be removed in a future release; use rand:uniform/1
src/rebar_eunit.erl:293: Warning: random:seed/3: the 'random' module is deprecated; use the 'rand' module instead
src/rebar_eunit.erl:295: Warning: random:uniform/0: the 'random' module is deprecated; use the 'rand' module instead
Recompile: src/rebar_file_utils
Recompile: src/rebar_getopt
Recompile: src/rebar_lfe_compiler
Recompile: src/rebar_log
Recompile: src/rebar_metacmds
Recompile: src/rebar_mustache
Recompile: src/rebar_neotoma_compiler
Recompile: src/rebar_otp_app
Recompile: src/rebar_otp_appup
Recompile: src/rebar_port_compiler
Recompile: src/rebar_proto_compiler
Recompile: src/rebar_proto_gpb_compiler
Recompile: src/rebar_protobuffs_compiler
Recompile: src/rebar_qc
Recompile: src/rebar_rel_utils
Recompile: src/rebar_reltool
Recompile: src/rebar_require_vsn
Recompile: src/rebar_shell
Recompile: src/rebar_subdirs
Recompile: src/rebar_templater
Recompile: src/rebar_upgrade
Recompile: src/rebar_utils
Recompile: src/rebar_xref
Uncaught error in rebar_core: {'EXIT',
                               {{badmatch,{error,enoent}},
                                [{rebar_utils,otp_release1,1,
                                  [{file,"src/rebar_utils.erl"},{line,416}]},
                                 {rebar_utils,get_arch,0,
                                  [{file,"src/rebar_utils.erl"},{line,95}]},
                                 {rebar_port_compiler,default_env,0,
                                  [{file,"src/rebar_port_compiler.erl"},
                                   {line,597}]},
                                 {rebar_port_compiler,setup_env,2,
                                  [{file,"src/rebar_port_compiler.erl"},
                                   {line,182}]},
                                 {rebar_core,'-setup_envs/2-fun-0-',2,
                                  [{file,"src/rebar_core.erl"},{line,525}]},
                                 {lists,foldl,3,
                                  [{file,"lists.erl"},{line,1263}]},
                                 {rebar_core,maybe_execute,8,
                                  [{file,"src/rebar_core.erl"},{line,296}]},
                                 {rebar_core,process_dir1,7,
                                  [{file,"src/rebar_core.erl"},{line,261}]}]}}
Makefile:12: recipe for target 'all' failed
make[2]: *** [all] Error 1
make[2]: Leaving directory '/home/didasy/emqx-rel/.erlang.mk/rebar'
/home/didasy/emqx-rel/deps/emqx
 DEP    gproc
 DEP    gen_rpc
 DEP    ekka
 DEP    esockd
 DEP    cowboy
 DEP    replayq
make[2]: Entering directory '/home/didasy/emqx-rel/deps/cuttlefish'
./rebar get-deps
==> cuttlefish (get-deps)
Pulling getopt from {git,"https://github.com/basho/getopt.git",{tag,"v0.8.2"}}
Cloning into 'getopt'...
Pulling neotoma from {git,"https://github.com/basho/neotoma.git",
                          {tag,"1.7.4"}}
Cloning into 'neotoma'...
==> getopt (get-deps)
==> neotoma (get-deps)
./rebar compile
==> getopt (compile)
Compiled src/getopt.erl
==> neotoma (compile)
Compiled src/neotoma.erl
Compiled src/neotoma_parse.erl
==> cuttlefish (compile)
Compiled src/cuttlefish_duration_parse.peg
Compiled src/conf_parse.peg
Compiled src/cuttlefish_flag.erl
Compiled src/cuttlefish_bytesize.erl
Compiled src/cuttlefish_util.erl
Compiled src/cuttlefish.erl
Compiled src/cuttlefish_rebar_plugin.erl
Compiled src/cuttlefish_duration.erl
src/cuttlefish_unit.erl:4: Warning: export_all flag enabled - all functions will be exported
Compiled src/cuttlefish_unit.erl
Compiled src/cuttlefish_generator.erl
Compiled src/cuttlefish_vmargs.erl
Compiled src/cuttlefish_effective.erl
Compiled src/cuttlefish_advanced.erl
Compiled src/cuttlefish_escript.erl
Compiled src/conf_parse.erl
Compiled src/cuttlefish_conf.erl
Compiled src/cuttlefish_enum.erl
Compiled src/cuttlefish_translation.erl
Compiled src/cuttlefish_schema.erl
Compiled src/cuttlefish_variable.erl
Compiled src/cuttlefish_validator.erl
Compiled src/cuttlefish_mapping.erl
Compiled src/cuttlefish_error.erl
Compiled src/cuttlefish_duration_parse.erl
Compiled src/cuttlefish_datatypes.erl
./rebar skip_deps=true escriptize
==> cuttlefish (escriptize)
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/cuttlefish'
make[2]: Entering directory '/home/didasy/emqx-rel/deps/jsx'
 DEPEND jsx.d
 ERLC   jsx.erl jsx_config.erl jsx_consult.erl jsx_decoder.erl jsx_encoder.erl jsx_parser.erl jsx_to_json.erl jsx_to_term.erl jsx_verify.erl
Old inliner: threshold=0 functions=[{doublequote,5},
                                    {singlequote,5},
                                    {maybe_replace,2},
                                    {format_number,1},
                                    {handle_event,3}]
 APP    jsx.app.src
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/jsx'
make[2]: Entering directory '/home/didasy/emqx-rel/deps/gproc'
 DEPEND gproc.d
 ERLC   gproc.erl gproc_app.erl gproc_bcast.erl gproc_dist.erl gproc_info.erl gproc_init.erl gproc_lib.erl gproc_monitor.erl gproc_pool.erl gproc_ps.erl gproc_pt.erl gproc_sup.erl
src/gproc_dist.erl:25: Warning: behaviour gen_leader undefined
src/gproc_dist.erl:553: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
 APP    gproc.app.src
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/gproc'
make[2]: Entering directory '/home/didasy/emqx-rel/deps/gen_rpc'
 DEP    ssl_verify_fun
make[3]: Entering directory '/home/didasy/emqx-rel/deps/ssl_verify_fun'
 DEPEND ssl_verify_fun.d
 ERLC   ssl_verify_fingerprint.erl ssl_verify_fun_cert_helpers.erl ssl_verify_fun_encodings.erl ssl_verify_hostname.erl ssl_verify_pk.erl ssl_verify_string.erl ssl_verify_util.erl
 APP    ssl_verify_fun.app.src
make[3]: Leaving directory '/home/didasy/emqx-rel/deps/ssl_verify_fun'
 DEPEND gen_rpc.d
 ERLC   gen_rpc_driver_ssl.erl gen_rpc_driver_tcp.erl gen_rpc.erl gen_rpc_acceptor.erl gen_rpc_app.erl gen_rpc_client.erl gen_rpc_client_config.erl gen_rpc_dispatcher.erl gen_rpc_driver.erl gen_rpc_helper.erl gen_rpc_keepalive.erl gen_rpc_server.erl gen_rpc_acceptor_sup.erl gen_rpc_client_sup.erl gen_rpc_sup.erl
Inlining: inline_size=24 inline_effort=150
 APP    gen_rpc.app.src
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/gen_rpc'
make[2]: Entering directory '/home/didasy/emqx-rel/deps/ekka'
 DEPEND ekka.d
 ERLC   ekka.erl ekka_app.erl ekka_autoclean.erl ekka_autocluster.erl ekka_autoheal.erl ekka_boot.erl ekka_cluster.erl ekka_cluster_dns.erl ekka_cluster_etcd.erl ekka_cluster_k8s.erl ekka_cluster_mcast.erl ekka_cluster_static.erl ekka_cluster_strategy.erl ekka_cluster_sup.erl ekka_guid.erl ekka_httpc.erl ekka_locker.erl ekka_locker_sup.erl ekka_membership.erl ekka_mnesia.erl ekka_node.erl ekka_node_monitor.erl ekka_node_ttl.erl ekka_ring.erl ekka_sup.erl
 APP    ekka.app.src
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/ekka'
make[2]: Entering directory '/home/didasy/emqx-rel/deps/esockd'
 DEPEND esockd.d
 ERLC   esockd.erl esockd_acceptor.erl esockd_acceptor_sup.erl esockd_access.erl esockd_app.erl esockd_cidr.erl esockd_connection_sup.erl esockd_dtls_acceptor.erl esockd_dtls_acceptor_sup.erl esockd_dtls_listener_sup.erl esockd_keepalive.erl esockd_listener.erl esockd_listener_sup.erl esockd_net.erl esockd_peercert.erl esockd_proxy_protocol.erl esockd_rate_limit.erl esockd_rate_limiter.erl esockd_server.erl esockd_ssl.erl esockd_sup.erl esockd_transport.erl esockd_udp.erl esockd_util.erl
 APP    esockd.app.src
 GEN    rebar.config
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/esockd'
make[2]: Entering directory '/home/didasy/emqx-rel/deps/cowboy'
 DEP    cowlib
 DEP    ranch
make[3]: Entering directory '/home/didasy/emqx-rel/deps/cowlib'
 DEPEND cowlib.d
 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.app.src
make[3]: Leaving directory '/home/didasy/emqx-rel/deps/cowlib'
make[3]: Entering directory '/home/didasy/emqx-rel/deps/ranch'
 DEPEND ranch.d
 ERLC   ranch.erl ranch_acceptor.erl ranch_acceptors_sup.erl ranch_app.erl ranch_conns_sup.erl ranch_listener_sup.erl ranch_protocol.erl ranch_server.erl ranch_ssl.erl ranch_sup.erl ranch_tcp.erl ranch_transport.erl
src/ranch_ssl.erl:131: Warning: ssl:ssl_accept/2: deprecated; use ssl:handshake/2 instead
 APP    ranch.app.src
make[3]: Leaving directory '/home/didasy/emqx-rel/deps/ranch'
 DEPEND cowboy.d
 ERLC   cowboy.erl cowboy_app.erl cowboy_bstr.erl cowboy_children.erl cowboy_clear.erl cowboy_clock.erl cowboy_compress_h.erl cowboy_constraints.erl cowboy_handler.erl cowboy_http.erl cowboy_http2.erl cowboy_iolists.erl cowboy_loop.erl cowboy_metrics_h.erl cowboy_middleware.erl cowboy_req.erl cowboy_rest.erl cowboy_router.erl cowboy_static.erl cowboy_stream.erl cowboy_stream_h.erl cowboy_sub_protocol.erl cowboy_sup.erl cowboy_tls.erl cowboy_tracer_h.erl cowboy_websocket.erl
src/cowboy_handler.erl:47: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_http.erl:286: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_http.erl:303: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_http.erl:800: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_http.erl:1125: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_http.erl:1211: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_http2.erl:573: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_http2.erl:639: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_http2.erl:1206: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_http2.erl:1229: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_http2.erl:1351: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_loop.erl:82: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_req.erl:205: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_req.erl:396: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_req.erl:497: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_req.erl:550: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_rest.erl:1213: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_stream_h.erl:255: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_stream_h.erl:260: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_stream_h.erl:264: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_websocket.erl:484: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
 APP    cowboy.app.src
 GEN    rebar.config
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/cowboy'
make[2]: Entering directory '/home/didasy/emqx-rel/deps/replayq'
 DEPEND replayq.d
 ERLC   replayq.erl
 APP    replayq.app.src
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/replayq'
 DEPEND emqx.d
 ERLC   emqx.erl emqx_access_control.erl emqx_access_rule.erl emqx_acl_cache.erl emqx_acl_internal.erl emqx_acl_mod.erl emqx_alarm_mgr.erl emqx_app.erl emqx_auth_mod.erl emqx_banned.erl emqx_base62.erl emqx_batch.erl emqx_bridge.erl emqx_bridge_sup.erl emqx_broker.erl emqx_broker_helper.erl emqx_broker_sup.erl emqx_cli.erl emqx_client.erl emqx_client_sock.erl emqx_cm.erl emqx_cm_sup.erl emqx_config.erl emqx_connection.erl emqx_ctl.erl emqx_flapping.erl emqx_frame.erl emqx_gc.erl emqx_gen_mod.erl emqx_guid.erl emqx_hooks.erl emqx_inflight.erl emqx_json.erl emqx_keepalive.erl emqx_kernel_sup.erl emqx_listeners.erl emqx_local_bridge.erl emqx_local_bridge_sup.erl emqx_local_bridge_sup_sup.erl emqx_logger.erl emqx_logger_formatter.erl emqx_message.erl emqx_metrics.erl emqx_misc.erl emqx_mod_presence.erl emqx_mod_rewrite.erl emqx_mod_subscription.erl emqx_mod_sup.erl emqx_modules.erl emqx_mountpoint.erl emqx_mqtt_caps.erl emqx_mqtt_props.erl emqx_mqtt_types.erl emqx_mqueue.erl emqx_packet.erl emqx_pd.erl emqx_plugins.erl emqx_pmon.erl emqx_pool.erl emqx_pool_sup.erl emqx_pqueue.erl emqx_protocol.erl emqx_rate_limiter.erl emqx_reason_codes.erl emqx_router.erl emqx_router_helper.erl emqx_router_sup.erl emqx_rpc.erl emqx_sequence.erl emqx_session.erl emqx_session_sup.erl emqx_shared_sub.erl emqx_sm.erl emqx_sm_locker.erl emqx_sm_registry.erl emqx_sm_sup.erl emqx_stats.erl emqx_sup.erl emqx_sys.erl emqx_sys_mon.erl emqx_sys_sup.erl emqx_tables.erl emqx_time.erl emqx_topic.erl emqx_tracer.erl emqx_trie.erl emqx_types.erl emqx_vm.erl emqx_ws_connection.erl emqx_zone.erl
 APP    emqx.app.src
make[1]: Leaving directory '/home/didasy/emqx-rel/deps/emqx'
make[1]: Entering directory '/home/didasy/emqx-rel/deps/emqx_retainer'
 DEP    clique
make[2]: Entering directory '/home/didasy/emqx-rel/deps/clique'
 DEPEND clique.d
 ERLC   clique.erl clique_app.erl clique_command.erl clique_config.erl clique_csv_writer.erl clique_error.erl clique_handler.erl clique_human_writer.erl clique_json_writer.erl clique_manager.erl clique_nodes.erl clique_parser.erl clique_spec.erl clique_status.erl clique_sup.erl clique_table.erl clique_test_group_leader.erl clique_typecast.erl clique_usage.erl clique_writer.erl
 APP    clique.app.src
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/clique'
 DEPEND emqx_retainer.d
 ERLC   emqx_retainer.erl emqx_retainer_app.erl emqx_retainer_cfg.erl emqx_retainer_cli.erl emqx_retainer_sup.erl
 APP    emqx_retainer.app.src
make[1]: Leaving directory '/home/didasy/emqx-rel/deps/emqx_retainer'
make[1]: Entering directory '/home/didasy/emqx-rel/deps/emqx_recon'
 DEP    recon
make[2]: Entering directory '/home/didasy/emqx-rel/deps/recon'
 DEPEND recon.d
 ERLC   recon.erl recon_alloc.erl recon_lib.erl recon_trace.erl
Old inliner: threshold=0 functions=[{insert,2},{merge,2}]
 APP    recon.app.src
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/recon'
 DEPEND emqx_recon.d
 ERLC   emqx_recon.erl emqx_recon_cli.erl emqx_recon_gc.erl
 APP    emqx_recon.app.src
make[1]: Leaving directory '/home/didasy/emqx-rel/deps/emqx_recon'
make[1]: Entering directory '/home/didasy/emqx-rel/deps/emqx_management'
 DEP    minirest
make[2]: Entering directory '/home/didasy/emqx-rel/deps/minirest'
 DEPEND minirest.d
 ERLC   minirest.erl minirest_handler.erl
 APP    minirest.app.src
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/minirest'
 DEPEND emqx_management.d
 ERLC   emqx_mgmt.erl emqx_mgmt_api.erl emqx_mgmt_api_alarms.erl emqx_mgmt_api_apps.erl emqx_mgmt_api_banned.erl emqx_mgmt_api_brokers.erl emqx_mgmt_api_configs.erl emqx_mgmt_api_connections.erl emqx_mgmt_api_listeners.erl emqx_mgmt_api_metrics.erl emqx_mgmt_api_nodes.erl emqx_mgmt_api_plugins.erl emqx_mgmt_api_pubsub.erl emqx_mgmt_api_routes.erl emqx_mgmt_api_sessions.erl emqx_mgmt_api_stats.erl emqx_mgmt_api_subscriptions.erl emqx_mgmt_app.erl emqx_mgmt_auth.erl emqx_mgmt_cli.erl emqx_mgmt_cli_cfg.erl emqx_mgmt_config.erl emqx_mgmt_http.erl emqx_mgmt_sup.erl emqx_mgmt_util.erl
src/emqx_mgmt_cli.erl:566: Warning: function set_handlers_level/2 is unused
src/emqx_mgmt_cli.erl:569: Warning: function set_handlers_level/3 is unused
src/emqx_mgmt_cli.erl:579: Warning: function rollback/1 is unused
 APP    emqx_management.app.src
make[1]: Leaving directory '/home/didasy/emqx-rel/deps/emqx_management'
make[1]: Entering directory '/home/didasy/emqx-rel/deps/emqx_auth_clientid'
 DEP    emqx_passwd
make[2]: Entering directory '/home/didasy/emqx-rel/deps/emqx_passwd'
 DEP    pbkdf2
 DEP    bcrypt
{"init terminating in do_boot",{{badmatch,{error,enoent}},[{rebar_utils,otp_release1,1,[{file,"src/rebar_utils.erl"},{line,416}]},{rebar_utils,get_arch,0,[{file,"src/rebar_utils.erl"},{line,95}]},{rebar_utils,is_arch,1,[{file,"src/rebar_utils.erl"},{line,86}]},{erl_eval,do_apply,6,[{file,"erl_eval.erl"},{line,680}]},{erl_eval,expr,5,[{file,"erl_eval.erl"},{line,273}]},{erl_eval,eval_lc1,6,[{file,"erl_eval.erl"},{line,706}]},{erl_eval,eval_generate,7,[{file,"erl_eval.erl"},{line,735}]},{erl_eval,eval_lc,6,[{file,"erl_eval.erl"},{line,692}]}]}}
init terminating in do_boot ({{badmatch,{error,enoent}},[{rebar_utils,otp_release1,1,[{_},{_}]},{rebar_utils,get_arch,0,[{_},{_}]},{rebar_utils,is_arch,1,[{_},{_}]},{erl_eval,do_apply,6,[{_},{_}]},{er

Crash dump is being written to: erl_crash.dump...done
make[3]: Entering directory '/home/didasy/emqx-rel/deps/pbkdf2'
 DEPEND pbkdf2.d
 ERLC   pbkdf2.erl
 APP    pbkdf2.app.src
make[3]: Leaving directory '/home/didasy/emqx-rel/deps/pbkdf2'
make[3]: Entering directory '/home/didasy/emqx-rel/deps/bcrypt'
make[3]: *** No rule to make target 'deps', needed by 'rebar_dep'.  Stop.
make[3]: Leaving directory '/home/didasy/emqx-rel/deps/bcrypt'
../../erlang.mk:336: recipe for target 'deps' failed
make[2]: *** [deps] Error 2
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/emqx_passwd'
../../erlang.mk:336: recipe for target 'deps' failed
make[1]: *** [deps] Error 2
make[1]: Leaving directory '/home/didasy/emqx-rel/deps/emqx_auth_clientid'
erlang.mk:334: recipe for target 'deps' failed
make: *** [deps] Error 2
gilbertwong96 commented 5 years ago

It is weird, I have never encountered error like this. I suggest you to run make distclean and make to rebuild this project again.

didasy commented 5 years ago

@Gilbert-Wong so what's your current guess about this? I'll try distclean and then report the result.

didasy commented 5 years ago

Reporting back:

didasy@orangepione:~/emqx-rel$ make distclean
 GEN    coverdata-clean
 GEN    distclean-tmp
 GEN    distclean-deps
 GEN    distclean-asciidoc
 GEN    distclean-ct
 GEN    distclean-plt
 GEN    distclean-edoc
 GEN    distclean-escript
 GEN    distclean-relx-rel
 GEN    distclean-xref
 GEN    cover-report-clean
didasy@orangepione:~/emqx-rel$ make
 DEP    emqx
 DEP    emqx_retainer
 DEP    emqx_recon
 DEP    emqx_management
 DEP    emqx_auth_clientid
 DEP    emqx_auth_username
 DEP    emqx_auth_http
 DEP    emqx_auth_mysql
 DEP    emqx_reloader
 DEP    emqx_sn
 DEP    emqx_coap
 DEP    emqx_stomp
 DEP    emqx_web_hook
 DEP    emqx_auth_jwt
 DEP    emqx_delayed_publish
 DEP    emqx_lwm2m
 DEP    emqx_dashboard
 DEP    emqx_auth_ldap
 DEP    emqx_auth_pgsql
 DEP    emqx_auth_redis
 DEP    emqx_auth_mongo
 DEP    emqx_plugin_template
 DEP    emqx_statsd
 DEP    emqx_lua_hook
make[1]: Entering directory '/home/didasy/emqx-rel/deps/emqx'
 DEP    cuttlefish
 DEP    jsx
make[2]: Entering directory '/home/didasy/emqx-rel/.erlang.mk/rebar'
./bootstrap
Recompile: src/rebar
Recompile: src/rebar_abnfc_compiler
Recompile: src/rebar_app_utils
Recompile: src/rebar_appups
Recompile: src/rebar_asn1_compiler
Recompile: src/rebar_base_compiler
Recompile: src/rebar_cleaner
Recompile: src/rebar_config
Recompile: src/rebar_core
Recompile: src/rebar_cover_utils
Recompile: src/rebar_ct
Recompile: src/rebar_deps
Recompile: src/rebar_dia_compiler
Recompile: src/rebar_edoc
Recompile: src/rebar_erlc_compiler
Recompile: src/rebar_erlydtl_compiler
Recompile: src/rebar_escripter
Recompile: src/rebar_eunit
src/rebar_eunit.erl:279: Warning: crypto:rand_uniform/2 is deprecated and will be removed in a future release; use rand:uniform/1
src/rebar_eunit.erl:293: Warning: random:seed/3: the 'random' module is deprecated; use the 'rand' module instead
src/rebar_eunit.erl:295: Warning: random:uniform/0: the 'random' module is deprecated; use the 'rand' module instead
Recompile: src/rebar_file_utils
Recompile: src/rebar_getopt
Recompile: src/rebar_lfe_compiler
Recompile: src/rebar_log
Recompile: src/rebar_metacmds
Recompile: src/rebar_mustache
Recompile: src/rebar_neotoma_compiler
Recompile: src/rebar_otp_app
Recompile: src/rebar_otp_appup
Recompile: src/rebar_port_compiler
Recompile: src/rebar_proto_compiler
Recompile: src/rebar_proto_gpb_compiler
Recompile: src/rebar_protobuffs_compiler
Recompile: src/rebar_qc
Recompile: src/rebar_rel_utils
Recompile: src/rebar_reltool
Recompile: src/rebar_require_vsn
Recompile: src/rebar_shell
Recompile: src/rebar_subdirs
Recompile: src/rebar_templater
Recompile: src/rebar_upgrade
Recompile: src/rebar_utils
Recompile: src/rebar_xref
Uncaught error in rebar_core: {'EXIT',
                               {{badmatch,{error,enoent}},
                                [{rebar_utils,otp_release1,1,
                                  [{file,"src/rebar_utils.erl"},{line,416}]},
                                 {rebar_utils,get_arch,0,
                                  [{file,"src/rebar_utils.erl"},{line,95}]},
                                 {rebar_port_compiler,default_env,0,
                                  [{file,"src/rebar_port_compiler.erl"},
                                   {line,597}]},
                                 {rebar_port_compiler,setup_env,2,
                                  [{file,"src/rebar_port_compiler.erl"},
                                   {line,182}]},
                                 {rebar_core,'-setup_envs/2-fun-0-',2,
                                  [{file,"src/rebar_core.erl"},{line,525}]},
                                 {lists,foldl,3,
                                  [{file,"lists.erl"},{line,1263}]},
                                 {rebar_core,maybe_execute,8,
                                  [{file,"src/rebar_core.erl"},{line,296}]},
                                 {rebar_core,process_dir1,7,
                                  [{file,"src/rebar_core.erl"},{line,261}]}]}}
Makefile:12: recipe for target 'all' failed
make[2]: *** [all] Error 1
make[2]: Leaving directory '/home/didasy/emqx-rel/.erlang.mk/rebar'
/home/didasy/emqx-rel/deps/emqx
 DEP    gproc
 DEP    gen_rpc
 DEP    ekka
 DEP    esockd
 DEP    cowboy
 DEP    replayq
make[2]: Entering directory '/home/didasy/emqx-rel/deps/cuttlefish'
./rebar get-deps
==> cuttlefish (get-deps)
Pulling getopt from {git,"https://github.com/basho/getopt.git",{tag,"v0.8.2"}}
Cloning into 'getopt'...
Pulling neotoma from {git,"https://github.com/basho/neotoma.git",
                          {tag,"1.7.4"}}
Cloning into 'neotoma'...
==> getopt (get-deps)
==> neotoma (get-deps)
./rebar compile
==> getopt (compile)
Compiled src/getopt.erl
==> neotoma (compile)
Compiled src/neotoma.erl
Compiled src/neotoma_parse.erl
==> cuttlefish (compile)
Compiled src/cuttlefish_duration_parse.peg
Compiled src/conf_parse.peg
Compiled src/cuttlefish_flag.erl
Compiled src/cuttlefish_bytesize.erl
Compiled src/cuttlefish_util.erl
Compiled src/cuttlefish.erl
Compiled src/cuttlefish_rebar_plugin.erl
Compiled src/cuttlefish_duration.erl
src/cuttlefish_unit.erl:4: Warning: export_all flag enabled - all functions will be exported
Compiled src/cuttlefish_unit.erl
Compiled src/cuttlefish_generator.erl
Compiled src/cuttlefish_vmargs.erl
Compiled src/cuttlefish_effective.erl
Compiled src/cuttlefish_advanced.erl
Compiled src/cuttlefish_escript.erl
Compiled src/conf_parse.erl
Compiled src/cuttlefish_conf.erl
Compiled src/cuttlefish_enum.erl
Compiled src/cuttlefish_translation.erl
Compiled src/cuttlefish_schema.erl
Compiled src/cuttlefish_variable.erl
Compiled src/cuttlefish_validator.erl
Compiled src/cuttlefish_mapping.erl
Compiled src/cuttlefish_duration_parse.erl
Compiled src/cuttlefish_error.erl
Compiled src/cuttlefish_datatypes.erl
./rebar skip_deps=true escriptize
==> cuttlefish (escriptize)
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/cuttlefish'
make[2]: Entering directory '/home/didasy/emqx-rel/deps/jsx'
 DEPEND jsx.d
 ERLC   jsx.erl jsx_config.erl jsx_consult.erl jsx_decoder.erl jsx_encoder.erl jsx_parser.erl jsx_to_json.erl jsx_to_term.erl jsx_verify.erl
Old inliner: threshold=0 functions=[{doublequote,5},
                                    {singlequote,5},
                                    {maybe_replace,2},
                                    {format_number,1},
                                    {handle_event,3}]
 APP    jsx.app.src
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/jsx'
make[2]: Entering directory '/home/didasy/emqx-rel/deps/gproc'
 DEPEND gproc.d
 ERLC   gproc.erl gproc_app.erl gproc_bcast.erl gproc_dist.erl gproc_info.erl gproc_init.erl gproc_lib.erl gproc_monitor.erl gproc_pool.erl gproc_ps.erl gproc_pt.erl gproc_sup.erl
src/gproc_dist.erl:25: Warning: behaviour gen_leader undefined
src/gproc_dist.erl:553: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
 APP    gproc.app.src
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/gproc'
make[2]: Entering directory '/home/didasy/emqx-rel/deps/gen_rpc'
 DEP    ssl_verify_fun
make[3]: Entering directory '/home/didasy/emqx-rel/deps/ssl_verify_fun'
 DEPEND ssl_verify_fun.d
 ERLC   ssl_verify_fingerprint.erl ssl_verify_fun_cert_helpers.erl ssl_verify_fun_encodings.erl ssl_verify_hostname.erl ssl_verify_pk.erl ssl_verify_string.erl ssl_verify_util.erl
 APP    ssl_verify_fun.app.src
make[3]: Leaving directory '/home/didasy/emqx-rel/deps/ssl_verify_fun'
 DEPEND gen_rpc.d
 ERLC   gen_rpc_driver_ssl.erl gen_rpc_driver_tcp.erl gen_rpc.erl gen_rpc_acceptor.erl gen_rpc_app.erl gen_rpc_client.erl gen_rpc_client_config.erl gen_rpc_dispatcher.erl gen_rpc_driver.erl gen_rpc_helper.erl gen_rpc_keepalive.erl gen_rpc_server.erl gen_rpc_acceptor_sup.erl gen_rpc_client_sup.erl gen_rpc_sup.erl
Inlining: inline_size=24 inline_effort=150
 APP    gen_rpc.app.src
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/gen_rpc'
make[2]: Entering directory '/home/didasy/emqx-rel/deps/ekka'
 DEPEND ekka.d
 ERLC   ekka.erl ekka_app.erl ekka_autoclean.erl ekka_autocluster.erl ekka_autoheal.erl ekka_boot.erl ekka_cluster.erl ekka_cluster_dns.erl ekka_cluster_etcd.erl ekka_cluster_k8s.erl ekka_cluster_mcast.erl ekka_cluster_static.erl ekka_cluster_strategy.erl ekka_cluster_sup.erl ekka_guid.erl ekka_httpc.erl ekka_locker.erl ekka_locker_sup.erl ekka_membership.erl ekka_mnesia.erl ekka_node.erl ekka_node_monitor.erl ekka_node_ttl.erl ekka_ring.erl ekka_sup.erl
 APP    ekka.app.src
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/ekka'
make[2]: Entering directory '/home/didasy/emqx-rel/deps/esockd'
 DEPEND esockd.d
 ERLC   esockd.erl esockd_acceptor.erl esockd_acceptor_sup.erl esockd_access.erl esockd_app.erl esockd_cidr.erl esockd_connection_sup.erl esockd_dtls_acceptor.erl esockd_dtls_acceptor_sup.erl esockd_dtls_listener_sup.erl esockd_keepalive.erl esockd_listener.erl esockd_listener_sup.erl esockd_net.erl esockd_peercert.erl esockd_proxy_protocol.erl esockd_rate_limit.erl esockd_rate_limiter.erl esockd_server.erl esockd_ssl.erl esockd_sup.erl esockd_transport.erl esockd_udp.erl esockd_util.erl
 APP    esockd.app.src
 GEN    rebar.config
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/esockd'
make[2]: Entering directory '/home/didasy/emqx-rel/deps/cowboy'
 DEP    cowlib
 DEP    ranch
make[3]: Entering directory '/home/didasy/emqx-rel/deps/cowlib'
 DEPEND cowlib.d
 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.app.src
make[3]: Leaving directory '/home/didasy/emqx-rel/deps/cowlib'
make[3]: Entering directory '/home/didasy/emqx-rel/deps/ranch'
 DEPEND ranch.d
 ERLC   ranch.erl ranch_acceptor.erl ranch_acceptors_sup.erl ranch_app.erl ranch_conns_sup.erl ranch_listener_sup.erl ranch_protocol.erl ranch_server.erl ranch_ssl.erl ranch_sup.erl ranch_tcp.erl ranch_transport.erl
src/ranch_ssl.erl:131: Warning: ssl:ssl_accept/2: deprecated; use ssl:handshake/2 instead
 APP    ranch.app.src
make[3]: Leaving directory '/home/didasy/emqx-rel/deps/ranch'
 DEPEND cowboy.d
 ERLC   cowboy.erl cowboy_app.erl cowboy_bstr.erl cowboy_children.erl cowboy_clear.erl cowboy_clock.erl cowboy_compress_h.erl cowboy_constraints.erl cowboy_handler.erl cowboy_http.erl cowboy_http2.erl cowboy_iolists.erl cowboy_loop.erl cowboy_metrics_h.erl cowboy_middleware.erl cowboy_req.erl cowboy_rest.erl cowboy_router.erl cowboy_static.erl cowboy_stream.erl cowboy_stream_h.erl cowboy_sub_protocol.erl cowboy_sup.erl cowboy_tls.erl cowboy_tracer_h.erl cowboy_websocket.erl
src/cowboy_handler.erl:47: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_http.erl:286: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_http.erl:303: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_http.erl:800: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_http.erl:1125: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_http.erl:1211: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_http2.erl:573: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_http2.erl:639: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_http2.erl:1206: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_http2.erl:1229: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_http2.erl:1351: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_loop.erl:82: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_req.erl:205: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_req.erl:396: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_req.erl:497: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_req.erl:550: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_rest.erl:1213: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_stream_h.erl:255: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_stream_h.erl:260: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_stream_h.erl:264: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
src/cowboy_websocket.erl:484: Warning: erlang:get_stacktrace/0: deprecated; use the new try/catch syntax for retrieving the stack backtrace
 APP    cowboy.app.src
 GEN    rebar.config
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/cowboy'
make[2]: Entering directory '/home/didasy/emqx-rel/deps/replayq'
 DEPEND replayq.d
 ERLC   replayq.erl
 APP    replayq.app.src
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/replayq'
 DEPEND emqx.d
 ERLC   emqx.erl emqx_access_control.erl emqx_access_rule.erl emqx_acl_cache.erl emqx_acl_internal.erl emqx_acl_mod.erl emqx_alarm_mgr.erl emqx_app.erl emqx_auth_mod.erl emqx_banned.erl emqx_base62.erl emqx_batch.erl emqx_bridge.erl emqx_bridge_sup.erl emqx_broker.erl emqx_broker_helper.erl emqx_broker_sup.erl emqx_cli.erl emqx_client.erl emqx_client_sock.erl emqx_cm.erl emqx_cm_sup.erl emqx_config.erl emqx_connection.erl emqx_ctl.erl emqx_flapping.erl emqx_frame.erl emqx_gc.erl emqx_gen_mod.erl emqx_guid.erl emqx_hooks.erl emqx_inflight.erl emqx_json.erl emqx_keepalive.erl emqx_kernel_sup.erl emqx_listeners.erl emqx_local_bridge.erl emqx_local_bridge_sup.erl emqx_local_bridge_sup_sup.erl emqx_logger.erl emqx_logger_formatter.erl emqx_message.erl emqx_metrics.erl emqx_misc.erl emqx_mod_presence.erl emqx_mod_rewrite.erl emqx_mod_subscription.erl emqx_mod_sup.erl emqx_modules.erl emqx_mountpoint.erl emqx_mqtt_caps.erl emqx_mqtt_props.erl emqx_mqtt_types.erl emqx_mqueue.erl emqx_packet.erl emqx_pd.erl emqx_plugins.erl emqx_pmon.erl emqx_pool.erl emqx_pool_sup.erl emqx_pqueue.erl emqx_protocol.erl emqx_rate_limiter.erl emqx_reason_codes.erl emqx_router.erl emqx_router_helper.erl emqx_router_sup.erl emqx_rpc.erl emqx_sequence.erl emqx_session.erl emqx_session_sup.erl emqx_shared_sub.erl emqx_sm.erl emqx_sm_locker.erl emqx_sm_registry.erl emqx_sm_sup.erl emqx_stats.erl emqx_sup.erl emqx_sys.erl emqx_sys_mon.erl emqx_sys_sup.erl emqx_tables.erl emqx_time.erl emqx_topic.erl emqx_tracer.erl emqx_trie.erl emqx_types.erl emqx_vm.erl emqx_ws_connection.erl emqx_zone.erl
 APP    emqx.app.src
make[1]: Leaving directory '/home/didasy/emqx-rel/deps/emqx'
make[1]: Entering directory '/home/didasy/emqx-rel/deps/emqx_retainer'
 DEP    clique
make[2]: Entering directory '/home/didasy/emqx-rel/deps/clique'
 DEPEND clique.d
 ERLC   clique.erl clique_app.erl clique_command.erl clique_config.erl clique_csv_writer.erl clique_error.erl clique_handler.erl clique_human_writer.erl clique_json_writer.erl clique_manager.erl clique_nodes.erl clique_parser.erl clique_spec.erl clique_status.erl clique_sup.erl clique_table.erl clique_test_group_leader.erl clique_typecast.erl clique_usage.erl clique_writer.erl
 APP    clique.app.src
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/clique'
 DEPEND emqx_retainer.d
 ERLC   emqx_retainer.erl emqx_retainer_app.erl emqx_retainer_cfg.erl emqx_retainer_cli.erl emqx_retainer_sup.erl
 APP    emqx_retainer.app.src
make[1]: Leaving directory '/home/didasy/emqx-rel/deps/emqx_retainer'
make[1]: Entering directory '/home/didasy/emqx-rel/deps/emqx_recon'
 DEP    recon
make[2]: Entering directory '/home/didasy/emqx-rel/deps/recon'
 DEPEND recon.d
 ERLC   recon.erl recon_alloc.erl recon_lib.erl recon_trace.erl
Old inliner: threshold=0 functions=[{insert,2},{merge,2}]
 APP    recon.app.src
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/recon'
 DEPEND emqx_recon.d
 ERLC   emqx_recon.erl emqx_recon_cli.erl emqx_recon_gc.erl
 APP    emqx_recon.app.src
make[1]: Leaving directory '/home/didasy/emqx-rel/deps/emqx_recon'
make[1]: Entering directory '/home/didasy/emqx-rel/deps/emqx_management'
 DEP    minirest
make[2]: Entering directory '/home/didasy/emqx-rel/deps/minirest'
 DEPEND minirest.d
 ERLC   minirest.erl minirest_handler.erl
 APP    minirest.app.src
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/minirest'
 DEPEND emqx_management.d
 ERLC   emqx_mgmt.erl emqx_mgmt_api.erl emqx_mgmt_api_alarms.erl emqx_mgmt_api_apps.erl emqx_mgmt_api_banned.erl emqx_mgmt_api_brokers.erl emqx_mgmt_api_configs.erl emqx_mgmt_api_connections.erl emqx_mgmt_api_listeners.erl emqx_mgmt_api_metrics.erl emqx_mgmt_api_nodes.erl emqx_mgmt_api_plugins.erl emqx_mgmt_api_pubsub.erl emqx_mgmt_api_routes.erl emqx_mgmt_api_sessions.erl emqx_mgmt_api_stats.erl emqx_mgmt_api_subscriptions.erl emqx_mgmt_app.erl emqx_mgmt_auth.erl emqx_mgmt_cli.erl emqx_mgmt_cli_cfg.erl emqx_mgmt_config.erl emqx_mgmt_http.erl emqx_mgmt_sup.erl emqx_mgmt_util.erl
src/emqx_mgmt_cli.erl:566: Warning: function set_handlers_level/2 is unused
src/emqx_mgmt_cli.erl:569: Warning: function set_handlers_level/3 is unused
src/emqx_mgmt_cli.erl:579: Warning: function rollback/1 is unused
 APP    emqx_management.app.src
make[1]: Leaving directory '/home/didasy/emqx-rel/deps/emqx_management'
make[1]: Entering directory '/home/didasy/emqx-rel/deps/emqx_auth_clientid'
 DEP    emqx_passwd
make[2]: Entering directory '/home/didasy/emqx-rel/deps/emqx_passwd'
 DEP    pbkdf2
 DEP    bcrypt
{"init terminating in do_boot",{{badmatch,{error,enoent}},[{rebar_utils,otp_release1,1,[{file,"src/rebar_utils.erl"},{line,416}]},{rebar_utils,get_arch,0,[{file,"src/rebar_utils.erl"},{line,95}]},{rebar_utils,is_arch,1,[{file,"src/rebar_utils.erl"},{line,86}]},{erl_eval,do_apply,6,[{file,"erl_eval.erl"},{line,680}]},{erl_eval,expr,5,[{file,"erl_eval.erl"},{line,273}]},{erl_eval,eval_lc1,6,[{file,"erl_eval.erl"},{line,706}]},{erl_eval,eval_generate,7,[{file,"erl_eval.erl"},{line,735}]},{erl_eval,eval_lc,6,[{file,"erl_eval.erl"},{line,692}]}]}}
init terminating in do_boot ({{badmatch,{error,enoent}},[{rebar_utils,otp_release1,1,[{_},{_}]},{rebar_utils,get_arch,0,[{_},{_}]},{rebar_utils,is_arch,1,[{_},{_}]},{erl_eval,do_apply,6,[{_},{_}]},{er

Crash dump is being written to: erl_crash.dump...done
make[3]: Entering directory '/home/didasy/emqx-rel/deps/pbkdf2'
 DEPEND pbkdf2.d
 ERLC   pbkdf2.erl
 APP    pbkdf2.app.src
make[3]: Leaving directory '/home/didasy/emqx-rel/deps/pbkdf2'
make[3]: Entering directory '/home/didasy/emqx-rel/deps/bcrypt'
make[3]: *** No rule to make target 'deps', needed by 'rebar_dep'.  Stop.
make[3]: Leaving directory '/home/didasy/emqx-rel/deps/bcrypt'
../../erlang.mk:336: recipe for target 'deps' failed
make[2]: *** [deps] Error 2
make[2]: Leaving directory '/home/didasy/emqx-rel/deps/emqx_passwd'
../../erlang.mk:336: recipe for target 'deps' failed
make[1]: *** [deps] Error 2
make[1]: Leaving directory '/home/didasy/emqx-rel/deps/emqx_auth_clientid'
erlang.mk:334: recipe for target 'deps' failed
make: *** [deps] Error 2
907474646 commented 5 years ago

Maybe I can give you two suggestions: Check your user authority, you should use the same user to do all these operations,include install erlang ,clone code . Check you Erlang version and use the appropriate version,because I have encountered the similar errors.The old version code is not compatibility for the higher Erlang version .

turtleDeng commented 4 years ago

Thanks for your feedback, we have compiled with rebar3, please use the latest version to compile.