Bug 213515

Summary: lang/erlang-riak: Fix build with clang 3.9.0
Product: Ports & Packages Reporter: Dimitry Andric <dim>
Component: Individual Port(s)Assignee: William Grzybowski <wg>
Status: Closed FIXED    
Severity: Affects Some People Flags: bugzilla: maintainer-feedback? (wg)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 212343    
Description Flags
Upstream fix for alignment bug in allocator start code none

Description Dimitry Andric freebsd_committer 2016-10-15 22:00:35 UTC
Created attachment 175794 [details]
Upstream fix for alignment bug in allocator start code

During the exp-run for bug 212343, lang/erlang-riak failed to build on i386 with clang 3.9.0, because beam.smp segfaults:

gmake[4]: Entering directory '/wrkdirs/usr/ports/lang/erlang-riak/work/otp_src_R16B02-basho5/lib/hipe/misc'
erlc -W  +debug_info +warn_exported_vars +warn_missing_spec +warn_untyped_record -o../ebin hipe_consttab.erl
gmake[4]: *** [/wrkdirs/usr/ports/lang/erlang-riak/work/otp_src_R16B02-basho5/make/i386-portbld-freebsd12.0/otp.mk:115: ../ebin/hipe_consttab.beam] Segmentation fault (core dumped)

This is because of an alignment bug in Erlang's threaded allocator, fixed by the following upstream commit:


Here is a patch for lang/erlang-riak to apply this.  The regular lang/erlang port already has the fix.
Comment 1 William Grzybowski freebsd_committer 2016-10-17 11:17:15 UTC
Comment 2 commit-hook freebsd_committer 2016-10-17 11:17:28 UTC
A commit references this bug:

Author: wg
Date: Mon Oct 17 11:17:04 UTC 2016
New revision: 424109
URL: https://svnweb.freebsd.org/changeset/ports/424109

  lang/erlang-riak: fix to build with clang 3.9.0

  PR:		213515
  Submitted by:	dim