From owner-freebsd-current@freebsd.org Mon Feb 13 20:57:51 2017 Return-Path: Delivered-To: freebsd-current@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 E6E0DCDDD71 for ; Mon, 13 Feb 2017 20:57:51 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from springbank.echomania.com (springbank.echomania.com [149.210.134.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "springbank.echomania.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A8B5C13AE; Mon, 13 Feb 2017 20:57:51 +0000 (UTC) (envelope-from dim@FreeBSD.org) X-Virus-Scanned: Debian amavisd-new at springbank.echomania.com Received: from [IPv6:2001:7b8:3a7::edc2:5bd4:2353:56e3] (unknown [IPv6:2001:7b8:3a7:0:edc2:5bd4:2353:56e3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by springbank.echomania.com (Postfix) with ESMTPSA id E62B558022B; Mon, 13 Feb 2017 21:57:36 +0100 (CET) From: Dimitry Andric Message-Id: <71CFCEB9-6ED9-4278-A465-2BCB359A390A@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_5F173649-4540-4EE1-9319-CFD58E6B1FAE"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: build with WITHOUT_GPL_DTC=y broken? Date: Mon, 13 Feb 2017 21:57:27 +0100 In-Reply-To: <140BB2A6-31CD-4847-89B0-D83BB3B4CB27@FreeBSD.org> Cc: FreeBSD Current To: Matteo Riondato References: <065D64EE-D742-4E09-A3C0-658FE7020DC6@FreeBSD.org> <6515122C-B831-4EC5-9B59-F258C41E87A9@FreeBSD.org> <140BB2A6-31CD-4847-89B0-D83BB3B4CB27@FreeBSD.org> X-Mailer: Apple Mail (2.3259) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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, 13 Feb 2017 20:57:52 -0000 --Apple-Mail=_5F173649-4540-4EE1-9319-CFD58E6B1FAE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On 13 Feb 2017, at 20:27, Matteo Riondato wrote: >=20 >> On Feb 13, 2017, at 1:58 PM, Dimitry Andric wrote: >> On 13 Feb 2017, at 16:53, Matteo Riondato wrote: >>>=20 >>> When I build world with WITHOUT_GPL_DTC=3Dy in src.conf (complete = file after the error) I get the following error in stage 1.2: bootstrap = tools. This is not a recent breakage, I=E2=80=99ve experienced it for a = while. >>>=20 >>> =3D=3D=3D> usr.bin/dtc (obj,all,install) >>> /usr/obj/usr/src/tmp/usr/src/usr.bin/dtc created for = /usr/src/usr.bin/dtc >>> echo dtc: /usr/lib/libc.a = /usr/obj/usr/src/tmp/legacy/usr/lib/libegacy.a >> .depend >>> echo dtc: /usr/lib/libc++.a >> .depend >>> c++ -O2 -pipe -DNDEBUG -MD -MF.depend.dtc.o -MTdtc.o = -Qunused-arguments -I/usr/obj/usr/src/tmp/legacy/usr/include -std=3Dc++11 = -fno-rtti -fno-exceptions -Wno-c++11-extensions -c = /usr/src/usr.bin/dtc/dtc.cc -o dtc.o >>> c++ -O2 -pipe -DNDEBUG -MD -MF.depend.input_buffer.o = -MTinput_buffer.o -Qunused-arguments = -I/usr/obj/usr/src/tmp/legacy/usr/include -std=3Dc++11 -fno-rtti = -fno-exceptions -Wno-c++11-extensions -c = /usr/src/usr.bin/dtc/input_buffer.cc -o input_buffer.o >>> /usr/src/usr.bin/dtc/input_buffer.cc:547:53: error: type = 'dtc::(anonymous namespace)::expression' is not a direct or virtual base = of 'binary_operator' >>> binary_operator(source_location l, const char *) : = expression(l) {} >>> ^~~~~~~~~~ >>=20 >> Which FreeBSD version are you running on the host? I've just tried >> building head/usr.bin/dtc on 12-CURRENT, 11-STABLE and 10-STABLE, but = it >> all works just fine for me. >=20 > Very interesting. I=E2=80=99m using 12.0-CURRENT #2 r313159. >=20 > I even did two 'make cleandir' in /usr/src and removed /usr/obj/ , and = still it does not compile. I see now, this is because you are using WITHOUT_ASSERT_DEBUG. This adds -DNDEBUG to CFLAGS, and apparently you are the first person to hit this NDEBUG-only code. :) I committed a fix in r313709. -Dimitry --Apple-Mail=_5F173649-4540-4EE1-9319-CFD58E6B1FAE 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----- iEYEARECAAYFAliiHcAACgkQsF6jCi4glqMtrQCeJMoRfNJUDf4rKR77NM2RuDV2 XnUAoOXM/iPRHbLIvoBqKTkRU9XU/eVT =nEC5 -----END PGP SIGNATURE----- --Apple-Mail=_5F173649-4540-4EE1-9319-CFD58E6B1FAE--