Re: git: 348c10112de6 - main - devel/freebsd-gcc9: Build with -std=c++11.
Date: Wed, 05 Jul 2023 08:39:06 UTC
Hello, This fix inspired me to try it on net-p2p/amule that is failing on clang16. This port already have USES=compiler:c++11-lang and I added USE_CXXSTD=c++11 and it fixes build. My question is, isn't a PORTREVISION bump reccomended since build have changed with -std=c++11? Build fail log: https://pkg-status.freebsd.org/beefy18/data/main-amd64-default/p7520ea4fbadd_sfd774e065c/logs/amule-2.3.3_6.log Thanks, Alexey Dokuchaev <danfe@freebsd.org> escreveu no dia quarta, 5/07/2023 à(s) 04:29: > On Tue, Jul 04, 2023 at 05:14:37PM +0000, John Baldwin wrote: > > commit 348c10112de61df7e66ea2d5a190700213542caa > > > > devel/freebsd-gcc9: Build with -std=c++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= ${FLAVOR} > > USES= compiler:c++11-lang cpe gmake iconv libtool > makeinfo tar:xz > > CPE_VENDOR= gnu > > > > +CXXFLAGS+= -std=c++11 > > + > > We have USE_CXXSTD for that in the b.p.m. > > ./danfe > -- Nuno Teixeira FreeBSD Committer (ports)