From owner-freebsd-toolchain@freebsd.org Thu Mar 24 03:57:17 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 8DD88AD6836 for ; Thu, 24 Mar 2016 03:57:17 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-156.reflexion.net [208.70.211.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 340D81CA5 for ; Thu, 24 Mar 2016 03:57:16 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 2177 invoked from network); 24 Mar 2016 03:50:55 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 24 Mar 2016 03:50:55 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v7.80.0) with SMTP; Wed, 23 Mar 2016 23:50:39 -0400 (EDT) Received: (qmail 15170 invoked from network); 24 Mar 2016 03:50:39 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with SMTP; 24 Mar 2016 03:50:39 -0000 X-No-Relay: not in my network Received: from [192.168.1.8] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 0D20B1C43BC for ; Wed, 23 Mar 2016 20:50:29 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: CPUTYPE=armv7-a with CPUTYPE=soft (as an example)? Message-Id: <87A2F38F-159C-4CFC-B8AA-4177080662EC@dsl-only.net> Date: Wed, 23 Mar 2016 20:50:34 -0700 To: FreeBSD Toolchain Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) 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: Thu, 24 Mar 2016 03:57:17 -0000 Between: > Q: But what if I need to build a system with soft float ABI under 11? >=20 > You can still do that. CPUTYPE=3Dsoft has been created for this = scenario, as well as to generate libraries for WITH_LIBSOFT. It's = anticipated that this will live for the entire FreeBSD 11 branch, but go = away in FreeBSD 12. and: > share/mk/bsd.cpu.mk : >=20 > . elif ${MACHINE_CPUARCH} =3D=3D "arm" > . if ${CPUTYPE} =3D=3D "xscale" > #XXX: gcc doesn't seem to like -mcpu=3Dxscale, and dies while = rebuilding itself > #_CPUCFLAGS =3D -mcpu=3Dxscale > _CPUCFLAGS =3D -march=3Darmv5te -D__XSCALE__ > . elif ${CPUTYPE} =3D=3D "armv6" > _CPUCFLAGS =3D -march=3D${CPUTYPE} -DARM_ARCH_6=3D1 > . elif ${CPUTYPE} =3D=3D "cortexa" > _CPUCFLAGS =3D -march=3Darmv7 -DARM_ARCH_6=3D1 -mfpu=3Dvfp > . elif ${CPUTYPE:Marmv[4567]*} !=3D "" > # Handle all the armvX types that FreeBSD runs: > # armv4, armv4t, armv5, armv5te, armv6, armv6t2, armv7, armv7-a, = armv7ve > # they require -march=3D. All the others require -mcpu=3D. > _CPUCFLAGS =3D -march=3D${CPUTYPE} > . else > # Common values for FreeBSD > # arm: > # arm920t, arm926ej-s, marvell-pj4, fa526, fa626, > # fa606te, fa626te, fa726te > # armv6: > # arm1176jzf-s, generic-armv7-a, cortex-a5, cortex-a7, = cortex-a8, > # cortex-a9, cortex-a12, cortex-a15, cortex-a17, cortex-a53, = cortex-a57, > # cortex-a72, exynos-m1 > _CPUCFLAGS =3D -mcpu=3D${CPUTYPE} > . endif how will one do a armv7-a (CPUTYPE=3Darmv7-a) soft-float ABI = (CPUTYPE=3Dsoft) system build if one cares to? (armv7-a is just a = specific example of the general issue. But someone might target a RPI2B = with armv7-a specified and also wanting the soft float ABI for some = reason.) (The question is generic for me for now, I'm not out to do so at this = point or any time soon, may be never.) =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Thu Mar 24 04:33:09 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 65773AD6F5A for ; Thu, 24 Mar 2016 04:33:09 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ig0-x234.google.com (mail-ig0-x234.google.com [IPv6:2607:f8b0:4001:c05::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2EDBE1986 for ; Thu, 24 Mar 2016 04:33:09 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-ig0-x234.google.com with SMTP id cl4so67095069igb.0 for ; Wed, 23 Mar 2016 21:33:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=/nVJFPBeyVKbFkh/LvXqAoklhxx4zWoa6iT55mKYPTg=; b=qDBeetlVGPGL1mD/xJt3hsw9EX95MFIyI2CKlUr9ebf5UPpAgIGvdm+jpxpF1D6Xul NckYt5BpzL7F9rSLy22nbsz0PslIzBlN9W+zhfVuHV63A4Wpi7ROzw+Z19DZAgFNclwH SKKJqbW/KCJcsf4Egsu89rzUTgUrndTwfZ7aibQmrve14xODLza29QPXPD1GR60VsIk5 EES6JnzGLkmdYQeWIGFI7n1rYqjnkgugkYiLOShVe+q/pAyJktnjsqfviw0UjJqSREeo XbiARgqFRe7ZhQp+bWe488r7Pb8dZvHHAKwmfuMUB8rTWJmfpuE0n99/R53Rjl6j/cAn huzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=/nVJFPBeyVKbFkh/LvXqAoklhxx4zWoa6iT55mKYPTg=; b=O0FvuxXtlhnpzKjL2LKL3YKn6moaxHbSlAysBSINh9EbeUyYxx2FsetXJwA7uiBUvA 8OqcLF3ra/BXdQCEA3TeGCeItTbYqQ1G4f++NKDtftEXMCkJzeiEKjRZMTU5l5e8TR7h 4ZpkczdUAFw1R4QKJSB9cdNf6i60T54uWogSXI42amj4+sI9Cj3665c+AHye7mqycI4J eS81r0sayZATPfLxS0wCQNBa0FqrC1rB2LryFJOww/xYZ3tAr2XRdFWCo9y6f4O034aX zlO/+FoqbT4YdfBKHQQoHBRp436YQzGGLA2jOT2pgeB2HpfOdGx78nVDaravSWdyP1nS JrXw== X-Gm-Message-State: AD7BkJIE5v7dFV9mnmrIlB8na4xtC1700YGNAkaw+F41G5PR3rUIfPc87XV5ZKUafogHrnGxYjgD3X+EUsPRTw== MIME-Version: 1.0 X-Received: by 10.50.13.74 with SMTP id f10mr6902500igc.36.1458793988463; Wed, 23 Mar 2016 21:33:08 -0700 (PDT) Sender: wlosh@bsdimp.com Received: by 10.36.65.230 with HTTP; Wed, 23 Mar 2016 21:33:08 -0700 (PDT) X-Originating-IP: [50.253.99.174] Received: by 10.36.65.230 with HTTP; Wed, 23 Mar 2016 21:33:08 -0700 (PDT) In-Reply-To: <87A2F38F-159C-4CFC-B8AA-4177080662EC@dsl-only.net> References: <87A2F38F-159C-4CFC-B8AA-4177080662EC@dsl-only.net> Date: Wed, 23 Mar 2016 22:33:08 -0600 X-Google-Sender-Auth: IDRuBhmbjrRTufN9Qv3mQOGKIzM Message-ID: Subject: Re: CPUTYPE=armv7-a with CPUTYPE=soft (as an example)? From: Warner Losh To: Mark Millard Cc: "freebsd-toolchain@FreeBSD.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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: Thu, 24 Mar 2016 04:33:09 -0000 On Mar 23, 2016 9:57 PM, "Mark Millard" wrote: > > Between: > > > Q: But what if I need to build a system with soft float ABI under 11? > > > > You can still do that. CPUTYPE=soft has been created for this scenario, as well as to generate libraries for WITH_LIBSOFT. It's anticipated that this will live for the entire FreeBSD 11 branch, but go away in FreeBSD 12. > > and: > > > share/mk/bsd.cpu.mk : > > > > . elif ${MACHINE_CPUARCH} == "arm" > > . if ${CPUTYPE} == "xscale" > > #XXX: gcc doesn't seem to like -mcpu=xscale, and dies while rebuilding itself > > #_CPUCFLAGS = -mcpu=xscale > > _CPUCFLAGS = -march=armv5te -D__XSCALE__ > > . elif ${CPUTYPE} == "armv6" > > _CPUCFLAGS = -march=${CPUTYPE} -DARM_ARCH_6=1 > > . elif ${CPUTYPE} == "cortexa" > > _CPUCFLAGS = -march=armv7 -DARM_ARCH_6=1 -mfpu=vfp > > . elif ${CPUTYPE:Marmv[4567]*} != "" > > # Handle all the armvX types that FreeBSD runs: > > # armv4, armv4t, armv5, armv5te, armv6, armv6t2, armv7, armv7-a, armv7ve > > # they require -march=. All the others require -mcpu=. > > _CPUCFLAGS = -march=${CPUTYPE} > > . else > > # Common values for FreeBSD > > # arm: > > # arm920t, arm926ej-s, marvell-pj4, fa526, fa626, > > # fa606te, fa626te, fa726te > > # armv6: > > # arm1176jzf-s, generic-armv7-a, cortex-a5, cortex-a7, cortex-a8, > > # cortex-a9, cortex-a12, cortex-a15, cortex-a17, cortex-a53, cortex-a57, > > # cortex-a72, exynos-m1 > > _CPUCFLAGS = -mcpu=${CPUTYPE} > > . endif > > how will one do a armv7-a (CPUTYPE=armv7-a) soft-float ABI (CPUTYPE=soft) system build if one cares to? (armv7-a is just a specific example of the general issue. But someone might target a RPI2B with armv7-a specified and also wanting the soft float ABI for some reason.) > > (The question is generic for me for now, I'm not out to do so at this point or any time soon, may be never.) Armv7-a-soft is what I planned, but haven't implemented. Today you get it with just armv7-a. Warner From owner-freebsd-toolchain@freebsd.org Thu Mar 24 22:36:23 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 2512EADD239 for ; Thu, 24 Mar 2016 22:36:23 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 0D0B81C1D for ; Thu, 24 Mar 2016 22:36:23 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 08B4EADD238; Thu, 24 Mar 2016 22:36:23 +0000 (UTC) Delivered-To: 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 06230ADD237 for ; Thu, 24 Mar 2016 22:36:23 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id D6D131C1C for ; Thu, 24 Mar 2016 22:36:22 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id D07C01496 for ; Thu, 24 Mar 2016 22:36:22 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id 841781DF5D for ; Thu, 24 Mar 2016 22:36:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id dsqmORZdXvF9 for ; Thu, 24 Mar 2016 22:36:19 +0000 (UTC) To: toolchain@FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com A042A1DF58 From: Bryan Drewery Subject: CXXSTD=c++11 Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Organization: FreeBSD Message-ID: <56F46BE0.7080909@FreeBSD.org> Date: Thu, 24 Mar 2016 15:36:16 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KsREgjOKCCaI05R0f0JlkgGU8Blf7huG4" 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: Thu, 24 Mar 2016 22:36:23 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --KsREgjOKCCaI05R0f0JlkgGU8Blf7huG4 Content-Type: multipart/mixed; boundary="c7d4setxfNWE5Epfwa5U3dw27U6d1AlLL" From: Bryan Drewery To: toolchain@FreeBSD.org Message-ID: <56F46BE0.7080909@FreeBSD.org> Subject: CXXSTD=c++11 --c7d4setxfNWE5Epfwa5U3dw27U6d1AlLL Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Is there any problem with forcing -std=3Dc++11 for all CXX/LIB_CXX builds= now? We do this when using an external GCC since it doesn't default to the c++11 standard quite yet. As far as I understand, we require c++11 to build clang/libc++. It seems to be the problem at https://lists.freebsd.org/pipermail/freebsd-toolchain/2015-October/001757= =2Ehtml which I've fixed in an upcoming commit to properly pass -std=3Dc++11 to the lib32 build in CXXFLAGS. --=20 Regards, Bryan Drewery --c7d4setxfNWE5Epfwa5U3dw27U6d1AlLL-- --KsREgjOKCCaI05R0f0JlkgGU8Blf7huG4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJW9GvkAAoJEDXXcbtuRpfPq94H/0R/F6FMHhsqa4YcAdboKCEm j/u3IoyBmp5/PN6BAEKm8e8ebZ09HSTQzhw/Jx4VKl+bVdphMyfKdwF236KfM+UR 1es5bZQYI/Tx5pXBPdVCbFx5X3v6qRmSwFBWxmkHTnHW+MMFhLi2GBvP+e+lrFab 4Iy55bWVV+MStEmY7ClyRCKkQdv0474slsfo6HlR0Ig+bzwt4fQTjFHOYWFs7D67 vNVFpM3biystxqIl7DrImd2u0VrZVJrMM6krT0qs+BMX4uzIZQJlyqQuOUWyShAN Ltj8hdUSH2XpZKA+sdgk8R0ucrO1tpjYYjVOYqrE+V+bbTJSy2q0QCmn+yoZHyQ= =L4WD -----END PGP SIGNATURE----- --KsREgjOKCCaI05R0f0JlkgGU8Blf7huG4-- From owner-freebsd-toolchain@freebsd.org Thu Mar 24 22:40:03 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 02109ADD29A for ; Thu, 24 Mar 2016 22:40:03 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id D3E681D05 for ; Thu, 24 Mar 2016 22:40:02 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by mailman.ysv.freebsd.org (Postfix) id D342DADD299; Thu, 24 Mar 2016 22:40:02 +0000 (UTC) Delivered-To: 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 D2ECCADD298 for ; Thu, 24 Mar 2016 22:40:02 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-pf0-x233.google.com (mail-pf0-x233.google.com [IPv6:2607:f8b0:400e:c00::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AC44A1D04 for ; Thu, 24 Mar 2016 22:40:02 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by mail-pf0-x233.google.com with SMTP id x3so68546775pfb.1 for ; Thu, 24 Mar 2016 15:40:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=sender:subject:mime-version:from:in-reply-to:date:cc:message-id :references:to; bh=8CwIB3q1OkrTubGqNvdVwh6TBBADyekg2BvIZ+yAYZQ=; b=jP3q5NgeveV9iMoth4AP24mkYmH8ejEBWSbjj4hSlbLMQ94qqZQt8rVfOVT9q7xu8q jmX+6fh/6/wBraShv72lNrScLKKalZtkoyKWXQEXweStbVr4sXdEtloC6mosERxXLGBC /TqdhcTSUIakHbqYWcJpvE/nmEsBlUEJjURveWDyRlH8dp3rIxwZONHd/QfL8roPPwr5 oiyQ1VhljT63f0JiDIfP2tVxakpO/fgOGZL5cNajsiZmAwl4992P/XjwiHWW6a0w6jp4 nmpxjq14ZYbykjyZWABMy3CVNMfaKmj1j/ol/9kgUktKNMtOpNOWdMU/wBy2thul+XjP DI7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:from:in-reply-to :date:cc:message-id:references:to; bh=8CwIB3q1OkrTubGqNvdVwh6TBBADyekg2BvIZ+yAYZQ=; b=JZTgLR0UpIVCpvSpAjCOuYQk86803Ihn4Ie+NfaxyHBw3d3R1uhHeNU+HKjNVTINF/ ST6G8UPyxVXRBgY5OT2Ai9v7Kx0fHogfL6aRHWE5p8EBXzMIer3qUXEa+IHm/8B/LABW dNE+mfSjZs+DUoxn4FPcar+hqJP2krPmO9vUdvmEJNKQQXJ151NZ9rRnFRD5f6PNk/w0 cVepebz0m63bc/vzuwEbuUoqRasV4RqOqDwiaKoSRILY13B+Ta5d9Lp8/MxSKdZmDNqt fXDZzxdab4YKsnW6umRdsiTXLEkWOgjP9AS4I47UrIgcSvUoMWu0sUIIeiMEC12VeHXR 57NA== X-Gm-Message-State: AD7BkJIG+5b163ys3hJalZozg7c260USl2K3vsvBCKK867egQDeCa75YJgidQ7VKy5671w== X-Received: by 10.98.75.28 with SMTP id y28mr16243378pfa.126.1458859201857; Thu, 24 Mar 2016 15:40:01 -0700 (PDT) Received: from [100.127.145.91] ([69.53.245.29]) by smtp.gmail.com with ESMTPSA id b11sm12295824pfj.4.2016.03.24.15.40.00 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Mar 2016 15:40:01 -0700 (PDT) Sender: Warner Losh Subject: Re: CXXSTD=c++11 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Content-Type: multipart/signed; boundary="Apple-Mail=_6EE984BC-8497-4646-9195-49A7F4768204"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5.2 From: Warner Losh In-Reply-To: <56F46BE0.7080909@FreeBSD.org> Date: Thu, 24 Mar 2016 16:39:58 -0600 Cc: toolchain@FreeBSD.org Message-Id: <635A0A5E-63F2-4D42-B6D5-0E841AA713FE@bsdimp.com> References: <56F46BE0.7080909@FreeBSD.org> To: Bryan Drewery X-Mailer: Apple Mail (2.2104) 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: Thu, 24 Mar 2016 22:40:03 -0000 --Apple-Mail=_6EE984BC-8497-4646-9195-49A7F4768204 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Mar 24, 2016, at 4:36 PM, Bryan Drewery = wrote: >=20 > Is there any problem with forcing -std=3Dc++11 for all CXX/LIB_CXX = builds > now? We do this when using an external GCC since it doesn't default = to > the c++11 standard quite yet. As far as I understand, we require = c++11 > to build clang/libc++. >=20 > It seems to be the problem at > = https://lists.freebsd.org/pipermail/freebsd-toolchain/2015-October/001757.= html > which I've fixed in an upcoming commit to properly pass -std=3Dc++11 = to > the lib32 build in CXXFLAGS. Wouldn=E2=80=99t that break the spark and mips builds if we did it = always? They are the last stragglers to not have a working, fully vetted clang in the tree. Warner --Apple-Mail=_6EE984BC-8497-4646-9195-49A7F4768204 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----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJW9Gy/AAoJEGwc0Sh9sBEAp34P/jpr4q00AMoUcWVYy+B2FMPz EuGAt+eiJjUgNXz2AczEgqCQjN0BXmsWySNyxl6uqmP1jwIJhluUdp8qckgzSlix dh3do1hiRCDAePbhYGfXJcw9dqKWHAXyortYVt2MZEr0UzmY5Scoye9tALJLthat QuyaRgO9za9/R6zsArmxr2nHp/KxTMn5lCoxT/D/fE7JWwpDqFb/siMZk8/xc/4Z yHhYeEhkiWBBAV4/J4eufF9y6L9wxfa4lZUmtkS3cF5fwh2tKFgMkDyrCOft26uC pYTmdd+ybSkS+Vfvfk6tD7csQgo3W8kLwdsVIbpELL2NnDS7Utj+MckZrMWF8dbG oNSkPsOSigNsCLxxJUtEqtnmcoap5JDErA6ukrQBgsxVqUVfC7Da1JzpFhiWs3/p 5XOOksowtvkHCw7xKNBjyaIBcw4cBX2XguU8VvgmEDj8UQPLaWpavp+f7XA2ep0i XI9xBwY5+hSnvEF7euhb7YmkiDPAEahpUejXulaByUVZIeX9T4nynFsnJsZaDvBU /FTJbR9W1qEuf5EOTfmtmaBN13Yr67n0opsAxE7sJJm8hHHQSVlS7dlWRH2J9w4R BV87hsdVJBlkphOIXHAluw+RmbdkEP7GbmEGrRirgXswkI07ZLFetgAhTQ8ZfZV+ 4N2cZzT/JQ3huxSCxlz0 =uQ/1 -----END PGP SIGNATURE----- --Apple-Mail=_6EE984BC-8497-4646-9195-49A7F4768204-- From owner-freebsd-toolchain@freebsd.org Thu Mar 24 22:42:44 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 DAB32ADD37D for ; Thu, 24 Mar 2016 22:42:44 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C000F1F69 for ; Thu, 24 Mar 2016 22:42:44 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id BBA5EADD37C; Thu, 24 Mar 2016 22:42:44 +0000 (UTC) Delivered-To: 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 BB47CADD37B for ; Thu, 24 Mar 2016 22:42:44 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id A64601F68; Thu, 24 Mar 2016 22:42:44 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 9FF6215B9; Thu, 24 Mar 2016 22:42:44 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id 6E5D71DF9B; Thu, 24 Mar 2016 22:42:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id iQjvG-ZbS41V; Thu, 24 Mar 2016 22:42:41 +0000 (UTC) Subject: Re: CXXSTD=c++11 DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com B967F1DF96 To: Warner Losh References: <56F46BE0.7080909@FreeBSD.org> <635A0A5E-63F2-4D42-B6D5-0E841AA713FE@bsdimp.com> Cc: toolchain@FreeBSD.org From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Organization: FreeBSD Message-ID: <56F46D63.10303@FreeBSD.org> Date: Thu, 24 Mar 2016 15:42:43 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <635A0A5E-63F2-4D42-B6D5-0E841AA713FE@bsdimp.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Pa1pf4vnm3SmMe4etxtdeNd4usDb5ELng" 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: Thu, 24 Mar 2016 22:42:44 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Pa1pf4vnm3SmMe4etxtdeNd4usDb5ELng Content-Type: multipart/mixed; boundary="S0OS0p32cIXBkfe8DaeTIpq6OeatIvvB3" From: Bryan Drewery To: Warner Losh Cc: toolchain@FreeBSD.org Message-ID: <56F46D63.10303@FreeBSD.org> Subject: Re: CXXSTD=c++11 References: <56F46BE0.7080909@FreeBSD.org> <635A0A5E-63F2-4D42-B6D5-0E841AA713FE@bsdimp.com> In-Reply-To: <635A0A5E-63F2-4D42-B6D5-0E841AA713FE@bsdimp.com> --S0OS0p32cIXBkfe8DaeTIpq6OeatIvvB3 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 3/24/2016 3:39 PM, Warner Losh wrote: >=20 >> On Mar 24, 2016, at 4:36 PM, Bryan Drewery wrot= e: >> >> Is there any problem with forcing -std=3Dc++11 for all CXX/LIB_CXX bui= lds >> now? We do this when using an external GCC since it doesn't default t= o >> the c++11 standard quite yet. As far as I understand, we require c++1= 1 >> to build clang/libc++. >> >> It seems to be the problem at >> https://lists.freebsd.org/pipermail/freebsd-toolchain/2015-October/001= 757.html >> which I've fixed in an upcoming commit to properly pass -std=3Dc++11 t= o >> the lib32 build in CXXFLAGS. >=20 > Wouldn=E2=80=99t that break the spark and mips builds if we did it alwa= ys? They are the > last stragglers to not have a working, fully vetted clang in the tree. >=20 *sigh* --=20 Regards, Bryan Drewery --S0OS0p32cIXBkfe8DaeTIpq6OeatIvvB3-- --Pa1pf4vnm3SmMe4etxtdeNd4usDb5ELng Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJW9G1jAAoJEDXXcbtuRpfPOvMH/RU+AdDNI3Kd5owsQTykvgiH d3UyU7oKTa30OM5R3b5rUjdkn9wiGCBGNqqVCwowl3OiKEsBULwk8b8cNqHA/0BL 2pTw35zjslrpEgtRCGB1fIIj0EvJM1JbZPSDQiieUNGvVXzZnp3mjASoxhZmqvvW FOU3Xi4Wq9i3vqk2s15gEqYJ6AGBG3FgQFLbKv4EpyXidNi1oWGMRwIp4LGIK+v1 oz0u7AzKvcgY6ZKN3ShIxx1Ls6Oy0sL7nw9axvLqYzRNZrej3JGN0xFJ5NNAEVhU 2ifId8hXNPkGyTlZJHJR5JTgYj17+6InWO+qipAYLyXKZLIXWQ8yU+CYTeppBbE= =J7Jb -----END PGP SIGNATURE----- --Pa1pf4vnm3SmMe4etxtdeNd4usDb5ELng-- From owner-freebsd-toolchain@freebsd.org Thu Mar 24 22:44:21 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 86271ADD3AB for ; Thu, 24 Mar 2016 22:44:21 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 71EC41FB9 for ; Thu, 24 Mar 2016 22:44:21 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 713D4ADD3AA; Thu, 24 Mar 2016 22:44:21 +0000 (UTC) Delivered-To: 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 70E16ADD3A9 for ; Thu, 24 Mar 2016 22:44:21 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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 312B81FB2; Thu, 24 Mar 2016 22:44:17 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::e0f9:ae86:eb6f:2b6f] (unknown [IPv6:2001:7b8:3a7:0:e0f9:ae86:eb6f:2b6f]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id F38EB238A9; Thu, 24 Mar 2016 23:44:08 +0100 (CET) Subject: Re: CXXSTD=c++11 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_305F779C-473E-42BC-9E2D-8B485BF481D0"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 (ebbf3ef) From: Dimitry Andric In-Reply-To: <56F46BE0.7080909@FreeBSD.org> Date: Thu, 24 Mar 2016 23:44:02 +0100 Cc: toolchain@FreeBSD.org Message-Id: <43ABA5F3-60E0-4A29-9698-B345A3DA0A8B@FreeBSD.org> References: <56F46BE0.7080909@FreeBSD.org> To: Bryan Drewery X-Mailer: Apple Mail (2.3124) 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: Thu, 24 Mar 2016 22:44:21 -0000 --Apple-Mail=_305F779C-473E-42BC-9E2D-8B485BF481D0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 24 Mar 2016, at 23:36, Bryan Drewery wrote: >=20 > Is there any problem with forcing -std=3Dc++11 for all CXX/LIB_CXX = builds > now? We do this when using an external GCC since it doesn't default = to > the c++11 standard quite yet. As far as I understand, we require = c++11 > to build clang/libc++. Yes, but it already passes -std=3Dc++11 in the correct places, as far as = I know. E.g. during the clang and libc++ builds. > It seems to be the problem at > = https://lists.freebsd.org/pipermail/freebsd-toolchain/2015-October/001757.= html > which I've fixed in an upcoming commit to properly pass -std=3Dc++11 = to > the lib32 build in CXXFLAGS. Hm, is this occuring during the build of libcxxrt, or of libc++? If it is the former, then it seems that the system headers don't properly declare _Static_assert() in that case. I have no clue as to why, though maybe it's picking something up from gcc's famously "fixed" standard headers? -Dimitry --Apple-Mail=_305F779C-473E-42BC-9E2D-8B485BF481D0 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 iEYEARECAAYFAlb0bbgACgkQsF6jCi4glqPmmgCfa1W4Uouk2F0pWc9e2cIybOPX seQAn1yoe0dAR1YhQamNkMiwcpKoKYnb =N+KF -----END PGP SIGNATURE----- --Apple-Mail=_305F779C-473E-42BC-9E2D-8B485BF481D0-- From owner-freebsd-toolchain@freebsd.org Thu Mar 24 22:44:59 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 6D502ADD3C8 for ; Thu, 24 Mar 2016 22:44:59 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 4A1C21FF4 for ; Thu, 24 Mar 2016 22:44:59 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by mailman.ysv.freebsd.org (Postfix) id 4975AADD3C7; Thu, 24 Mar 2016 22:44:59 +0000 (UTC) Delivered-To: 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 491E4ADD3C6 for ; Thu, 24 Mar 2016 22:44:59 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-pa0-x22f.google.com (mail-pa0-x22f.google.com [IPv6:2607:f8b0:400e:c03::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1826C1FF2 for ; Thu, 24 Mar 2016 22:44:59 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by mail-pa0-x22f.google.com with SMTP id fe3so32769045pab.1 for ; Thu, 24 Mar 2016 15:44:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=sender:subject:mime-version:from:in-reply-to:date:cc:message-id :references:to; bh=JkFehqj7Drz6FXigSdpTYrTEJLgyRnzLNfZCLuDOqgA=; b=EiRKzZOJv2VwWOcGqrkd5/6ZTB8X5Ccgy4VCbfbinXRBB/s0eEC1LGMqOmKvBscBxp kuuct0awQ5taWQ6bxRvL2Z//E1OmMaplWbSm2ZHd5XPFw3emFMDbaSRG12t5de7PelVD j1fS6ab0sz0H58Pjppt8ID66EpTRFOIDzFu4PlRzBbluJ+TQ20nRM8AEhOTom1bWTxn+ f+iumtX8XozxA63PAlkCEq1Icd/DoR6JDKfQD/nSBnYDQ/OqzYHoX/8C1VvC/T08tHiY hDEVLX/wTQnzYKjm2QG8TB9VF4jo6Uivd7rcg9ygsPWEScsVS6RjZFMSlERt2r4m2jXm hnmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:from:in-reply-to :date:cc:message-id:references:to; bh=JkFehqj7Drz6FXigSdpTYrTEJLgyRnzLNfZCLuDOqgA=; b=fJi5F8Wtfj1m/6qwRS3byXphZBL7PIjeTaXObBMwhhlA7q50T4h3UvqQmtZMip0NDF 1tiFSTKkJ7IwX37YomEMGt0q0nrN3nSqLoTEDlHnvcBVjlqW4UrKJQ2aiRMJBvEPxxeW 4eONR0WVx9lEL0pBQF0fvWmGAY4E/qz0V3twnP2M6KnwFWd4JSiQPfLMzcDrQ/CzaB/D VU4ONoWrfrhZmy+PugZgqDf68f21JqV5sqaM+hV1n+Wo8XRh+fefMl6gEryI6fwpe2CM 58TVOx1kcWovY2woAg+b6kTkaXRl+uJAd5YzRqfNdIBWgOve46yEK8/RRCt+7e//AgUt pJsA== X-Gm-Message-State: AD7BkJL6DeF+iYk+RLXM9TDjpOtg0dg4KK3CIdUob2xYCE0XxdlH5WOuCfo17jrGiJna0Q== X-Received: by 10.66.237.39 with SMTP id uz7mr15807387pac.141.1458859498473; Thu, 24 Mar 2016 15:44:58 -0700 (PDT) Received: from [100.127.145.91] ([69.53.245.29]) by smtp.gmail.com with ESMTPSA id ez6sm12323226pab.12.2016.03.24.15.44.57 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Mar 2016 15:44:57 -0700 (PDT) Sender: Warner Losh Subject: Re: CXXSTD=c++11 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Content-Type: multipart/signed; boundary="Apple-Mail=_F1B2E9BB-17A6-4AE8-BB44-AA920F0E7383"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5.2 From: Warner Losh In-Reply-To: <56F46D63.10303@FreeBSD.org> Date: Thu, 24 Mar 2016 16:44:56 -0600 Cc: toolchain@FreeBSD.org Message-Id: <64C513BC-2F49-42B0-A818-7A57421C7553@bsdimp.com> References: <56F46BE0.7080909@FreeBSD.org> <635A0A5E-63F2-4D42-B6D5-0E841AA713FE@bsdimp.com> <56F46D63.10303@FreeBSD.org> To: Bryan Drewery X-Mailer: Apple Mail (2.2104) 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: Thu, 24 Mar 2016 22:44:59 -0000 --Apple-Mail=_F1B2E9BB-17A6-4AE8-BB44-AA920F0E7383 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Mar 24, 2016, at 4:42 PM, Bryan Drewery = wrote: >=20 > On 3/24/2016 3:39 PM, Warner Losh wrote: >>=20 >>> On Mar 24, 2016, at 4:36 PM, Bryan Drewery = wrote: >>>=20 >>> Is there any problem with forcing -std=3Dc++11 for all CXX/LIB_CXX = builds >>> now? We do this when using an external GCC since it doesn't default = to >>> the c++11 standard quite yet. As far as I understand, we require = c++11 >>> to build clang/libc++. >>>=20 >>> It seems to be the problem at >>> = https://lists.freebsd.org/pipermail/freebsd-toolchain/2015-October/001757.= html >>> which I've fixed in an upcoming commit to properly pass -std=3Dc++11 = to >>> the lib32 build in CXXFLAGS. >>=20 >> Wouldn=E2=80=99t that break the spark and mips builds if we did it = always? They are the >> last stragglers to not have a working, fully vetted clang in the = tree. >>=20 >=20 > *sigh* It wouldn=E2=80=99t take too much to unbreak the build for those = platforms, though. And there=E2=80=99s been talk of kicking out gcc entirely for 11, which = would force these ports to external toolchain builds, which wouldn=E2=80=99t be broken. So with the deadline 1 month away, what=E2=80=99s being done to de-orbit = gcc, if anything? Warner --Apple-Mail=_F1B2E9BB-17A6-4AE8-BB44-AA920F0E7383 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----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJW9G3oAAoJEGwc0Sh9sBEA3vwP/AlXIHAqmz+8/DTwCxPCALcZ shP5oQ2EFtY5Nz4dkSuexGL4M725GA7DxmVsEz4vKIKxmDj84Q8mUQp3hTnxUjwn ENVXLpSstOBbmMnXIZiOYJuGY2BNnDL6I6p8bkqJqC8z8/QJA95SApxpXh+R37su eGpWhjr9Vae9kKO9KLSQ0HXy3WrvRmppONsKbb786DKZRs/H8fAsRfOjl8KR0yeD DHEgibPx57xEFHFRsS6zZcdv8Gc/Ba9TDDAETqlztKgayyC4sfR+Lw74BXm1U9OH bmfplGTf1K0HH0Ajucy5x8Ra4gwowLccS4peW9SIXX6QLk+9IuXGXontvsnftAqs cEMDuBN7ErVJtjXLzWdHVYycBpIvmDzWEp4UGOXmlb0bRH88cm6wSoyCGKKfjGjo vdvuuaveOts/rgWqx2TyFr7IOegavQb38wIzENcTQLq2YRlPxx+563tDHMrn3Etu DY7IKBMh+ygEw+IJO7kv1bmi4JOqHMXp83WzfJ/z+DqBQTfHdaY4JIbPAmm394/K SVT60OqQbBbkMn3x9JCtNgo2JD6zfKa5bPEpbcjWCaKh4bt9D7RHC7xhCLSdUPpw LGG4/o4vbiB+NB9kYrpy3iv4g47I2QMNaxUwG5ubQzZ3ix7aEubriQS8UwrgeJmF RdfQFKyQ+DXUTDw76TrR =CvDy -----END PGP SIGNATURE----- --Apple-Mail=_F1B2E9BB-17A6-4AE8-BB44-AA920F0E7383-- From owner-freebsd-toolchain@freebsd.org Thu Mar 24 22:45:48 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 62E8DADD3F3 for ; Thu, 24 Mar 2016 22:45:48 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48644102D for ; Thu, 24 Mar 2016 22:45:48 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 47BDFADD3F2; Thu, 24 Mar 2016 22:45:48 +0000 (UTC) Delivered-To: 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 4761AADD3F1 for ; Thu, 24 Mar 2016 22:45:48 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 2C4E1102C; Thu, 24 Mar 2016 22:45:48 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 25ACC1643; Thu, 24 Mar 2016 22:45:48 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id D10D41DFC0; Thu, 24 Mar 2016 22:45:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id r0lS1fvMffxR; Thu, 24 Mar 2016 22:45:45 +0000 (UTC) Subject: Re: CXXSTD=c++11 DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 025FE1DFBB To: Dimitry Andric References: <56F46BE0.7080909@FreeBSD.org> <43ABA5F3-60E0-4A29-9698-B345A3DA0A8B@FreeBSD.org> Cc: toolchain@FreeBSD.org From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Organization: FreeBSD Message-ID: <56F46E1B.4010605@FreeBSD.org> Date: Thu, 24 Mar 2016 15:45:47 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <43ABA5F3-60E0-4A29-9698-B345A3DA0A8B@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="taLDJrjlHjQfNGrTl5cmVa4te6OCEupEW" 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: Thu, 24 Mar 2016 22:45:48 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --taLDJrjlHjQfNGrTl5cmVa4te6OCEupEW Content-Type: multipart/mixed; boundary="E4jjuhsCCXh86fHJrS7ccsGdC98oUk034" From: Bryan Drewery To: Dimitry Andric Cc: toolchain@FreeBSD.org Message-ID: <56F46E1B.4010605@FreeBSD.org> Subject: Re: CXXSTD=c++11 References: <56F46BE0.7080909@FreeBSD.org> <43ABA5F3-60E0-4A29-9698-B345A3DA0A8B@FreeBSD.org> In-Reply-To: <43ABA5F3-60E0-4A29-9698-B345A3DA0A8B@FreeBSD.org> --E4jjuhsCCXh86fHJrS7ccsGdC98oUk034 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 3/24/2016 3:44 PM, Dimitry Andric wrote: > On 24 Mar 2016, at 23:36, Bryan Drewery wrote: >> >> Is there any problem with forcing -std=3Dc++11 for all CXX/LIB_CXX bui= lds >> now? We do this when using an external GCC since it doesn't default t= o >> the c++11 standard quite yet. As far as I understand, we require c++1= 1 >> to build clang/libc++. >=20 > Yes, but it already passes -std=3Dc++11 in the correct places, as far a= s I > know. E.g. during the clang and libc++ builds. >=20 >=20 >> It seems to be the problem at >> https://lists.freebsd.org/pipermail/freebsd-toolchain/2015-October/001= 757.html >> which I've fixed in an upcoming commit to properly pass -std=3Dc++11 t= o >> the lib32 build in CXXFLAGS. >=20 > Hm, is this occuring during the build of libcxxrt, or of libc++? If it= > is the former, then it seems that the system headers don't properly > declare _Static_assert() in that case. I have no clue as to why, thoug= h > maybe it's picking something up from gcc's famously "fixed" standard > headers? >=20 libcxxrt. My fix also includes passing the proper -isystem =3D/usr/include/c++/v1 p= ath. I'll try without the -std change. --=20 Regards, Bryan Drewery --E4jjuhsCCXh86fHJrS7ccsGdC98oUk034-- --taLDJrjlHjQfNGrTl5cmVa4te6OCEupEW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJW9G4bAAoJEDXXcbtuRpfPADAH/1hARk/DofVo8nFz5WFh59JX /JBvuGlE99SaHqg6nF6X4k/lTIv8z4JkZ9t51RoAhc5iL8JCMG5W0YgOlKoDpPRS tefslGA7gbqtNbemzsp6cdXQLG6uTjOj0jeK6KEaR2glwKzYgC8p9m+P+MwY7FRf CAnu6K/d+plDu4Ek+MWQyZHSbujiZ5f2L8/gRZMz2+KEuK5bih7u+T7ut9AVO8EY bDuCRC0uVXv159nLPQWq0/mXOFBbo17VprjNvQqK/NwQKryRfrcGipy3mSDFbZbx 3TzQpRZLPPgrvPv9WHKB8sEZS91YL1HQGmiraV7E0+J3vdDLBiOLUdw3VaAnSRE= =HuRj -----END PGP SIGNATURE----- --taLDJrjlHjQfNGrTl5cmVa4te6OCEupEW-- From owner-freebsd-toolchain@freebsd.org Thu Mar 24 22:51:24 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 87F9CADD4A9 for ; Thu, 24 Mar 2016 22:51:24 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 6CD601269 for ; Thu, 24 Mar 2016 22:51:24 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 68801ADD4A8; Thu, 24 Mar 2016 22:51:24 +0000 (UTC) Delivered-To: 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 681E7ADD4A7 for ; Thu, 24 Mar 2016 22:51:24 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 529F31268; Thu, 24 Mar 2016 22:51:24 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 42CDB16DF; Thu, 24 Mar 2016 22:51:24 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id E9A911DFD3; Thu, 24 Mar 2016 22:51:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id PTC0oqpP0k8l; Thu, 24 Mar 2016 22:51:18 +0000 (UTC) Subject: Re: CXXSTD=c++11 DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 97AC21DFCE To: Dimitry Andric References: <56F46BE0.7080909@FreeBSD.org> <43ABA5F3-60E0-4A29-9698-B345A3DA0A8B@FreeBSD.org> <56F46E1B.4010605@FreeBSD.org> Cc: toolchain@FreeBSD.org From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Organization: FreeBSD Message-ID: <56F46F67.2000807@FreeBSD.org> Date: Thu, 24 Mar 2016 15:51:19 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56F46E1B.4010605@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fUkEiqtUUV5OhVvxphOgoELubpP5L73W7" 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: Thu, 24 Mar 2016 22:51:24 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --fUkEiqtUUV5OhVvxphOgoELubpP5L73W7 Content-Type: multipart/mixed; boundary="XDiIe3wouFImHleieuNSRxWLm09k73Gmw" From: Bryan Drewery To: Dimitry Andric Cc: toolchain@FreeBSD.org Message-ID: <56F46F67.2000807@FreeBSD.org> Subject: Re: CXXSTD=c++11 References: <56F46BE0.7080909@FreeBSD.org> <43ABA5F3-60E0-4A29-9698-B345A3DA0A8B@FreeBSD.org> <56F46E1B.4010605@FreeBSD.org> In-Reply-To: <56F46E1B.4010605@FreeBSD.org> --XDiIe3wouFImHleieuNSRxWLm09k73Gmw Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 3/24/2016 3:45 PM, Bryan Drewery wrote: > On 3/24/2016 3:44 PM, Dimitry Andric wrote: >> On 24 Mar 2016, at 23:36, Bryan Drewery wrote: >>> >>> Is there any problem with forcing -std=3Dc++11 for all CXX/LIB_CXX bu= ilds >>> now? We do this when using an external GCC since it doesn't default = to >>> the c++11 standard quite yet. As far as I understand, we require c++= 11 >>> to build clang/libc++. >> >> Yes, but it already passes -std=3Dc++11 in the correct places, as far = as I >> know. E.g. during the clang and libc++ builds. >> >> >>> It seems to be the problem at >>> https://lists.freebsd.org/pipermail/freebsd-toolchain/2015-October/00= 1757.html >>> which I've fixed in an upcoming commit to properly pass -std=3Dc++11 = to >>> the lib32 build in CXXFLAGS. >> >> Hm, is this occuring during the build of libcxxrt, or of libc++? If i= t >> is the former, then it seems that the system headers don't properly >> declare _Static_assert() in that case. I have no clue as to why, thou= gh >> maybe it's picking something up from gcc's famously "fixed" standard >> headers? >> >=20 > libcxxrt. >=20 > My fix also includes passing the proper -isystem =3D/usr/include/c++/v1= path. >=20 > I'll try without the -std change. >=20 >=20 It fails without -std=3Dc++11 (there's more discussion in that link and i= n PR 205453). > /usr/local/bin/powerpc64-portbld-freebsd11.0-g++ -m32 -DCOMPAT_32BIT -m= cpu=3Dpowerpc --sysroot=3D/usr/obj/powerpc.powerpc64/root/git/freebsd/li= b32 -L/usr/obj/powerpc.powerpc64/root/git/freebsd/lib32/usr/lib32 -B/usr= /obj/powerpc.powerpc64/root/git/freebsd/lib32/usr/lib32 -isystem /usr/obj= /powerpc.powerpc64/root/git/freebsd/lib32/usr/include -isystem /usr/obj/p= owerpc.powerpc64/root/git/freebsd/lib32/usr/include/c++/v1 -L/usr/obj/po= werpc.powerpc64/root/git/freebsd/world32//root/git/freebsd/lib/libc++ -pg= -O2 -pipe -I/root/git/freebsd/lib/libcxxrt/../../contrib/libcxxrt -MD -= MF.depend.guard.po -MTguard.po -fstack-protector-strong -Wno-error=3Dunus= ed-function -Wno-error=3Denum-compare -Wno-error=3Dlogical-not-parenthese= s -Wno-error=3Dbool-compare -Wno-error=3Duninitialized -Wno-error=3Darray= -bounds -Wno-error=3Dclobbered -Wno-error=3Dcast-align -Wno-error=3Dextra= -Wno-error=3Dattributes -Wno-error=3Dinline -Wno-error=3Dunused-but-set-= variable -Wno-error=3Dunused-value -Wno-error=3Dstrict-aliasing -Wno-erro= r=3Daddre ss -c /root/git/freebsd/lib/libcxxrt/../../contrib/libcxxrt/guard.cc -o= guard.po > --- guard.o --- > /root/git/freebsd/lib/libcxxrt/../../contrib/libcxxrt/guard.cc:104:15: = error: expected constructor, destructor, or type conversion before '(' to= ken > _Static_assert(sizeof(guard_t) =3D=3D sizeof(uint64_t), ""); > ^ > --- libelftc_dem_gnu3.So --- > --- guard.o --- > *** [guard.o] Error code 1 >=20 > make[4]: stopped in /root/git/freebsd/lib/libcxxrt --=20 Regards, Bryan Drewery --XDiIe3wouFImHleieuNSRxWLm09k73Gmw-- --fUkEiqtUUV5OhVvxphOgoELubpP5L73W7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJW9G9oAAoJEDXXcbtuRpfPmUAH/RgGHdtnxR1bGU9nCmtHp0gL sdSPtgo2WERP+tvDCl1b+7kLcX0q+Vux6RU02a+v6fYH95zsgkY8+jnqwpl5ZmW2 eYSrlQueXX5wwjEfp4gVIuri5hLJXBtX2bCTT5yJ8B00CDu2wVbsDq7EqN7yvtCG w0pZU9kQhk0eUjVRJ2WCn5YB22o3GUXPOzewc7+AE9PM1YLZ2L4wjSn78cbAvyqz 0zT4k7G+isrfgPL1zZ1m2x4Mmnjl5zRKx6ZnUe7P30bqKOXzHpYbJhUPgntH7riJ 0eHtdpRy7t7QGEXWM70dweS3D/2FnQgDFyTlRLle+ig1NVzSRqF3jzBtw709atY= =e2KN -----END PGP SIGNATURE----- --fUkEiqtUUV5OhVvxphOgoELubpP5L73W7-- From owner-freebsd-toolchain@freebsd.org Thu Mar 24 22:55:01 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 7000CADD5EB for ; Thu, 24 Mar 2016 22:55:01 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 5A55013E2 for ; Thu, 24 Mar 2016 22:55:01 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 59A5DADD5EA; Thu, 24 Mar 2016 22:55:01 +0000 (UTC) Delivered-To: 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 5708FADD5E9 for ; Thu, 24 Mar 2016 22:55:01 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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 177E413E0; Thu, 24 Mar 2016 22:55:00 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::e0f9:ae86:eb6f:2b6f] (unknown [IPv6:2001:7b8:3a7:0:e0f9:ae86:eb6f:2b6f]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 7C6B6238CB; Thu, 24 Mar 2016 23:54:58 +0100 (CET) Subject: Re: CXXSTD=c++11 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_3969F12E-2410-4600-90B7-0A5AB75721AE"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 (ebbf3ef) From: Dimitry Andric In-Reply-To: <56F46F67.2000807@FreeBSD.org> Date: Thu, 24 Mar 2016 23:54:49 +0100 Cc: toolchain@FreeBSD.org Message-Id: <7B77010A-B377-4B1A-835A-D48F59E5290D@FreeBSD.org> References: <56F46BE0.7080909@FreeBSD.org> <43ABA5F3-60E0-4A29-9698-B345A3DA0A8B@FreeBSD.org> <56F46E1B.4010605@FreeBSD.org> <56F46F67.2000807@FreeBSD.org> To: Bryan Drewery X-Mailer: Apple Mail (2.3124) 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: Thu, 24 Mar 2016 22:55:01 -0000 --Apple-Mail=_3969F12E-2410-4600-90B7-0A5AB75721AE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On 24 Mar 2016, at 23:51, Bryan Drewery wrote: >=20 > On 3/24/2016 3:45 PM, Bryan Drewery wrote: >> On 3/24/2016 3:44 PM, Dimitry Andric wrote: >>> On 24 Mar 2016, at 23:36, Bryan Drewery = wrote: >>>>=20 >>>> Is there any problem with forcing -std=3Dc++11 for all CXX/LIB_CXX = builds >>>> now? We do this when using an external GCC since it doesn't = default to >>>> the c++11 standard quite yet. As far as I understand, we require = c++11 >>>> to build clang/libc++. >>>=20 >>> Yes, but it already passes -std=3Dc++11 in the correct places, as = far as I >>> know. E.g. during the clang and libc++ builds. >>>=20 >>>=20 >>>> It seems to be the problem at >>>> = https://lists.freebsd.org/pipermail/freebsd-toolchain/2015-October/001757.= html >>>> which I've fixed in an upcoming commit to properly pass -std=3Dc++11 = to >>>> the lib32 build in CXXFLAGS. >>>=20 >>> Hm, is this occuring during the build of libcxxrt, or of libc++? If = it >>> is the former, then it seems that the system headers don't properly >>> declare _Static_assert() in that case. I have no clue as to why, = though >>> maybe it's picking something up from gcc's famously "fixed" standard >>> headers? >>>=20 >>=20 >> libcxxrt. >>=20 >> My fix also includes passing the proper -isystem =3D/usr/include/c++/v1= path. >>=20 >> I'll try without the -std change. >>=20 >>=20 >=20 > It fails without -std=3Dc++11 (there's more discussion in that link = and in > PR 205453). Yeah, I also commented on PR 205453 in the past, but I still don't understand where the external gcc gets its _Static_assert macro from. Or whether it gets it at all. Maybe we should place a hack for this in sys/cdefs.h? We shouldn't litter contrib code with #ifdef GCC_VERSION blocks. -Dimitry --Apple-Mail=_3969F12E-2410-4600-90B7-0A5AB75721AE 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 iEYEARECAAYFAlb0cEEACgkQsF6jCi4glqML/gCg9g21+RV7tUJEfWHwc/pX9sGi g2kAnA7RPbIL8csRNZw4pkfH1YTwipZk =HKl4 -----END PGP SIGNATURE----- --Apple-Mail=_3969F12E-2410-4600-90B7-0A5AB75721AE-- From owner-freebsd-toolchain@freebsd.org Thu Mar 24 23:13:23 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 0D7B9ADD965 for ; Thu, 24 Mar 2016 23:13:23 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id E52F11C53 for ; Thu, 24 Mar 2016 23:13:22 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id E43FAADD964; Thu, 24 Mar 2016 23:13:22 +0000 (UTC) Delivered-To: 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 E3DACADD963 for ; Thu, 24 Mar 2016 23:13:22 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id C72B01C50; Thu, 24 Mar 2016 23:13:22 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id BC02E19E5; Thu, 24 Mar 2016 23:13:22 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id 74F4B2009D; Thu, 24 Mar 2016 23:13:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id 4XG6XCqYZxul; Thu, 24 Mar 2016 23:13:19 +0000 (UTC) Subject: Re: CXXSTD=c++11 DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com F3B7D20096 To: Dimitry Andric References: <56F46BE0.7080909@FreeBSD.org> <43ABA5F3-60E0-4A29-9698-B345A3DA0A8B@FreeBSD.org> <56F46E1B.4010605@FreeBSD.org> <56F46F67.2000807@FreeBSD.org> <7B77010A-B377-4B1A-835A-D48F59E5290D@FreeBSD.org> Cc: toolchain@FreeBSD.org From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Organization: FreeBSD Message-ID: <56F47491.5020203@FreeBSD.org> Date: Thu, 24 Mar 2016 16:13:21 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <7B77010A-B377-4B1A-835A-D48F59E5290D@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="h7o6XLqb4M3ppTapfOnV32c0KLEh81rPW" 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: Thu, 24 Mar 2016 23:13:23 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --h7o6XLqb4M3ppTapfOnV32c0KLEh81rPW Content-Type: multipart/mixed; boundary="dXw2StUE6tWeTamCFu8jHcD0VmJgTFrh0" From: Bryan Drewery To: Dimitry Andric Cc: toolchain@FreeBSD.org Message-ID: <56F47491.5020203@FreeBSD.org> Subject: Re: CXXSTD=c++11 References: <56F46BE0.7080909@FreeBSD.org> <43ABA5F3-60E0-4A29-9698-B345A3DA0A8B@FreeBSD.org> <56F46E1B.4010605@FreeBSD.org> <56F46F67.2000807@FreeBSD.org> <7B77010A-B377-4B1A-835A-D48F59E5290D@FreeBSD.org> In-Reply-To: <7B77010A-B377-4B1A-835A-D48F59E5290D@FreeBSD.org> --dXw2StUE6tWeTamCFu8jHcD0VmJgTFrh0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 3/24/2016 3:54 PM, Dimitry Andric wrote: > On 24 Mar 2016, at 23:51, Bryan Drewery wrote: >> >> On 3/24/2016 3:45 PM, Bryan Drewery wrote: >>> On 3/24/2016 3:44 PM, Dimitry Andric wrote: >>>> On 24 Mar 2016, at 23:36, Bryan Drewery wrote= : >>>>> >>>>> Is there any problem with forcing -std=3Dc++11 for all CXX/LIB_CXX = builds >>>>> now? We do this when using an external GCC since it doesn't defaul= t to >>>>> the c++11 standard quite yet. As far as I understand, we require c= ++11 >>>>> to build clang/libc++. >>>> >>>> Yes, but it already passes -std=3Dc++11 in the correct places, as fa= r as I >>>> know. E.g. during the clang and libc++ builds. >>>> >>>> >>>>> It seems to be the problem at >>>>> https://lists.freebsd.org/pipermail/freebsd-toolchain/2015-October/= 001757.html >>>>> which I've fixed in an upcoming commit to properly pass -std=3Dc++1= 1 to >>>>> the lib32 build in CXXFLAGS. >>>> >>>> Hm, is this occuring during the build of libcxxrt, or of libc++? If= it >>>> is the former, then it seems that the system headers don't properly >>>> declare _Static_assert() in that case. I have no clue as to why, th= ough >>>> maybe it's picking something up from gcc's famously "fixed" standard= >>>> headers? >>>> >>> >>> libcxxrt. >>> >>> My fix also includes passing the proper -isystem =3D/usr/include/c++/= v1 path. >>> >>> I'll try without the -std change. >>> >>> >> >> It fails without -std=3Dc++11 (there's more discussion in that link an= d in >> PR 205453). >=20 > Yeah, I also commented on PR 205453 in the past, but I still don't > understand where the external gcc gets its _Static_assert macro from. > Or whether it gets it at all. Maybe we should place a hack for this in= > sys/cdefs.h? We shouldn't litter contrib code with #ifdef GCC_VERSION > blocks. >=20 Well _Static_assert is C++11 and static_assert is C11. These files are being built by GCC as C++03, so neither is presumably available without raising the standard. Shouldn't this be using static_assert with a CXXFLAGS+=3D-std=3Dc++11 or CSTD=3Dc11 ? --=20 Regards, Bryan Drewery --dXw2StUE6tWeTamCFu8jHcD0VmJgTFrh0-- --h7o6XLqb4M3ppTapfOnV32c0KLEh81rPW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJW9HSRAAoJEDXXcbtuRpfPoWAH/iPyqyGp4AFEZc3TzfQJnVst qXVqpopuESLGlfJa6MC7wq5a7qHt4zWfXs+C4uPZeaB/HHGzua9+Xapa4A+wjj+P 1g4TWHKi0zcRqoc1V0s/bQDM8xdjOG4I3eIpgK9Qde8eOERUjlKpNrICi40NOjtN g05jAsU5urC4Ld2UYldbP6uFI7fGfm6qUiKBu5aKt5wn+/3jck8y9ZGuAHg+wV34 zQ3NV2TbPao0rIYWkyCC9q4g/0S/VXgBxIRrKlkBCehmnyjkOsOHePKrtGWOmVIP xXmBpijrDrct6eqXFnCIJsTa2fC+cXE2F7sGXFRvVQccQo9hWmSRqIiPWIqFQRY= =OmAz -----END PGP SIGNATURE----- --h7o6XLqb4M3ppTapfOnV32c0KLEh81rPW-- From owner-freebsd-toolchain@freebsd.org Thu Mar 24 23:15:05 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 55F28ADD9A3 for ; Thu, 24 Mar 2016 23:15:05 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 392C01C9D for ; Thu, 24 Mar 2016 23:15:05 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 34E5FADD9A2; Thu, 24 Mar 2016 23:15:05 +0000 (UTC) Delivered-To: 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 34812ADD9A1 for ; Thu, 24 Mar 2016 23:15:05 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 1D50F1C9B; Thu, 24 Mar 2016 23:15:05 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 17D861A1B; Thu, 24 Mar 2016 23:15:05 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id BFB6F200AC; Thu, 24 Mar 2016 23:15:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id DpRqoF-DV2YF; Thu, 24 Mar 2016 23:15:02 +0000 (UTC) Subject: Re: CXXSTD=c++11 DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 64CFF200A7 To: Dimitry Andric References: <56F46BE0.7080909@FreeBSD.org> <43ABA5F3-60E0-4A29-9698-B345A3DA0A8B@FreeBSD.org> <56F46E1B.4010605@FreeBSD.org> <56F46F67.2000807@FreeBSD.org> <7B77010A-B377-4B1A-835A-D48F59E5290D@FreeBSD.org> <56F47491.5020203@FreeBSD.org> Cc: toolchain@FreeBSD.org From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Organization: FreeBSD Message-ID: <56F474F9.7060902@FreeBSD.org> Date: Thu, 24 Mar 2016 16:15:05 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56F47491.5020203@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nmmIjgSBNL5nStngiIMt3NJmsaDqH2COO" 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: Thu, 24 Mar 2016 23:15:05 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --nmmIjgSBNL5nStngiIMt3NJmsaDqH2COO Content-Type: multipart/mixed; boundary="r9iEdC4ec0qvanODRS5jPMsfmIt5klMkB" From: Bryan Drewery To: Dimitry Andric Cc: toolchain@FreeBSD.org Message-ID: <56F474F9.7060902@FreeBSD.org> Subject: Re: CXXSTD=c++11 References: <56F46BE0.7080909@FreeBSD.org> <43ABA5F3-60E0-4A29-9698-B345A3DA0A8B@FreeBSD.org> <56F46E1B.4010605@FreeBSD.org> <56F46F67.2000807@FreeBSD.org> <7B77010A-B377-4B1A-835A-D48F59E5290D@FreeBSD.org> <56F47491.5020203@FreeBSD.org> In-Reply-To: <56F47491.5020203@FreeBSD.org> --r9iEdC4ec0qvanODRS5jPMsfmIt5klMkB Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 3/24/2016 4:13 PM, Bryan Drewery wrote: > Well _Static_assert is C++11 and static_assert is C11. Yes I have it backwards, same point though. --=20 Regards, Bryan Drewery --r9iEdC4ec0qvanODRS5jPMsfmIt5klMkB-- --nmmIjgSBNL5nStngiIMt3NJmsaDqH2COO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJW9HT5AAoJEDXXcbtuRpfPgPwH/20/0b085YcCVxUQkGyt/ydr 1c7wRqd9EbGuMbF0ZgvNlZF/d3/Gx649/4+Q3ZCkcgDIS6HGaFbhTczxBl7mHfk4 cqK0ODQIuArdjwYGGuyOQxtB69Sbcr0Jqh4vS+V9Nhbi7myZ0SjDSTv89xl5EFaM i3RUCuvX1tg3DlKBko00Q6Y7GlNMLBlUed3+Lmet793NF99e9j6SXU+ZFjwu2Cz9 0Sn8C8iE9cQrSem42PdZcdHuTOyk9H1pah84JihPiaPG05PIrJ6HudL7bxlcW++7 +KqOhA94cEMR/hoLRvD32zW5JMrN+FaOeFOqlQrB4l4v6Jg/Q3qFF2iSPpu0Q20= =sP2y -----END PGP SIGNATURE----- --nmmIjgSBNL5nStngiIMt3NJmsaDqH2COO-- From owner-freebsd-toolchain@freebsd.org Thu Mar 24 23:17:10 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 9DB4EADD9D3 for ; Thu, 24 Mar 2016 23:17:10 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 873F31CE4 for ; Thu, 24 Mar 2016 23:17:10 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 82ECAADD9D2; Thu, 24 Mar 2016 23:17:10 +0000 (UTC) Delivered-To: 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 82946ADD9D1 for ; Thu, 24 Mar 2016 23:17:10 +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 4A3B71CE3; Thu, 24 Mar 2016 23:17:10 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::e0f9:ae86:eb6f:2b6f] (unknown [IPv6:2001:7b8:3a7:0:e0f9:ae86:eb6f:2b6f]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id C503F23914; Fri, 25 Mar 2016 00:17:06 +0100 (CET) Subject: Re: CXXSTD=c++11 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_6F95CD35-22A5-4E07-9FD0-89ABF4FF74A8"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 (ebbf3ef) From: Dimitry Andric In-Reply-To: <7B77010A-B377-4B1A-835A-D48F59E5290D@FreeBSD.org> Date: Fri, 25 Mar 2016 00:16:48 +0100 Cc: toolchain@FreeBSD.org Message-Id: References: <56F46BE0.7080909@FreeBSD.org> <43ABA5F3-60E0-4A29-9698-B345A3DA0A8B@FreeBSD.org> <56F46E1B.4010605@FreeBSD.org> <56F46F67.2000807@FreeBSD.org> <7B77010A-B377-4B1A-835A-D48F59E5290D@FreeBSD.org> To: Bryan Drewery X-Mailer: Apple Mail (2.3124) 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: Thu, 24 Mar 2016 23:17:10 -0000 --Apple-Mail=_6F95CD35-22A5-4E07-9FD0-89ABF4FF74A8 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=windows-1252 On 24 Mar 2016, at 23:54, Dimitry Andric wrote: > > On 24 Mar 2016, at 23:51, Bryan Drewery wrote: ... >> It fails without -std=c++11 (there's more discussion in that link and in >> PR 205453). > > Yeah, I also commented on PR 205453 in the past, but I still don't > understand where the external gcc gets its _Static_assert macro from. > Or whether it gets it at all. Maybe we should place a hack for this in > sys/cdefs.h? We shouldn't litter contrib code with #ifdef GCC_VERSION > blocks. Hm, hacking around in cdefs.h also doesn't really help, because gcc refuses to recognize either _Static_assert or static_assert when it's not in C++11 mode. Reading back https://reviews.freebsd.org/D1390, I see that I originally wanted to avoid building libcxxrt with -std=c++11. This was so you could even build it with gcc 4.2.1 from base. However, it really doesn't make much sense to do so, and upstream libcxxrt simply uses static_assert directly, and requires -std=c++11. I will update the libcxxrt build to do so, probably tomorrow. -Dimitry --Apple-Mail=_6F95CD35-22A5-4E07-9FD0-89ABF4FF74A8 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 iEYEARECAAYFAlb0dXIACgkQsF6jCi4glqOhuwCfZ1ezyu4FcS1tWRqOA1G/evMP nisAoO38mEZwNhA/aKPELbglsmcuBPY2 =N3SJ -----END PGP SIGNATURE----- --Apple-Mail=_6F95CD35-22A5-4E07-9FD0-89ABF4FF74A8-- From owner-freebsd-toolchain@freebsd.org Thu Mar 24 23:18:36 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 556C7ADD9FC for ; Thu, 24 Mar 2016 23:18:36 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 380C51D5C for ; Thu, 24 Mar 2016 23:18:36 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 37491ADD9FB; Thu, 24 Mar 2016 23:18:36 +0000 (UTC) Delivered-To: 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 36E25ADD9FA for ; Thu, 24 Mar 2016 23:18:36 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 19CE81D5B; Thu, 24 Mar 2016 23:18:36 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 1356A1ABE; Thu, 24 Mar 2016 23:18:36 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id C6876200D3; Thu, 24 Mar 2016 23:18:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id izxrMZzfg3LP; Thu, 24 Mar 2016 23:18:33 +0000 (UTC) Subject: Re: CXXSTD=c++11 DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 0FFC8200CD To: Dimitry Andric References: <56F46BE0.7080909@FreeBSD.org> <43ABA5F3-60E0-4A29-9698-B345A3DA0A8B@FreeBSD.org> <56F46E1B.4010605@FreeBSD.org> <56F46F67.2000807@FreeBSD.org> <7B77010A-B377-4B1A-835A-D48F59E5290D@FreeBSD.org> Cc: toolchain@FreeBSD.org From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Organization: FreeBSD Message-ID: <56F475CB.8020107@FreeBSD.org> Date: Thu, 24 Mar 2016 16:18:35 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="72KcMDTBSS05IlpagUU89KU6E1qdEbQkC" 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: Thu, 24 Mar 2016 23:18:36 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --72KcMDTBSS05IlpagUU89KU6E1qdEbQkC Content-Type: multipart/mixed; boundary="CdnB6dMWhHgMpuiB9gnoXRFTV8npTHra0" From: Bryan Drewery To: Dimitry Andric Cc: toolchain@FreeBSD.org Message-ID: <56F475CB.8020107@FreeBSD.org> Subject: Re: CXXSTD=c++11 References: <56F46BE0.7080909@FreeBSD.org> <43ABA5F3-60E0-4A29-9698-B345A3DA0A8B@FreeBSD.org> <56F46E1B.4010605@FreeBSD.org> <56F46F67.2000807@FreeBSD.org> <7B77010A-B377-4B1A-835A-D48F59E5290D@FreeBSD.org> In-Reply-To: --CdnB6dMWhHgMpuiB9gnoXRFTV8npTHra0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 3/24/2016 4:16 PM, Dimitry Andric wrote: > On 24 Mar 2016, at 23:54, Dimitry Andric wrote: >> >> On 24 Mar 2016, at 23:51, Bryan Drewery wrote: > ... >>> It fails without -std=3Dc++11 (there's more discussion in that link a= nd in >>> PR 205453). >> >> Yeah, I also commented on PR 205453 in the past, but I still don't >> understand where the external gcc gets its _Static_assert macro from. >> Or whether it gets it at all. Maybe we should place a hack for this i= n >> sys/cdefs.h? We shouldn't litter contrib code with #ifdef GCC_VERSION= >> blocks. >=20 > Hm, hacking around in cdefs.h also doesn't really help, because gcc > refuses to recognize either _Static_assert or static_assert when it's > not in C++11 mode. Reading back https://reviews.freebsd.org/D1390, I > see that I originally wanted to avoid building libcxxrt with -std=3Dc++= 11. > This was so you could even build it with gcc 4.2.1 from base. >=20 > However, it really doesn't make much sense to do so, and upstream > libcxxrt simply uses static_assert directly, and requires -std=3Dc++11.= I > will update the libcxxrt build to do so, probably tomorrow. >=20 Sounds good. --=20 Regards, Bryan Drewery --CdnB6dMWhHgMpuiB9gnoXRFTV8npTHra0-- --72KcMDTBSS05IlpagUU89KU6E1qdEbQkC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJW9HXLAAoJEDXXcbtuRpfPmsgH+gKrS1a/H5pBO8mU73b6OiPx yDu+tFCfAIUH1RiP3vNA4zMb7+VrchFn6mTs3/DdJy6j41g6W8j6hMCQTF8ylnBL pBEdJ2izX9asq0C3iHPR9a75UDnYRS5Q4dmnWByR+nR1vegA5bbH5NCqHWvkTJdn vvmJOp0zpqNQyxxLKSy/Z8JyKcBQSj8mJDTidGsbSG8e58JhzBr5yjtsapMV4Mxj aWMl8CySnkLF0vBpYGfn6QY8XxVpD5rB777+mpjOLydOn3PvKAc/69hZB71CjxZ4 FMk6jbSbebXDH+8KyaO6c2drifMkwTxiPu8j+y25jKz2e3X3AwwBlKWXmWayzhU= =t0kt -----END PGP SIGNATURE----- --72KcMDTBSS05IlpagUU89KU6E1qdEbQkC-- From owner-freebsd-toolchain@freebsd.org Thu Mar 24 23:31:22 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 82F1CADDC6C for ; Thu, 24 Mar 2016 23:31:22 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 679C913A0 for ; Thu, 24 Mar 2016 23:31:22 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 62F80ADDC69; Thu, 24 Mar 2016 23:31:22 +0000 (UTC) Delivered-To: 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 62981ADDC68 for ; Thu, 24 Mar 2016 23:31:22 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 45F35139F for ; Thu, 24 Mar 2016 23:31:22 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 3AF3C1D34 for ; Thu, 24 Mar 2016 23:31:22 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id ECA0D200FD for ; Thu, 24 Mar 2016 23:31:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id 2gKUlCXKPpRn for ; Thu, 24 Mar 2016 23:31:19 +0000 (UTC) Subject: Re: CXXSTD=c++11 DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 048DD200F7 References: <56F46BE0.7080909@FreeBSD.org> <635A0A5E-63F2-4D42-B6D5-0E841AA713FE@bsdimp.com> To: toolchain@FreeBSD.org From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Organization: FreeBSD Message-ID: <56F478C9.7030900@FreeBSD.org> Date: Thu, 24 Mar 2016 16:31:21 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <635A0A5E-63F2-4D42-B6D5-0E841AA713FE@bsdimp.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jdNKOdfMUajEje00hgDu9PC6wkvHd4IGB" 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: Thu, 24 Mar 2016 23:31:22 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --jdNKOdfMUajEje00hgDu9PC6wkvHd4IGB Content-Type: multipart/mixed; boundary="VhfWhj4rpRG4bAB9ad7AIoorXdBskCoal" From: Bryan Drewery To: toolchain@FreeBSD.org Message-ID: <56F478C9.7030900@FreeBSD.org> Subject: Re: CXXSTD=c++11 References: <56F46BE0.7080909@FreeBSD.org> <635A0A5E-63F2-4D42-B6D5-0E841AA713FE@bsdimp.com> In-Reply-To: <635A0A5E-63F2-4D42-B6D5-0E841AA713FE@bsdimp.com> --VhfWhj4rpRG4bAB9ad7AIoorXdBskCoal Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 3/24/2016 3:39 PM, Warner Losh wrote: >=20 >> On Mar 24, 2016, at 4:36 PM, Bryan Drewery wrot= e: >> >> Is there any problem with forcing -std=3Dc++11 for all CXX/LIB_CXX bui= lds >> now? We do this when using an external GCC since it doesn't default t= o >> the c++11 standard quite yet. As far as I understand, we require c++1= 1 >> to build clang/libc++. >> >> It seems to be the problem at >> https://lists.freebsd.org/pipermail/freebsd-toolchain/2015-October/001= 757.html >> which I've fixed in an upcoming commit to properly pass -std=3Dc++11 t= o >> the lib32 build in CXXFLAGS. >=20 > Wouldn=E2=80=99t that break the spark and mips builds if we did it alwa= ys? They are the > last stragglers to not have a working, fully vetted clang in the tree. >=20 When building with external GCC we're forcing it to use libc++ which uses static_assert which doesn't work without -std=3Dc++11. The external= GCC support now always forces -std=3Dgnu++11 but I was testing with removing it. libatf blows up: > In file included from /usr/obj/powerpc.powerpc64/root/git/freebsd/tmp/u= sr/include/c++/v1/ostream:137:0, > from /root/git/freebsd/contrib/atf/atf-c++/detail/appl= ication.hpp:29, > from /root/git/freebsd/contrib/atf/atf-c++/detail/appl= ication.cpp:26: > /usr/obj/powerpc.powerpc64/root/git/freebsd/tmp/usr/include/c++/v1/memo= ry: In member function 'void std::__1::default_delete<_Tp>::operator()(_T= p*) const': > /usr/obj/powerpc.powerpc64/root/git/freebsd/tmp/usr/include/c++/v1/memo= ry:2514:13: error: typedef '__t2514' locally defined but not used [-Werro= r=3Dunused-local-typedefs] > static_assert(sizeof(_Tp) > 0, "default_delete can not del= ete incomplete type"); I stopped testing at this point. We've fixed it by always passing -std=3Dgnu++11 to the entire build but then that ends up hiding other issues like that Static_assert in libcxxrt being misused. Not passing -std=3Dc++11 to the lib32 build just happens to work because we don't normally build c++ libraries in it that don't otherwise force -std=3Dc++11 (such as libc++ does now). --=20 Regards, Bryan Drewery --VhfWhj4rpRG4bAB9ad7AIoorXdBskCoal-- --jdNKOdfMUajEje00hgDu9PC6wkvHd4IGB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJW9HjJAAoJEDXXcbtuRpfPQA8H/iC/m9HfZEG7usLq9OLmwoGo R4ybm6Z3rdZIaNQ/L1pLSjmlg/OxaqWhUGV1UnNkfyMoGhr5KuB7e1eOnlNZdg5B ou8BxpdyttpQowfzI2Okf9rLUdGm1el6PnOR+EdJfuG6shHKsIiFjfHNWZuT7Qx1 Mo3Vx7SSIytQc0bwVlGsHhfFA5SbKdgpYo7Q9gM30hPPd+nfPMetIldegZExBP85 XgO+Y/RoJeaSq/59AlVGmUDb6FLflyFCj5HlTb+oaL+8lkOC+lBT34+JslSnj0+A 2YJvl3AIm14HwoNzA+ZDNLJQFI4w+q2/1Pgg/AMWrHLkOnOx9gAxH1DE4F5fSq8= =2I2h -----END PGP SIGNATURE----- --jdNKOdfMUajEje00hgDu9PC6wkvHd4IGB-- From owner-freebsd-toolchain@freebsd.org Fri Mar 25 09:03:52 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 3418EADDD70 for ; Fri, 25 Mar 2016 09:03:52 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-156.reflexion.net [208.70.211.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D1C901532 for ; Fri, 25 Mar 2016 09:03:51 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 25408 invoked from network); 25 Mar 2016 09:03:41 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 25 Mar 2016 09:03:41 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v7.80.0) with SMTP; Fri, 25 Mar 2016 05:04:04 -0400 (EDT) Received: (qmail 14556 invoked from network); 25 Mar 2016 09:04:04 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with SMTP; 25 Mar 2016 09:04:04 -0000 X-No-Relay: not in my network Received: from [192.168.1.8] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id C74CC1C43C7 for ; Fri, 25 Mar 2016 02:03:42 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: CXXSTD=c++11 Message-Id: <064A933D-1D06-4B46-8B62-76674B9274E4@dsl-only.net> Date: Fri, 25 Mar 2016 02:03:43 -0700 To: FreeBSD Toolchain Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) 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, 25 Mar 2016 09:03:52 -0000 [Just a few notes related to some points in the exchange.] powerpc and powerpc64 are in the same boat as mips and sparc for clang's = overall status: clang does not work yet, independent of any FreeBSD = issues that might exist if clang's code generation was okay. (See = https://llvm.org/bugs/show_bug.cgi?id=3D25780 and what it "depends on".) I've been able to buildworld using WITH_LIB32=3D via = powerpc64-xtoolchain-gcc/powerpc64-gcc with the libcxxrt _Static_assert = disabled but what was built has never worked because of some of the code = in the crtbeginS.o produced. (See = https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206123 .) powerpc64-xtoolchain-gcc/powerpc64-gcc as it is currently built when = used on a powerpc64 (self hosting "cross builds" for buildworld) = historically looks in and prefers /usr/local/include/ include files so I = first rename files that caused me problems, for example: > # ls /usr/local/include/renamed_* > /usr/local/include/renamed_dwarf.h = /usr/local/include/renamed_iconv.h = /usr/local/include/renamed_libdwarf.h I do not know if the -isystem change(s) will improve this to prefer the = likes of (in my context) = /usr/obj/xtoolchain/powerpc.powerpc64/usr/src/tmp/usr/include/c++/v1 = and/or /usr/obj/xtoolchain/powerpc.powerpc64/usr/src/tmp/usr/include or = not. It is too bad that powerpc64-gcc automatically looks in = /usr/local/include . Direct use of the live-system's /usr/include/c++/v1 area would be the = wrong place if that code had updates. As I understand things, = ${WORLDTMP} use is appropriate in forming the include directory paths = (in my context: /usr/obj/xtoolchain/powerpc.powerpc64/usr/src/tmp = prefixes). =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Fri Mar 25 19:15:26 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 7FB20ADD796 for ; Fri, 25 Mar 2016 19:15:26 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 6BEC91649 for ; Fri, 25 Mar 2016 19:15:26 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: by mailman.ysv.freebsd.org (Postfix) id 6799FADD795; Fri, 25 Mar 2016 19:15:26 +0000 (UTC) Delivered-To: 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 6737BADD794 for ; Fri, 25 Mar 2016 19:15:26 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 321F11648 for ; Fri, 25 Mar 2016 19:15:25 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id E18E91534C6 for ; Fri, 25 Mar 2016 20:15:21 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XMGOdgD0wUHn; Fri, 25 Mar 2016 20:15:21 +0100 (CET) Received: from [IPv6:2001:4cb8:3:1:f04a:b856:521:44b8] (unknown [IPv6:2001:4cb8:3:1:f04a:b856:521:44b8]) by smtp.digiware.nl (Postfix) with ESMTP id 2B9271534D7 for ; Fri, 25 Mar 2016 20:15:21 +0100 (CET) To: toolchain@freebsd.org From: Willem Jan Withagen Subject: boost/asio/ip/resolver_query_base.hpp:96:3: warning: all paths through this function will call itself Organization: Digiware Management b.v. Message-ID: <56F58E3E.1090208@digiware.nl> Date: Fri, 25 Mar 2016 20:15:10 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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, 25 Mar 2016 19:15:26 -0000 Hi Dimitry (or others), Any suggestions why I'm getting this warning/error in the ceph code: In file included from log/Log.cc:12: In file included from /usr/local/include/boost/asio.hpp:63: In file included from /usr/local/include/boost/asio/ip/basic_resolver.hpp:24: In file included from /usr/local/include/boost/asio/ip/basic_resolver_query.hpp:21: /usr/local/include/boost/asio/ip/resolver_query_base.hpp:96:3: warning: all paths through this function will call itself [-Winfinite-recursion] Could be a boost error, but I have not seen any upgrades to a newer version.