From owner-freebsd-toolchain@freebsd.org Fri Mar 18 17:23:00 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 861DAAD5C0F for ; Fri, 18 Mar 2016 17:23:00 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C01FF47 for ; Fri, 18 Mar 2016 17:23:00 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::55c4:44d3:46e9:f07c] (unknown [IPv6:2001:7b8:3a7:0:55c4:44d3:46e9:f07c]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id B5E132F323; Fri, 18 Mar 2016 18:22:56 +0100 (CET) Subject: Re: c++/libc++ help needed for chromium update Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Content-Type: multipart/signed; boundary="Apple-Mail=_CC201581-BFAF-4B77-A030-09F8931B515B"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 (ebbf3ef) From: Dimitry Andric In-Reply-To: <20160317113829.GA1752@squirrel.exwg.net> Date: Fri, 18 Mar 2016 18:22:56 +0100 Cc: freebsd-toolchain@freebsd.org Message-Id: References: <20160316212749.GA1426@squirrel.exwg.net> <458AB9BF-4D4F-4F72-B2D7-79ACC8E19108@FreeBSD.org> <20160317113829.GA1752@squirrel.exwg.net> To: Christoph Moench-Tegeder X-Mailer: Apple Mail (2.3112) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2016 17:23:00 -0000 --Apple-Mail=_CC201581-BFAF-4B77-A030-09F8931B515B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 17 Mar 2016, at 12:38, Christoph Moench-Tegeder = wrote: ... >> Last but not least, please ask about this on the Chromium mailing = lists. >> There must be lots of C++ libraries out there with non-trivial = std::pair >> copy constructors, and they must have some sort of workaround for = those. >=20 > It's in the nature of chromium that it's Open Source, but the list of > target platforms is rather short - officially supported are Windows > (and I don't know how many people build their own chromium there), > OS X and Linux. Chromium tends to bundle a lot of dependencies, I > believe the default build process on Linux even brings it's own > private clang installation if you don't stop it. The only other > "special" build I'm aware of is OpenBSD, and they use gcc 4.9 > with it's bundled libstdc++ (their base system uses the old gcc). > So I guess we're the odd ones with our libc++... Not really, OSX also uses libc++ these days. However, they use the trivial pair copy constructor by default, as upstream libc++ does. See = /Applications/Xcode.app/Contents//Developer/Toolchains/XcodeDefault.xctool= chain/usr/include/c++/v1/__config on a Mac with Xcode installed, which has: 650 #ifndef _LIBCPP_TRIVIAL_PAIR_COPY_CTOR 651 # define _LIBCPP_TRIVIAL_PAIR_COPY_CTOR 1 652 #endif So not having the trivial pair copy constructor makes us the odd ones out, but until now I didn't see any port failing because of it. We could enable this feature, but then we'd have to bump our libc++ version, together with all the followup hassle. It would still be interesting to find some workaround in Chrome's code, though. It used to build in the previous version? (I remember building it successfully a few times in the past, at least.) -Dimitry --Apple-Mail=_CC201581-BFAF-4B77-A030-09F8931B515B Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.29 iEYEARECAAYFAlbsOXAACgkQsF6jCi4glqPFcgCgz1Utm4KY4FfKCg6vDBUnW3oF 9fcAn3UMmUOhvkbLuNHB0KQHGaNIwmeB =AVkx -----END PGP SIGNATURE----- --Apple-Mail=_CC201581-BFAF-4B77-A030-09F8931B515B--