From owner-svn-src-head@freebsd.org Tue Jun 5 19:29:42 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 98039FF38C0 for ; Tue, 5 Jun 2018 19:29:42 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-4.consmr.mail.bf2.yahoo.com (sonic301-4.consmr.mail.bf2.yahoo.com [74.6.129.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 326816E097 for ; Tue, 5 Jun 2018 19:29:42 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: iq2Z5BIVM1mZTHjZlc7nJmXqYkpCG1B9XtJF5XSeRytlNheUFrYDpLxmMRH_HLV iE_3pppNpEMxIW4vtIABnMIrz.DXd88ROHzC3OXaA7RDMrM6sMP.zq_JeE.I56KzWh449ORtRINH Ja9GdlulCW9AfUOjdfYkl3AvBDR12icuXhVft0jUs2QmHSC_aTDN4O8SkHDyx7adwb6XcfWIvG.O _0mc__A.no6M72jzYz0uRkO3awFT6ka7X_evwqqP9R851seGDjVADWn7m9vTJOZjaOHhhVhEflO_ QsuBAJZ8McNKPWMvwsBjBqfi3q.VXNCKcbwVS5nY1_ob8sAtKlO3VoaIucL9L7JjG4.ULccQ3k3x p.7vzh40Lv.LUDrA_zOZj9WhdU1lNDfUVFD6UzSf.UaFLzhCQ6fGLQYpeqIyMfUmBqlKRnofThmq 47u7mQjnUVkPH9j7YL6BhInFmpC.c1G1SUuNwqx.Wi0yAGVk5OPo1LcQIXNb0Z8aDukGHjtCnnXQ sF28ouqnklDhVb3dXqY3F1xmqI1Mxpv7cCKT.959aBk5w5F04sPyCNFmyeUfmWVRVmMnDC0OJSfQ WQvtfFvZO3HLOffsxKMEbkzhyT5o8_moI.S79_uEe5P6aE5Mwc7q8FY3.8GjFyYF0VmcAd0Fdjj0 KcLcvxEoWeBjlhU6fvXJ.rAGnVlY5mpNzuhQ6R4IKmy.OdlMI_64tdidFvVzB2yYWZMj048ygfIu 3VeTlIQ45SNo4mRnvabONbnJ3ntYZWMGy_gIIRSAEx5dZg0OeHvjBzOrHNsNqi85zzxImrnZafll oMTAr7BO5FgQyA0vEIxs5f60ZgozzFTP5KPWdaanLB_5PkgSm3XZmL158zYXtPZhT.1VQ5vBLuB1 3ovMBBHADzQvd9Bldj6ZGuo7dJ2LtoKe_Ao1eZjuHFcO_s_0VA9anVcepkKcdrxW_ti8mE6gSkex xmes- Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.bf2.yahoo.com with HTTP; Tue, 5 Jun 2018 19:29:36 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.109]) ([70.189.131.151]) by smtp429.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 18a102f98ad2ecbe943be09bf0f7dd00; Tue, 05 Jun 2018 19:29:35 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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] From: Mark Millard In-Reply-To: <317A4775-F397-4C54-9DE4-2FCD5E53D5B2@yahoo.com> Date: Tue, 5 Jun 2018 12:29:24 -0700 Cc: svn-src-head@freebsd.org, freebsd-toolchain@freebsd.org, mmacy@FreeBSD.org Content-Transfer-Encoding: quoted-printable Message-Id: <8BFF241F-84C2-4C1F-86DC-3F9118A1ED7B@yahoo.com> References: <5D1C2920-2206-4602-BD2D-D1298E5D62EE@yahoo.com> <39385E73-A75B-4E61-91D3-4CA86252AEDA@FreeBSD.org> <317A4775-F397-4C54-9DE4-2FCD5E53D5B2@yahoo.com> To: Dimitry Andric 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 19:29:42 -0000 [Just fixing a dumb typo in a build number.] On 2018-Jun-5, at 12:22 PM, Mark Millard wrote: > On 2018-Jun-5, at 10:49 AM, Dimitry Andric wrote: >=20 >> 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 >>> . . . >>=20 >> I don't think anybody has yet tested building libc++ headers with the >> combination of recent gcc, -Wsystem-headers, and -Werror. :) >>=20 >> For now, try disabling -Wredundant-decls. >>=20 >=20 > ci.freebsd.org 's FreeBSD-head-amd64-gcc #5973 ( -r334645 ) is > the last build that worked. #5973 ( -r334647 ) is the first that > failed. Fixing the repeated build number (the 2nd should have been #5974 ) . . . #5973 ( -r334645 ) and a bunch before worked #5974 ( -r334647 ) and later failed (so far) > Maybe pmc forces -Werror and/or -Wredundant-decls since its new > use of include is what seems to matter for the failure. >=20 > But, prior to that additional include, FreeBSD-head-amd64-gcc was > building fine on ci.freebsd.org . >=20 >=20 > (I have no control over ci.freebsd.org builds, which is the > context I reported the problem for.) >=20 >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)