From nobody@FreeBSD.org  Wed Mar 26 14:40:04 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 146B779D
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 26 Mar 2014 14:40:04 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 007DC808
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 26 Mar 2014 14:40:04 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s2QEe3vk039118
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 26 Mar 2014 14:40:03 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s2QEe27J038881;
	Wed, 26 Mar 2014 14:40:02 GMT
	(envelope-from nobody)
Message-Id: <201403261440.s2QEe27J038881@cgiserv.freebsd.org>
Date: Wed, 26 Mar 2014 14:40:02 GMT
From: "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: devel/boost-libs: gcc-atomic.hpp:961:64: error: no matching constructor for initialization of 'storage_type' (aka 'boost::atomics::detail::storage128_type')
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         187958
>Category:       ports
>Synopsis:       devel/boost-libs: gcc-atomic.hpp:961:64: error: no matching constructor for initialization of 'storage_type' (aka 'boost::atomics::detail::storage128_type')
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    office
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 26 14:50:01 UTC 2014
>Closed-Date:    Tue Apr 08 08:06:24 UTC 2014
>Last-Modified:  Tue Apr 08 08:06:24 UTC 2014
>Originator:     O. Hartmann
>Release:        FreeBSD 9.2-STABLE
>Organization:
>Environment:
9.2-STABLE FreeBSD 9.2-STABLE #0 r263712: Tue Mar 25 13:34:12 CET 2014
>Description:
devel/boost-libs fails to compile and update on FreeBSD 9.2-STABLE with CLANG 3.4!

[...]
In file included from ./boost/atomic/detail/platform.hpp:22:
./boost/atomic/detail/gcc-atomic.hpp:961:64: error: no matching constructor for initialization of 'storage_type' (aka 'boost::atomics::detail::storage128_type')
    explicit base_atomic(value_type const& v) BOOST_NOEXCEPT : v_(0)
                                                               ^  ~
./boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::atomics::detail::storage128_type' for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type

>How-To-Repeat:
Try to update your FBSD 9.2-STABLE system with CLANG 3.4 the system's compiler.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->office 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Mar 26 14:50:07 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=187958 

From: Marius Strobl <marius@alchemy.franken.de>
To: office@freebsd.org, bapt@freebsd.org, beat@freebsd.org
Cc: bug-followup@freebsd.org
Subject: Re: ports/187958: devel/boost-libs: gcc-atomic.hpp:961:64: error: no
 matching constructor for initialization of 'storage_type' (aka
 'boost::atomics::detail::storage128_type')
