Date: Mon, 12 Mar 2018 18:54:28 +0100 From: Dimitry Andric <dim@FreeBSD.org> To: Ian FREISLICH <ian.freislich@capeaugusta.com> Cc: current <current@freebsd.org> Subject: Re: Clang-6 and GNUisms. Message-ID: <34C5A473-3842-4801-B0CA-8D84817827E9@FreeBSD.org> In-Reply-To: <E03C5179-E64D-4491-B30F-9BA02A048361@FreeBSD.org> References: <4ea06b48-d451-f2b3-4c20-4963f829333b@capeaugusta.com> <E03C5179-E64D-4491-B30F-9BA02A048361@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <dim@FreeBSD.org> wrote: >=20 > On 12 Mar 2018, at 00:56, Ian FREISLICH = <ian.freislich@capeaugusta.com> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34C5A473-3842-4801-B0CA-8D84817827E9>