From owner-freebsd-current@freebsd.org Mon Mar 12 17:54:32 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6B897F30E81 for ; Mon, 12 Mar 2018 17:54:32 +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 02CDA68D02 for ; Mon, 12 Mar 2018 17:54:32 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id B867DF30E7A; Mon, 12 Mar 2018 17:54:31 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A483BF30E79 for ; Mon, 12 Mar 2018 17:54:31 +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 2785068CFF for ; Mon, 12 Mar 2018 17:54:31 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from coleburn.home.andric.com (coleburn.home.andric.com [192.168.0.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 9772F10EA5; Mon, 12 Mar 2018 18:54:29 +0100 (CET) From: Dimitry Andric Message-Id: <34C5A473-3842-4801-B0CA-8D84817827E9@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_8AF21013-DDD3-4229-9E74-D6E60B9A9BFF"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Clang-6 and GNUisms. Date: Mon, 12 Mar 2018 18:54:28 +0100 In-Reply-To: Cc: current To: Ian FREISLICH References: <4ea06b48-d451-f2b3-4c20-4963f829333b@capeaugusta.com> X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2018 17:54:32 -0000 --Apple-Mail=_8AF21013-DDD3-4229-9E74-D6E60B9A9BFF Content-Type: multipart/mixed; boundary="Apple-Mail=_30CDBAB8-F46A-49C0-83A7-11155FD7CB8F" --Apple-Mail=_30CDBAB8-F46A-49C0-83A7-11155FD7CB8F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 12 Mar 2018, at 16:03, Dimitry Andric wrote: >=20 > On 12 Mar 2018, at 00:56, Ian FREISLICH = wrote: ... >> I haven't got avr-gcc to compile yet. >=20 > No idea about this, is it very different from regular gcc's? As those > all compile fine now. For avr-gcc, which is an older version of gcc with some customizations, a fix similar to https://svnweb.freebsd.org/changeset/ports/458581 is needed, such as the attached patch. -Dimitry --Apple-Mail=_30CDBAB8-F46A-49C0-83A7-11155FD7CB8F Content-Disposition: attachment; filename=devel__avr-gcc-fix-clang6-build-1.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="devel__avr-gcc-fix-clang6-build-1.diff" Content-Transfer-Encoding: 7bit Index: devel/avr-gcc/Makefile =================================================================== --- devel/avr-gcc/Makefile (revision 463967) +++ devel/avr-gcc/Makefile (working copy) @@ -56,6 +56,11 @@ BROKEN_mips64= Fails to configure: cannot compute ARCH= x86_64 .endif +post-patch: + @${FIND} ${WRKSRC} -type f \( -name '*.[ch]' -o -name '*.cc' \) | \ + ${XARGS} ${EGREP} -l '"(HOST_WIDE|PLUGIN_COND|PRId64)' | \ + ${XARGS} ${REINPLACE_CMD} -E -e 's/"(HOST_WIDE|PLUGIN_COND|PRId64)/" \1/g' + post-configure: ${MKDIR} ${WRKSRC}/gcc/include --Apple-Mail=_30CDBAB8-F46A-49C0-83A7-11155FD7CB8F-- --Apple-Mail=_8AF21013-DDD3-4229-9E74-D6E60B9A9BFF Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWqa+1AAKCRCwXqMKLiCW o4bIAJ9hauxu5yPnvZ+QXu8ZBLBaJKxn2ACg6WUeY3Px+aMEGMfnl2Kpp96mEDQ= =au7A -----END PGP SIGNATURE----- --Apple-Mail=_8AF21013-DDD3-4229-9E74-D6E60B9A9BFF--