From owner-freebsd-ppc@freebsd.org Sun Jan 24 17:20:43 2016 Return-Path: Delivered-To: freebsd-ppc@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 C91B6A1D919; Sun, 24 Jan 2016 17:20:43 +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 8BAD7272; Sun, 24 Jan 2016 17:20:43 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::b004:16cd:40ee:ae68] (unknown [IPv6:2001:7b8:3a7:0:b004:16cd:40ee:ae68]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id B1CCA3CA64; Sun, 24 Jan 2016 18:20:39 +0100 (CET) Subject: Re: powerpc64-gcc unable to compile clang 3.8.0 from clang380-import -r294609 via buildworld Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Content-Type: multipart/signed; boundary="Apple-Mail=_474CEA44-0CCD-4425-AA4F-6B71D1585302"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 (ebbf3ef) From: Dimitry Andric In-Reply-To: <6BA37DD4-3F58-438B-B1E0-7312389B576D@dsl-only.net> Date: Sun, 24 Jan 2016 18:20:32 +0100 Cc: FreeBSD Toolchain , FreeBSD PowerPC ML Message-Id: <693CD1BD-6F32-47A5-B399-701219F5A6DA@FreeBSD.org> References: <67523280-9F20-4638-BF24-1BFAE8583805@dsl-only.net> <5B511209-F26D-4788-B80B-E0328963C263@FreeBSD.org> <582B67B0-25F4-40BE-A92F-D4818DCB9F97@dsl-only.net> <6BA37DD4-3F58-438B-B1E0-7312389B576D@dsl-only.net> To: Mark Millard X-Mailer: Apple Mail (2.3112) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jan 2016 17:20:44 -0000 --Apple-Mail=_474CEA44-0CCD-4425-AA4F-6B71D1585302 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 24 Jan 2016, at 12:20, Mark Millard wrote: >=20 > My current trial powerpc64-gcc based buildworld is well past where it = stopped before (in a clang 3.8.0 part of the build). What I changed in = libc++ was just a little of __config: It appears upstream has done approximately the same thing here: http://llvm.org/viewvc/llvm-project?view=3Drevision&revision=3D255585 > # svnlite diff /usr/src/contrib/libc++/include/__config > Index: /usr/src/contrib/libc++/include/__config > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- /usr/src/contrib/libc++/include/__config (revision 294609) > +++ /usr/src/contrib/libc++/include/__config (working copy) > @@ -432,13 +432,15 @@ > // No version of GCC supports relaxed constexpr rules > #define _LIBCPP_HAS_NO_CXX14_CONSTEXPR > // GCC 5 will support variable templates > +#if !defined(__cpp_variable_templates) || __cpp_variable_templates < = 201304L > #define _LIBCPP_HAS_NO_VARIABLE_TEMPLATES > +#endif >=20 > #define _NOEXCEPT throw() > #define _NOEXCEPT_(x) > #define _NOEXCEPT_OR_FALSE(x) false >=20 > -#ifndef __GXX_EXPERIMENTAL_CXX0X__ > +#if !defined(__GXX_EXPERIMENTAL_CXX0X__) && __cplusplus < 201103L Except for this change. Why was this needed? >=20 > #define _LIBCPP_HAS_NO_ADVANCED_SFINAE > #define _LIBCPP_HAS_NO_DECLTYPE > @@ -454,7 +456,10 @@ >=20 > #else // __GXX_EXPERIMENTAL_CXX0X__ >=20 > +#if _GNUC_VER < 404 > #define _LIBCPP_HAS_NO_TRAILING_RETURN > +#endif > + > #define _LIBCPP_HAS_NO_ALWAYS_INLINE_VARIADICS Upstream put this in a different part, but semantically it means the same. Eventually I will just import a newer libc++ snapshot wholesale, or when the 3.8.0 version is released, but as I have enough on my plate for now, I will postpone it until clang 3.8.0 hits head. -Dimitry --Apple-Mail=_474CEA44-0CCD-4425-AA4F-6B71D1585302 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 iEYEARECAAYFAlalB+cACgkQsF6jCi4glqMKEQCgz9uxLIGfbWi5+fiDpAUm1u7t x+IAoJ8jbVs/78NVJKlzk5LB6wcEHPBp =drFM -----END PGP SIGNATURE----- --Apple-Mail=_474CEA44-0CCD-4425-AA4F-6B71D1585302--