From nobody Wed Jul 05 08:39:06 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QwtPL3Ff4z4ly5y; Wed, 5 Jul 2023 08:39:18 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QwtPL2pJpz4GFZ; Wed, 5 Jul 2023 08:39:18 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688546358; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=JsZ05WCYRo5gHaNiAy2cJxvmhnlTXS+Y6FCPRXC/JRM=; b=k89EmADb1sc5Gr4fR3mCR3WEURpRv35dmrRkWOHhMDznb1+ThubKuljNj3u1iQkWWRoY1k 5XRtySYQtO4GpwEx1LINv3A/Cro3CkKB0PNpiSjjseUmH+Y0CK5E7Z9OS1jXa7KOHhsMR+ cHKY3bi5n7Gie+i3tzTU2od5EqGtHrFfBBd731s1GbIA3KpTcurbRnZAB7Sui4kIzCmrgK nJMSWD5PzCR4W6CoU15RbuTW/Klv17LAHtKUpvvQLL0ZibgGBxwvWgtCTMFdWH8qg6pgjC 616KjOA42GvBFDdMzl9dk8NCB176N0A+RWBdtp6PzHpMTJ4ClLfWj6Ni4znamA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688546358; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=JsZ05WCYRo5gHaNiAy2cJxvmhnlTXS+Y6FCPRXC/JRM=; b=gRghgnkG+aJw9yrAcpLLTHjKAkracOB4o+qo+vte0FKzA/4Kah98rCi6MYNCWADTFIm4hF h0CsFxO1dq+Z0FcDj7P+MeDMqejzuYxlWvoUKPdN/+WYogG6iISvHEQ71IgjtndFvsdRn+ vVTySs6OJhAqWPVscJG2y/FWfuLgyjMZCtNKef0Il/opvoKGwz5WJtT0r9Euh75hUiiNk/ vbyvJMZJOrHyiIGPPaJJzYa4/TAzGCYeoiNBusik0GsKfEbANxGteDEgV09kl1gT3AkR/2 wUWcIwb01eMzdDGQUJlmEqafjemt+A3dzKIwbDrMr8Ni41CJZndFKbSDza1KIg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688546358; a=rsa-sha256; cv=none; b=EP0zPMlEFT/o1ObKtHm05k0aAuCtiFX2pGj7GZDBEJacf+sYlZTeYC3CnBFGdaZD0dr9Nv chh6Uh6DokAPUxqE8EkkfcNKwfvf5s9WuO7OWaS0+ij4iNqwlDIzPUfb7JcBS9NoXOvn4D WLb1I6UFTDAeTmIgIegp/NcNZUeX5Qg4ZBJYqGLFHN1Rj2kzPNzy0Gumqrz807YyQsBUha ZCDxdWrv7gwsPvsGBZik0uRGOSlokmaLyGrefFQfKq6Qpk+AxavR7uGmI9S7OkItOXXVYH +4Q4a3saLkQDJfHnnFcgfny8gtUHjzmt672IUdK+mK6+VuMm/uMDrfxxQKgSog== Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4QwtPL1mJ4zdsF; Wed, 5 Jul 2023 08:39:18 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-qt1-f182.google.com with SMTP id d75a77b69052e-400aaafa491so56711591cf.1; Wed, 05 Jul 2023 01:39:18 -0700 (PDT) X-Gm-Message-State: AC+VfDzUdjQ5gemUnoulnEeUfJugJgICna6I1FH/VDZhaXiByzF4Ohvc C5aYKo1ZNGvhKeWM1CMBJEQ8A/qWc1UIQ+DSOfs= X-Google-Smtp-Source: ACHHUZ64hTbRchL2r7lX9TgMWkKdzvloZZRR4r3/o93CqemrQeKEHuCYK5Phce6m3m4tWXYJQ0NsLfORWyXvlitcjaA= X-Received: by 2002:ac8:58d0:0:b0:400:994b:218a with SMTP id u16-20020ac858d0000000b00400994b218amr19100200qta.25.1688546357833; Wed, 05 Jul 2023 01:39:17 -0700 (PDT) List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 References: <202307041714.364HEbPI098704@gitrepo.freebsd.org> In-Reply-To: From: Nuno Teixeira Date: Wed, 5 Jul 2023 09:39:06 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: git: 348c10112de6 - main - devel/freebsd-gcc9: Build with -std=c++11. To: Alexey Dokuchaev Cc: John Baldwin , ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org Content-Type: multipart/alternative; boundary="000000000000d876fb05ffb95532" X-ThisMailContainsUnwantedMimeParts: N --000000000000d876fb05ffb95532 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, This fix inspired me to try it on net-p2p/amule that is failing on clang16. This port already have USES=3Dcompiler:c++11-lang and I added USE_CXXSTD=3Dc++11 and it fixes build. My question is, isn't a PORTREVISION bump reccomended since build have changed with -std=3Dc++11? Build fail log: https://pkg-status.freebsd.org/beefy18/data/main-amd64-default/p7520ea4fbad= d_sfd774e065c/logs/amule-2.3.3_6.log Thanks, Alexey Dokuchaev escreveu no dia quarta, 5/07/2023 =C3= =A0(s) 04:29: > On Tue, Jul 04, 2023 at 05:14:37PM +0000, John Baldwin wrote: > > commit 348c10112de61df7e66ea2d5a190700213542caa > > > > devel/freebsd-gcc9: Build with -std=3Dc++11. > > > > This works around errors from clang from LLVM16 due to -Wregister > > warnings that are fatal in the default C++ standard (C++17) used by > > clang 16. > > --- > > @@ -26,6 +26,8 @@ TARGETARCH=3D ${FLAVOR} > > USES=3D compiler:c++11-lang cpe gmake iconv libtool > makeinfo tar:xz > > CPE_VENDOR=3D gnu > > > > +CXXFLAGS+=3D -std=3Dc++11 > > + > > We have USE_CXXSTD for that in the b.p.m. > > ./danfe > --=20 Nuno Teixeira FreeBSD Committer (ports) --000000000000d876fb05ffb95532 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

This fix inspired me = to try it on net-p2p/amule that is failing on clang16.
This port = already have USES=3Dcompiler:c++11-lang and I added USE_CXXSTD=3Dc++11 and = it fixes build.

My question is, isn't a PORTRE= VISION bump reccomended since build have changed with -std=3Dc++11?

Build fail log:
Thanks,

Alexey Dokuchaev <danfe@freebsd.org> escreveu no dia quarta, 5/07/2023 = =C3=A0(s) 04:29:
On Tue, Jul 04, 2023 at 05:14:37PM +0000, John Baldwin wrote:
> commit 348c10112de61df7e66ea2d5a190700213542caa
>
>=C2=A0 =C2=A0devel/freebsd-gcc9: Build with -std=3Dc++11.
>
>=C2=A0 =C2=A0This works around errors from clang from LLVM16 due to -Wr= egister
>=C2=A0 =C2=A0warnings that are fatal in the default C++ standard (C++17= ) used by
>=C2=A0 =C2=A0clang 16.
> ---
> @@ -26,6 +26,8 @@ TARGETARCH=3D ${FLAVOR}
>=C2=A0 USES=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 c= ompiler:c++11-lang cpe gmake iconv libtool makeinfo tar:xz
>=C2=A0 CPE_VENDOR=3D=C2=A0 gnu
>=C2=A0
> +CXXFLAGS+=3D=C2=A0 =C2=A0-std=3Dc++11
> +

We have USE_CXXSTD for that in the b.p.m.

./danfe


--
Nuno Teixeira
FreeBSD Committ= er (ports)
--000000000000d876fb05ffb95532--