Bug 213515 - lang/erlang-riak: Fix build with clang 3.9.0
Summary: lang/erlang-riak: Fix build with clang 3.9.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: William Grzybowski
URL:
Keywords:
Depends on:
Blocks: 212343
  Show dependency treegraph
 
Reported: 2016-10-15 22:00 UTC by Dimitry Andric
Modified: 2016-10-17 11:17 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (wg)


Attachments
Upstream fix for alignment bug in allocator start code (5.03 KB, patch)
2016-10-15 22:00 UTC, Dimitry Andric
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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:

https://github.com/erlang/otp/commit/5a00e724a58ee29d4012cca79c8aa33979e74eb6

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
Thanks
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

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

  PR:		213515
  Submitted by:	dim

Changes:
  head/lang/erlang-riak/files/patch-commit-5a00e72