Opened 8 years ago

Closed 8 years ago

#51894 closed defect (duplicate)

rabbitmq-server @3.5.7: build fails with erlang 19.0

Reported by: mndavidoff (Monte Davidoff) Owned by: hayder.net@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: todofixthis (Phoenix)
Port: rabbitmq-server

Description

The rabbitmq-server @3.5.7 port does not build after upgrading to erlang @19.0.

$ port -vs install rabbitmq-server
...
echo src/app_utils.erl:src/background_gc.erl:src/credit_flow.erl:src/delegate.erl:src/delegate_sup.erl:src/dtree.erl:src/file_handle_cache.erl:src/file_handle_cache_stats.erl:src/gatherer.erl:src/gen_server2.erl:src/gm.erl:src/lqueue.erl:src/mirrored_supervisor.erl:src/mirrored_supervisor_sups.erl:src/mnesia_sync.erl:src/mochijson2.erl:src/mochinum.erl:src/pg2_fixed.erl:src/pg_local.erl:src/pmon.erl:src/priority_queue.erl:src/rabbit.erl:src/rabbit_access_control.erl:src/rabbit_alarm.erl:src/rabbit_amqqueue.erl:src/rabbit_amqqueue_process.erl:src/rabbit_amqqueue_sup.erl:src/rabbit_amqqueue_sup_sup.erl:src/rabbit_auth_backend_dummy.erl:src/rabbit_auth_backend_internal.erl:src/rabbit_auth_mechanism.erl:src/rabbit_auth_mechanism_amqplain.erl:src/rabbit_auth_mechanism_cr_demo.erl:src/rabbit_auth_mechanism_plain.erl:src/rabbit_authn_backend.erl:src/rabbit_authz_backend.erl:src/rabbit_autoheal.erl:src/rabbit_backing_queue.erl:src/rabbit_basic.erl:src/rabbit_binary_generator.erl:src/rabbit_binary_parser.erl:src/rabbit_binding.erl:src/rabbit_channel.erl:src/rabbit_channel_interceptor.erl:src/rabbit_channel_sup.erl:src/rabbit_channel_sup_sup.erl:src/rabbit_cli.erl:src/rabbit_client_sup.erl:src/rabbit_command_assembler.erl:src/rabbit_connection_helper_sup.erl:src/rabbit_connection_sup.erl:src/rabbit_control_main.erl:src/rabbit_ctl_misc.erl:src/rabbit_dead_letter.erl:src/rabbit_diagnostics.erl:src/rabbit_direct.erl:src/rabbit_disk_monitor.erl:src/rabbit_epmd_monitor.erl:src/rabbit_error_logger.erl:src/rabbit_error_logger_file_h.erl:src/rabbit_event.erl:src/rabbit_exchange.erl:src/rabbit_exchange_decorator.erl:src/rabbit_exchange_type.erl:src/rabbit_exchange_type_direct.erl:src/rabbit_exchange_type_fanout.erl:src/rabbit_exchange_type_headers.erl:src/rabbit_exchange_type_invalid.erl:src/rabbit_exchange_type_topic.erl:src/rabbit_file.erl:src/rabbit_framing.erl:src/rabbit_guid.erl:src/rabbit_heartbeat.erl:src/rabbit_limiter.erl:src/rabbit_log.erl:src/rabbit_memory_monitor.erl:src/rabbit_mirror_queue_coordinator.erl:src/rabbit_mirror_queue_master.erl:src/rabbit_mirror_queue_misc.erl:src/rabbit_mirror_queue_mode.erl:src/rabbit_mirror_queue_mode_all.erl:src/rabbit_mirror_queue_mode_exactly.erl:src/rabbit_mirror_queue_mode_nodes.erl:src/rabbit_mirror_queue_slave.erl:src/rabbit_mirror_queue_sync.erl:src/rabbit_misc.erl:src/rabbit_mnesia.erl:src/rabbit_mnesia_rename.erl:src/rabbit_msg_file.erl:src/rabbit_msg_store.erl:src/rabbit_msg_store_ets_index.erl:src/rabbit_msg_store_gc.erl:src/rabbit_msg_store_index.erl:src/rabbit_net.erl:src/rabbit_networking.erl:src/rabbit_node_monitor.erl:src/rabbit_nodes.erl:src/rabbit_parameter_validation.erl:src/rabbit_plugins.erl:src/rabbit_plugins_main.erl:src/rabbit_policies.erl:src/rabbit_policy.erl:src/rabbit_policy_validator.erl:src/rabbit_prelaunch.erl:src/rabbit_prequeue.erl:src/rabbit_priority_queue.erl:src/rabbit_queue_collector.erl:src/rabbit_queue_consumers.erl:src/rabbit_queue_decorator.erl:src/rabbit_queue_index.erl:src/rabbit_reader.erl:src/rabbit_recovery_terms.erl:src/rabbit_registry.erl:src/rabbit_restartable_sup.erl:src/rabbit_router.erl:src/rabbit_runtime_parameter.erl:src/rabbit_runtime_parameters.erl:src/rabbit_sasl_report_file_h.erl:src/rabbit_ssl.erl:src/rabbit_sup.erl:src/rabbit_table.erl:src/rabbit_trace.erl:src/rabbit_types.erl:src/rabbit_upgrade.erl:src/rabbit_upgrade_functions.erl:src/rabbit_variable_queue.erl:src/rabbit_version.erl:src/rabbit_vhost.erl:src/rabbit_vm.erl:src/rabbit_writer.erl:src/ssl_compat.erl:src/supervised_lifecycle.erl:src/supervisor2.erl:src/tcp_acceptor.erl:src/tcp_acceptor_sup.erl:src/tcp_listener.erl:src/tcp_listener_sup.erl:src/time_compat.erl:src/truncate.erl:src/vm_memory_monitor.erl:src/worker_pool.erl:src/worker_pool_sup.erl:src/worker_pool_worker.erl:src/rabbit_framing_amqp_0_9_1.erl:src/rabbit_framing_amqp_0_8.erl:src/rabbit_ctl_usage.erl:src/rabbit_plugins_usage.erl:include/gm_specs.hrl:include/rabbit.hrl:include/rabbit_cli.hrl:include/rabbit_msg_store.hrl:include/rabbit_framing.hrl: | escript generate_deps deps.mk ebin
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_rabbitmq-server/rabbitmq-server/work/rabbitmq-server-3.5.7'
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_rabbitmq-server/rabbitmq-server/work/rabbitmq-server-3.5.7'
escript generate_app ebin/rabbit_app.in ebin/rabbit.app src
erlc -o ebin -I include -Wall +warn_export_vars -v +debug_info   -Duse_specs -DINSTR_MOD=gm -pa ebin src/app_utils.erl
erlc -o ebin -I include -Wall +warn_export_vars -v +debug_info   -Duse_specs -DINSTR_MOD=gm -pa ebin src/gen_server2.erl
src/gen_server2.erl:231: syntax error before: '/'
src/gen_server2.erl:233: syntax error before: '/'
src/gen_server2.erl:234: syntax error before: '/'
src/gen_server2.erl:235: syntax error before: '/'
src/gen_server2.erl:229: Warning: type gs2_state() is unused
src/gen_server2.erl:627: 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/gen_server2.erl:698: 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/gen_server2.erl:706: 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/gen_server2.erl:763: Warning: random:uniform_s/2: the 'random' module is deprecated; use the 'rand' module instead
make: *** [ebin/gen_server2.beam] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_rabbitmq-server/rabbitmq-server/work/rabbitmq-server-3.5.7'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_rabbitmq-server/rabbitmq-server/work/rabbitmq-server-3.5.7" && /usr/bin/make -w all PYTHON=python2.7 
Exit code: 2
Error: org.macports.build for port rabbitmq-server returned: command execution failed

