From nobody Thu Feb 08 10:03:11 2024 X-Original-To: freebsd-toolchain@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 4TVsxm16JBz59Ps7; Thu, 8 Feb 2024 10:03:24 +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 4TVsxm0VJBz4fRq; Thu, 8 Feb 2024 10:03:24 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707386604; 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=SsqcDqZ7vknIEVkoCCw55t+nvgdW8dZJqaVDRBDuZ08=; b=LITTuDrKsalzAlA4WXtNRPWGiqsfOlx7i+w3Y7YeoKDBBqc8DrfnbiRIuGAwT6+/H5RKrX GgKMevTvL8uD/5pfkQYJnEAXHNcosRGKD7zVAgcCQ7riM42pYC0DP5e4Eem+O/BDEF2lMn LwFJa2UDlGNmgXcP8j7RG+5BRMPEHRblInlGwLEM8qtYzbqxT65vaINQNFLs1Fvyoz+AK+ mQe3OrX6fGt6RBRp4UN1v0eiDjwJuOqDGwv33Ofklh5TRVMfuKPoKHKOCFRPBSqg+RgI84 32tQj4WlsXnmiiww3nF6xcBRPuQTWIF0uAsz/B8l7VBqnaH/oX1UXbVQklpsvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707386604; 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=SsqcDqZ7vknIEVkoCCw55t+nvgdW8dZJqaVDRBDuZ08=; b=E3BfvUrvfWLFn/ZVTQbglXkrZKIrMwQVlVO18REUBlJ+2SpELJSmNz2U5r/3q/hrUDvG/g 9im8WWpKHjgtuzO7kuvHC/FSPZiT+7tB3PVF3nrEVdy7rDud6IfVpSrZrwXKRGGPnIj63q kVL9fopnwjv3e01cLiDJ+JKorXn9AztjCPHhaemAzfLidwMum95D8BZD9rDHAy2UBQjTNu ys6nOLpgOs9nsqh/jU7d8dtAFKTU7RTpjZmqqzc4d+lguoIxlQPv+rnKqP/lu6GPX1I8Kq 5YkGlQLTo+plNC3UmeoeFKollaJoljbIS6bw1AI2d/JNQunsdsqTtOoaEjCRwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707386604; a=rsa-sha256; cv=none; b=PF4nEw2Yp5aBPTdVUbsgictf2j2wrc5sEvYOkH9MLWHPJt8QHrzGyCTTHA+DZkKlPhw9VO IILMnV15Do3kskJWAvEK43rgzlulorWiKb1NCxdUVH33narz6LhaYiFbAzM2tHRNwAaRg3 kXY5K9K9cwNHTyUNLDdlOdiSsnMdmAnfRv72C4OI44tw9rINltCBaSC5wQJftg0sk3LMfx CEXoG7vx+mmxffUCJgKWk0Ibe/C65lXrpOlEozBOXJ0hO2ubxVCci6cZ+U72BGd7NFh2PV /8V2GHuY59VSB+Xcsqu4wQ0uMq2gxgcGpzSSIZOEfjXM1D8C2u5iSiqFALl2Ww== Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com [209.85.167.170]) (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 4TVsxl6VVpzQh9; Thu, 8 Feb 2024 10:03:23 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-oi1-f170.google.com with SMTP id 5614622812f47-3bfede356dfso774650b6e.1; Thu, 08 Feb 2024 02:03:23 -0800 (PST) X-Gm-Message-State: AOJu0YwPCrQVw9K9jHBvC5gkE+tpjmu+qdtgl7oHdvFK6FUE7gLqZR4K A2Kjtzh3uvuGkgcJXDqlkcab5uD6elV0v+IfU/2wpxD4CHOHjIScP8yQQoDTe+AqaWWi3+/uErh TS7g5TQxeNnyb7pKqTM7KtpG9kRk= X-Google-Smtp-Source: AGHT+IG98SgENufv0xJTpgFB17h6mS9Idqitxv+5ZcJ6ulKWFNnGZAvvlRQcLVb4R/S8Se4MGFf+dH3zlKM3y/LyFbo= X-Received: by 2002:a05:6808:320f:b0:3bf:ea1f:ebc9 with SMTP id cb15-20020a056808320f00b003bfea1febc9mr6744336oib.47.1707386603166; Thu, 08 Feb 2024 02:03:23 -0800 (PST) List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 References: <62C8F08E-8D73-4918-A91F-4FC01E94FD8A.ref@yahoo.com> <62C8F08E-8D73-4918-A91F-4FC01E94FD8A@yahoo.com> <2B9415F3-80C7-4B48-9CF0-7F1FD0BE3FEA@FreeBSD.org> In-Reply-To: From: Nuno Teixeira Date: Thu, 8 Feb 2024 10:03:11 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Why lang/gcc14-devel builds are failing on the build servers: needs USES= compiler:c++14-lang (or higher) instead of compiler:c++11-lang To: Dimitry Andric Cc: Mark Millard , FreeBSD Toolchain , FreeBSD Mailing List , "salvadore@freebsd.org" Content-Type: multipart/alternative; boundary="000000000000f9e0850610dbeb95" --000000000000f9e0850610dbeb95 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable (...) This conversation related to "compiler:c++11-lang" on lang/gcc14-devel Nuno Teixeira escreveu (quinta, 8/02/2024 =C3=A0(s) 1= 0:00): > Ok, let's try other way: > > Suppose that port compiles with c++17. Do you need to set > "compiler:c++17-lang' capability? > No, base clang supports it. Same for the other capabilities listed in > porter's handbook. > > Dimitry Andric escreveu (quinta, 8/02/2024 =C3=A0(s) 08= :39): > >> Deprecated? It's essential to figure out the compiler type and version, >> if you need that in a port Makefile! >> >> How are you going to do that otherwise? If you don't set USES=3Dcompiler= , >> at the least, COMPILER_TYPE and _VERSION aren't even defined... >> >> -Dimitry >> >> > On 8 Feb 2024, at 08:40, Nuno Teixeira wrote: >> > >> > USES compiler is somehow deprecated as clang and gcc on base and ports >> supports capable compiler described in handbook: >> > https://docs.freebsd.org/en/books/porters-handbook/book/#uses-compiler >> > >> > Mark Millard escreveu (quinta, 8/02/2024 =C3=A0(s) >> 05:52): >> > The error on the FreeBSD build servers: >> > >> > QUOTE >> > >> /wrkdirs/usr/ports/lang/gcc14-devel/work/gcc-14-20240114/gcc/config/aarc= h64/aarch64.cc:13095:50: >> error: constexpr variable 'tiles' must be initialized by a constant >> expression >> > 13095 | static constexpr std::pair tiles[] =3D { >> > | ^ ~ >> > 13096 | { 0xff, 'b' }, >> > | ~~~~~~~~~~~~~~ >> > 13097 | { 0x55, 'h' }, >> > | ~~~~~~~~~~~~~~ >> > 13098 | { 0x11, 's' }, >> > | ~~~~~~~~~~~~~~ >> > 13099 | { 0x01, 'd' } >> > | ~~~~~~~~~~~~~ >> > 13100 | }; >> > | ~ >> > >> /wrkdirs/usr/ports/lang/gcc14-devel/work/gcc-14-20240114/gcc/config/aarc= h64/aarch64.cc:13096:5: >> note: non-constexpr constructor 'pair' cannot be use= d >> in a constant expression >> > 13096 | { 0xff, 'b' }, >> > | ^ >> > /usr/include/c++/v1/__utility/pair.h:225:5: note: declared here >> > 225 | pair(_U1&& __u1, _U2&& __u2) >> > END QUOTE >> > >> > is because C++11 did not have pair constructors being constexpr. >> > C++14 (and later) does. Yet lang/gcc14-devel 's Makefile says: >> > >> > USES=3D compiler:c++11-lang cpe gmake iconv libtool makeinfo >> perl5 tar:xz >> > >> > >> > =3D=3D=3D >> > Mark Millard >> > marklmi at yahoo.com >> > >> > >> > >> > >> > -- >> > Nuno Teixeira >> > FreeBSD Committer (ports) >> >> > > -- > Nuno Teixeira > FreeBSD Committer (ports) > --=20 Nuno Teixeira FreeBSD Committer (ports) --000000000000f9e0850610dbeb95 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
(...)

This conversation rela= ted to "compiler:c++11-lang" on lang/gcc14-devel

<= div class=3D"gmail_quote">
Nuno Teixei= ra <eduardo@freebsd.org> e= screveu (quinta, 8/02/2024 =C3=A0(s) 10:00):
Ok, let's try other = way:

Suppose that port compiles with c++17. Do you= need to set "compiler:c++17-lang' capability?
No, base = clang supports it. Same for the other capabilities listed in porter's h= andbook.

Dimitry Andric <dim@freebsd.org> escreveu (quinta, 8/02/2024 =C3=A0(s) = 08:39):
Deprecat= ed? It's essential to figure out the compiler type and version, if you = need that in a port Makefile!

How are you going to do that otherwise? If you don't set USES=3Dcompile= r, at the least, COMPILER_TYPE and _VERSION aren't even defined...

-Dimitry

> On 8 Feb 2024, at 08:40, Nuno Teixeira <eduardo@freebsd.org> wrote:
>
> USES compiler is somehow deprecated as clang and gcc on base and ports= supports capable compiler described in handbook:
> https://docs.freebsd.org/= en/books/porters-handbook/book/#uses-compiler
>
> Mark Millard <marklmi@yahoo.com> escreveu (quinta, 8/02/2024 =C3=A0(s) 05:52): > The error on the FreeBSD build servers:
>
> QUOTE
> /wrkdirs/usr/ports/lang/gcc14-devel/work/gcc-14-20240114/gcc/config/aa= rch64/aarch64.cc:13095:50: error: constexpr variable 'tiles' must b= e initialized by a constant expression
> 13095 | static constexpr std::pair<unsigned int, char> tiles[] = =3D {
> | ^ ~
> 13096 | { 0xff, 'b' },
> | ~~~~~~~~~~~~~~
> 13097 | { 0x55, 'h' },
> | ~~~~~~~~~~~~~~
> 13098 | { 0x11, 's' },
> | ~~~~~~~~~~~~~~
> 13099 | { 0x01, 'd' }
> | ~~~~~~~~~~~~~
> 13100 | };
> | ~
> /wrkdirs/usr/ports/lang/gcc14-devel/work/gcc-14-20240114/gcc/config/aa= rch64/aarch64.cc:13096:5: note: non-constexpr constructor 'pair<int,= char, nullptr>' cannot be used in a constant expression
> 13096 | { 0xff, 'b' },
> | ^
> /usr/include/c++/v1/__utility/pair.h:225:5: note: declared here
> 225 | pair(_U1&& __u1, _U2&& __u2)
> END QUOTE
>
> is because C++11 did not have pair constructors being constexpr.
> C++14 (and later) does. Yet lang/gcc14-devel 's Makefile says:
>
> USES=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0compiler:c++11-lang cp= e gmake iconv libtool makeinfo perl5 tar:xz
>
>
> =3D=3D=3D
> Mark Millard
> marklmi at yahoo.com
>
>
>
>
> --
> Nuno Teixeira
> FreeBSD Committer (ports)



--
Nuno Teixeira
FreeBSD Committ= er (ports)


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