From owner-svn-src-head@freebsd.org Tue Jun 5 17:49:37 2018 Return-Path: Delivered-To: svn-src-head@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 CA4A6FE97C0; Tue, 5 Jun 2018 17:49:37 +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 5AD5687226; Tue, 5 Jun 2018 17:49:37 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [10.10.154.196] (unknown [185.93.6.11]) (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 ECE2D43E44; Tue, 5 Jun 2018 19:49:35 +0200 (CEST) From: Dimitry Andric Message-Id: <39385E73-A75B-4E61-91D3-4CA86252AEDA@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_53FC7137-D105-48D6-AB2F-F42056CA88D3"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\)) Subject: Re: svn commit: r334647 - in head: . . . [this broke ci.freebsd.org's FreeBSD-head-amd64-gcc build but via an include/c++/v1/ problem] Date: Tue, 5 Jun 2018 19:49:31 +0200 In-Reply-To: <5D1C2920-2206-4602-BD2D-D1298E5D62EE@yahoo.com> Cc: svn-src-head@freebsd.org, freebsd-toolchain@freebsd.org, mmacy@FreeBSD.org To: Mark Millard References: <5D1C2920-2206-4602-BD2D-D1298E5D62EE@yahoo.com> X-Mailer: Apple Mail (2.3445.8.2) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2018 17:49:38 -0000 --Apple-Mail=_53FC7137-D105-48D6-AB2F-F42056CA88D3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 5 Jun 2018, at 15:03, Mark Millard via freebsd-toolchain = wrote: >=20 > https://ci.freebsd.org/job/FreeBSD-head-amd64-gcc/5974/consoleText = shows: >=20 > --- all_subdir_usr.sbin/pmc --- > In file included from = /workspace/obj/workspace/src/amd64.amd64/tmp/usr/include/c++/v1/ios:216:0,= > from = /workspace/obj/workspace/src/amd64.amd64/tmp/usr/include/c++/v1/iostream:3= 8, > from /workspace/src/usr.sbin/pmc/cmd_pmc_filter.cc:71: > = /workspace/obj/workspace/src/amd64.amd64/tmp/usr/include/c++/v1/__locale: = At global scope: > = /workspace/obj/workspace/src/amd64.amd64/tmp/usr/include/c++/v1/__locale:1= 237:40: error: redundant redeclaration of 'void = std::__1::__throw_runtime_error(const char*)' in same scope = [-Werror=3Dredundant-decls] > _LIBCPP_NORETURN _LIBCPP_FUNC_VIS void __throw_runtime_error(const = char*); > ^~~~~~~~~~~~~~~~~~~~~ > In file included from = /workspace/obj/workspace/src/amd64.amd64/tmp/usr/include/c++/v1/memory:663= :0, > from = /workspace/obj/workspace/src/amd64.amd64/tmp/usr/include/c++/v1/algorithm:= 643, > from = /workspace/obj/workspace/src/amd64.amd64/tmp/usr/include/c++/v1/__string:5= 6, > from = /workspace/obj/workspace/src/amd64.amd64/tmp/usr/include/c++/v1/string_vie= w:176, > from = /workspace/obj/workspace/src/amd64.amd64/tmp/usr/include/c++/v1/string:477= , > from = /workspace/obj/workspace/src/amd64.amd64/tmp/usr/include/c++/v1/__locale:1= 5, > from = /workspace/obj/workspace/src/amd64.amd64/tmp/usr/include/c++/v1/ios:216, > from = /workspace/obj/workspace/src/amd64.amd64/tmp/usr/include/c++/v1/iostream:3= 8, > from /workspace/src/usr.sbin/pmc/cmd_pmc_filter.cc:71: > = /workspace/obj/workspace/src/amd64.amd64/tmp/usr/include/c++/v1/stdexcept:= 186:40: note: previous declaration of 'void = std::__1::__throw_runtime_error(const char*)' > _LIBCPP_NORETURN _LIBCPP_FUNC_VIS void __throw_runtime_error(const = char*); > ^~~~~~~~~~~~~~~~~~~~~ >=20 >=20 > It looks like the new #include of iostream brings in code that gcc = rejected above: >=20 > --- head/usr.sbin/pmc/cmd_pmc_filter.c Mon Jun 4 23:17:18 2018 = (r334645, copy source) > +++ head/usr.sbin/pmc/cmd_pmc_filter.cc Tue Jun 5 04:26:40 2018 = (r334647) > @@ -68,11 +68,22 @@ __FBSDID("$FreeBSD$"); > #include > #include "cmd_pmc.h" >=20 > +#include > . . . I don't think anybody has yet tested building libc++ headers with the combination of recent gcc, -Wsystem-headers, and -Werror. :) For now, try disabling -Wredundant-decls. -Dimitry --Apple-Mail=_53FC7137-D105-48D6-AB2F-F42056CA88D3 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 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWxbNKwAKCRCwXqMKLiCW o4H2AKDqCHPXYzdhSl1mwKRaofQ1jHb64ACfSzBkig7ze8tWy/sRWBt8hkL1B88= =qbEF -----END PGP SIGNATURE----- --Apple-Mail=_53FC7137-D105-48D6-AB2F-F42056CA88D3--