The current version of RabbitMQ is 3.6.3, so maybe this problem has been fixed upstream.

Attachments (1)

main.log.gz (5.7 KB) - added by mndavidoff (Monte Davidoff) 8 years ago.

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by mndavidoff (Monte Davidoff)

Attachment: main.log.gz added

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Cc: hayder.net@… removed
Owner: changed from macports-tickets@… to hayder.net@…

comment:2 Changed 8 years ago by todofixthis (Phoenix)

Cc: phoenix.zerin@… added

Cc Me!

comment:3 Changed 8 years ago by todofixthis (Phoenix)

Workaround for anyone who cannot install rabbitmq-server because of this issue:

  1. cd /tmp
  2. svn checkout -r 147014 https://svn.macports.org/repository/macports/trunk/dports/lang/erlang
  3. cd erlang
  4. sudo port install
  5. sudo -n port install rabbitmq-server

Notes:

  • Step 2 checks out a previous revision of the Erlang Portfile which references version 18.3.
  • The -n in step 5 is critically important; it tells MacPorts not to upgrade dependencies. Without this switch, MacPorts will try to install Erlang 19!

If step 4 fails because of a build error, you may be able to get it to work by building manually:

  1. cd "/opt/local/var/macports/build/_private_tmp_erlang/erlang/work/erlang-18.3"
  2. sudo make -w all
  3. cd -
  4. Retry step 4 above.

comment:4 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed

Duplicate of #52428.

Note: See TracTickets for help on using tickets.