Date: Thu, 3 Apr 2014 21:53:36 +0200

 --J/dobhs11T7y2rNN
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 
 Hi guys,
 
 could you please approve the attached patch to be committed?
 
 %%
 Pull in the following revisions from https://github.com/boostorg/, fixing
 compilation with clang 3.4:
 Commit: 6bb71fdd8f7cc346d90fb14beb38b7297fc1ffd9
 Fixed incorrect initialization of 128-bit values, when no native support for
 128-bit integers is available.
 Commit: e4bde20f2eec0a51be14533871d2123bd2ab9cf3
 More compilation fixes for the case when 128-bit integers are not supported.
 
 PR: 187958
 %%
 
 Marius
 
 
 --J/dobhs11T7y2rNN
 Content-Type: text/x-diff; charset=us-ascii
 Content-Disposition: attachment; filename="boost-libs_clang.diff"
 
 Index: Makefile
 ===================================================================
 --- Makefile	(revision 350030)
 +++ Makefile	(working copy)
 @@ -4,6 +4,8 @@
  PORTNAME=	boost-libs
  COMMENT=	Free portable C++ libraries (without Boost.Python)
  
 +PORTREVISION=	1
 +
  BUILD_DEPENDS+=	bjam:${PORTSDIR}/devel/boost-jam
  
  OPTIONS_DEFINE=	VERBOSE_BUILD DEBUG ICU OPTIMIZED_CFLAGS
 Index: files/patch-boost__atomic__detail__cas128strong.hpp
 ===================================================================
 --- files/patch-boost__atomic__detail__cas128strong.hpp	(revision 0)
 +++ files/patch-boost__atomic__detail__cas128strong.hpp	(working copy)
 @@ -0,0 +1,33 @@
 +--- boost/atomic/detail/cas128strong.hpp	2013-07-20 20:01:35.000000000 +0200
 ++++ boost/atomic/detail/cas128strong.hpp.orig	2014-04-03 16:34:19.000000000 +0200
 +@@ -196,15 +196,17 @@
 + 
 + public:
 +     BOOST_DEFAULTED_FUNCTION(base_atomic(void), {})
 +-    explicit base_atomic(value_type const& v) BOOST_NOEXCEPT : v_(0)
 ++    explicit base_atomic(value_type const& v) BOOST_NOEXCEPT
 +     {
 ++        memset(&v_, 0, sizeof(v_));
 +         memcpy(&v_, &v, sizeof(value_type));
 +     }
 + 
 +     void
 +     store(value_type const& value, memory_order order = memory_order_seq_cst) volatile BOOST_NOEXCEPT
 +     {
 +-        storage_type value_s = 0;
 ++        storage_type value_s;
 ++        memset(&value_s, 0, sizeof(value_s));
 +         memcpy(&value_s, &value, sizeof(value_type));
 +         platform_fence_before_store(order);
 +         platform_store128(value_s, &v_);
 +@@ -247,7 +249,9 @@
 +         memory_order success_order,
 +         memory_order failure_order) volatile BOOST_NOEXCEPT
 +     {
 +-        storage_type expected_s = 0, desired_s = 0;
 ++        storage_type expected_s, desired_s;
 ++        memset(&expected_s, 0, sizeof(expected_s));
 ++        memset(&desired_s, 0, sizeof(desired_s));
 +         memcpy(&expected_s, &expected, sizeof(value_type));
 +         memcpy(&desired_s, &desired, sizeof(value_type));
 + 
 
 Property changes on: files/patch-boost__atomic__detail__cas128strong.hpp
 ___________________________________________________________________
 Added: svn:mime-type
 ## -0,0 +1 ##
 +text/plain
 \ No newline at end of property
 Added: fbsd:nokeywords
 ## -0,0 +1 ##
 +yes
 \ No newline at end of property
 Added: svn:eol-style
 ## -0,0 +1 ##
 +native
 \ No newline at end of property
 Index: files/patch-boost__atomic__detail__gcc-atomic.hpp
 ===================================================================
 --- files/patch-boost__atomic__detail__gcc-atomic.hpp	(revision 0)
 +++ files/patch-boost__atomic__detail__gcc-atomic.hpp	(working copy)
 @@ -0,0 +1,53 @@
 +--- boost/atomic/detail/gcc-atomic.hpp	2013-07-20 20:01:35.000000000 +0200
 ++++ boost/atomic/detail/gcc-atomic.hpp	2014-04-03 18:03:30.000000000 +0200
 +@@ -958,14 +958,16 @@
 + 
 + public:
 +     BOOST_DEFAULTED_FUNCTION(base_atomic(void), {})
 +-    explicit base_atomic(value_type const& v) BOOST_NOEXCEPT : v_(0)
 ++    explicit base_atomic(value_type const& v) BOOST_NOEXCEPT
 +     {
 ++        memset(&v_, 0, sizeof(v_));
 +         memcpy(&v_, &v, sizeof(value_type));
 +     }
 + 
 +     void store(value_type const& v, memory_order order = memory_order_seq_cst) volatile BOOST_NOEXCEPT
 +     {
 +-        storage_type tmp = 0;
 ++        storage_type tmp;
 ++        memset(&tmp, 0, sizeof(tmp));
 +         memcpy(&tmp, &v, sizeof(value_type));
 +         __atomic_store_n(&v_, tmp, atomics::detail::convert_memory_order_to_gcc(order));
 +     }
 +@@ -980,7 +982,8 @@
 + 
 +     value_type exchange(value_type const& v, memory_order order = memory_order_seq_cst) volatile BOOST_NOEXCEPT
 +     {
 +-        storage_type tmp = 0;
 ++        storage_type tmp;
 ++        memset(&tmp, 0, sizeof(tmp));
 +         memcpy(&tmp, &v, sizeof(value_type));
 +         tmp = __atomic_exchange_n(&v_, tmp, atomics::detail::convert_memory_order_to_gcc(order));
 +         value_type res;
 +@@ -994,7 +997,9 @@
 +         memory_order success_order,
 +         memory_order failure_order) volatile BOOST_NOEXCEPT
 +     {
 +-        storage_type expected_s = 0, desired_s = 0;
 ++        storage_type expected_s, desired_s;
 ++        memset(&expected_s, 0, sizeof(expected_s));
 ++        memset(&desired_s, 0, sizeof(desired_s));
 +         memcpy(&expected_s, &expected, sizeof(value_type));
 +         memcpy(&desired_s, &desired, sizeof(value_type));
 +         const bool success = __atomic_compare_exchange_n(&v_, &expected_s, desired_s, false,
 +@@ -1010,7 +1015,9 @@
 +         memory_order success_order,
 +         memory_order failure_order) volatile BOOST_NOEXCEPT
 +     {
 +-        storage_type expected_s = 0, desired_s = 0;
 ++        storage_type expected_s, desired_s;
 ++        memset(&expected_s, 0, sizeof(expected_s));
 ++        memset(&desired_s, 0, sizeof(desired_s));
 +         memcpy(&expected_s, &expected, sizeof(value_type));
 +         memcpy(&desired_s, &desired, sizeof(value_type));
 +         const bool success = __atomic_compare_exchange_n(&v_, &expected_s, desired_s, true,
 
 Property changes on: files/patch-boost__atomic__detail__gcc-atomic.hpp
 ___________________________________________________________________
 Added: svn:mime-type
 ## -0,0 +1 ##
 +text/plain
 \ No newline at end of property
 Added: fbsd:nokeywords
 ## -0,0 +1 ##
 +yes
 \ No newline at end of property
 Added: svn:eol-style
 ## -0,0 +1 ##
 +native
 \ No newline at end of property
 
 --J/dobhs11T7y2rNN--

From: Baptiste Daroussin <bapt@freebsd.org>
To: Marius Strobl <marius@alchemy.franken.de>
Cc: office@freebsd.org, beat@freebsd.org, bug-followup@freebsd.org
Subject: Re: ports/187958: devel/boost-libs: gcc-atomic.hpp:961:64: error: no
 matching constructor for initialization of 'storage_type' (aka
 'boost::atomics::detail::storage128_type')
Date: Thu, 3 Apr 2014 21:56:53 +0200

 --FCuugMFkClbJLl1L
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Thu, Apr 03, 2014 at 09:53:36PM +0200, Marius Strobl wrote:
 >=20
 > Hi guys,
 >=20
 > could you please approve the attached patch to be committed?
 >=20
 > %%
 > Pull in the following revisions from https://github.com/boostorg/, fixing
 > compilation with clang 3.4:
 > Commit: 6bb71fdd8f7cc346d90fb14beb38b7297fc1ffd9
 > Fixed incorrect initialization of 128-bit values, when no native support =
 for
 > 128-bit integers is available.
 > Commit: e4bde20f2eec0a51be14533871d2123bd2ab9cf3
 > More compilation fixes for the case when 128-bit integers are not support=
 ed.
 >=20
 > PR: 187958
 > %%
 >=20
 > Marius
 >=20
 
 Approved
 
 Bapt
 
 --FCuugMFkClbJLl1L
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.22 (FreeBSD)
 
 iEYEARECAAYFAlM9vQQACgkQ8kTtMUmk6Ewd8gCdGVyu3Ihh+APjzKaeaWHcniwt
 rDoAn3uPY8SS5oMv/eTOxJwwVihaE71N
 =Davh
 -----END PGP SIGNATURE-----
 
 --FCuugMFkClbJLl1L--

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/187958: commit references a PR
Date: Tue,  8 Apr 2014 07:36:05 +0000 (UTC)

 Author: marius
 Date: Tue Apr  8 07:36:00 2014
 New Revision: 350582
 URL: http://svnweb.freebsd.org/changeset/ports/350582
 QAT: https://qat.redports.org/buildarchive/r350582/
 
 Log:
   Pull in the following revisions from https://github.com/boostorg/, fixing
   compilation with clang 3.4:
   Commit: 6bb71fdd8f7cc346d90fb14beb38b7297fc1ffd9
   Fixed incorrect initialization of 128-bit values, when no native support for
   128-bit integers is available.
   Commit: e4bde20f2eec0a51be14533871d2123bd2ab9cf3
   More compilation fixes for the case when 128-bit integers are not supported.
   
   PR:		187958
   Approved by:	bapt (mentor)
   Sponsored by:	Bally Wulff Games & Entertainment GmbH
 
 Added:
   head/devel/boost-libs/files/patch-boost__atomic__detail__cas128strong.hpp   (contents, props changed)
   head/devel/boost-libs/files/patch-boost__atomic__detail__gcc-atomic.hpp   (contents, props changed)
 Modified:
   head/devel/boost-libs/Makefile
 
 Modified: head/devel/boost-libs/Makefile
 ==============================================================================
 --- head/devel/boost-libs/Makefile	Tue Apr  8 07:28:47 2014	(r350581)
 +++ head/devel/boost-libs/Makefile	Tue Apr  8 07:36:00 2014	(r350582)
 @@ -4,6 +4,8 @@
  PORTNAME=	boost-libs
  COMMENT=	Free portable C++ libraries (without Boost.Python)
  
 +PORTREVISION=	1
 +
  BUILD_DEPENDS+=	bjam:${PORTSDIR}/devel/boost-jam
  
  OPTIONS_DEFINE=	VERBOSE_BUILD DEBUG ICU OPTIMIZED_CFLAGS
 
 Added: head/devel/boost-libs/files/patch-boost__atomic__detail__cas128strong.hpp
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/devel/boost-libs/files/patch-boost__atomic__detail__cas128strong.hpp	Tue Apr  8 07:36:00 2014	(r350582)
 @@ -0,0 +1,33 @@
 +--- boost/atomic/detail/cas128strong.hpp	2013-07-20 20:01:35.000000000 +0200
 ++++ boost/atomic/detail/cas128strong.hpp.orig	2014-04-03 16:34:19.000000000 +0200
 +@@ -196,15 +196,17 @@
 + 
 + public:
 +     BOOST_DEFAULTED_FUNCTION(base_atomic(void), {})
 +-    explicit base_atomic(value_type const& v) BOOST_NOEXCEPT : v_(0)
 ++    explicit base_atomic(value_type const& v) BOOST_NOEXCEPT
 +     {
 ++        memset(&v_, 0, sizeof(v_));
 +         memcpy(&v_, &v, sizeof(value_type));
 +     }
 + 
 +     void
 +     store(value_type const& value, memory_order order = memory_order_seq_cst) volatile BOOST_NOEXCEPT
 +     {
 +-        storage_type value_s = 0;
 ++        storage_type value_s;
 ++        memset(&value_s, 0, sizeof(value_s));
 +         memcpy(&value_s, &value, sizeof(value_type));
 +         platform_fence_before_store(order);
 +         platform_store128(value_s, &v_);
 +@@ -247,7 +249,9 @@
 +         memory_order success_order,
 +         memory_order failure_order) volatile BOOST_NOEXCEPT
 +     {
 +-        storage_type expected_s = 0, desired_s = 0;
 ++        storage_type expected_s, desired_s;
 ++        memset(&expected_s, 0, sizeof(expected_s));
 ++        memset(&desired_s, 0, sizeof(desired_s));
 +         memcpy(&expected_s, &expected, sizeof(value_type));
 +         memcpy(&desired_s, &desired, sizeof(value_type));
 + 
 
 Added: head/devel/boost-libs/files/patch-boost__atomic__detail__gcc-atomic.hpp
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/devel/boost-libs/files/patch-boost__atomic__detail__gcc-atomic.hpp	Tue Apr  8 07:36:00 2014	(r350582)
 @@ -0,0 +1,53 @@
 +--- boost/atomic/detail/gcc-atomic.hpp	2013-07-20 20:01:35.000000000 +0200
 ++++ boost/atomic/detail/gcc-atomic.hpp	2014-04-03 18:03:30.000000000 +0200
 +@@ -958,14 +958,16 @@
 + 
 + public:
 +     BOOST_DEFAULTED_FUNCTION(base_atomic(void), {})
 +-    explicit base_atomic(value_type const& v) BOOST_NOEXCEPT : v_(0)
 ++    explicit base_atomic(value_type const& v) BOOST_NOEXCEPT
 +     {
 ++        memset(&v_, 0, sizeof(v_));
 +         memcpy(&v_, &v, sizeof(value_type));
 +     }
 + 
 +     void store(value_type const& v, memory_order order = memory_order_seq_cst) volatile BOOST_NOEXCEPT
 +     {
 +-        storage_type tmp = 0;
 ++        storage_type tmp;
 ++        memset(&tmp, 0, sizeof(tmp));
 +         memcpy(&tmp, &v, sizeof(value_type));
 +         __atomic_store_n(&v_, tmp, atomics::detail::convert_memory_order_to_gcc(order));
 +     }
 +@@ -980,7 +982,8 @@
 + 
 +     value_type exchange(value_type const& v, memory_order order = memory_order_seq_cst) volatile BOOST_NOEXCEPT
 +     {
 +-        storage_type tmp = 0;
 ++        storage_type tmp;
 ++        memset(&tmp, 0, sizeof(tmp));
 +         memcpy(&tmp, &v, sizeof(value_type));
 +         tmp = __atomic_exchange_n(&v_, tmp, atomics::detail::convert_memory_order_to_gcc(order));
 +         value_type res;
 +@@ -994,7 +997,9 @@
 +         memory_order success_order,
 +         memory_order failure_order) volatile BOOST_NOEXCEPT
 +     {
 +-        storage_type expected_s = 0, desired_s = 0;
 ++        storage_type expected_s, desired_s;
 ++        memset(&expected_s, 0, sizeof(expected_s));
 ++        memset(&desired_s, 0, sizeof(desired_s));
 +         memcpy(&expected_s, &expected, sizeof(value_type));
 +         memcpy(&desired_s, &desired, sizeof(value_type));
 +         const bool success = __atomic_compare_exchange_n(&v_, &expected_s, desired_s, false,
 +@@ -1010,7 +1015,9 @@
 +         memory_order success_order,
 +         memory_order failure_order) volatile BOOST_NOEXCEPT
 +     {
 +-        storage_type expected_s = 0, desired_s = 0;
 ++        storage_type expected_s, desired_s;
 ++        memset(&expected_s, 0, sizeof(expected_s));
 ++        memset(&desired_s, 0, sizeof(desired_s));
 +         memcpy(&expected_s, &expected, sizeof(value_type));
 +         memcpy(&desired_s, &desired, sizeof(value_type));
 +         const bool success = __atomic_compare_exchange_n(&v_, &expected_s, desired_s, true,
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: marius 
State-Changed-When: Tue Apr 8 08:06:01 UTC 2014 
State-Changed-Why:  
close 

http://www.freebsd.org/cgi/query-pr.cgi?pr=187958 
>Unformatted:
