From nobody Thu Feb 8 07:40:17 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 4TVpms4cn8z59BNS; Thu, 8 Feb 2024 07:40:29 +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 4TVpms4Bxvz4Q2V; Thu, 8 Feb 2024 07:40:29 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707378029; 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=bxyD5/txW06zuQunLUG1U3G87Ar8fugo+MYpRoBLVoo=; b=MloPbSycQ49rSdmEj10Y5VaVqd6qEegREIW0sUz53Yv8ZgFvq/11USE1190Igfvo3HtU0Q nH1nP11M56BzTM24MbTrg0TQ/vcwI5fS+JqeaLnxic1DnNUcHH45S0sVJNwrHgwCLysHTl NFJy7nyn3c5JPzESTLNX9fYzm5hs+a01Fjcg62yXpX2oZcepe/RaPlHLV9RZDt7MLC29QP GoT1oWR0XEAnRq1yQTHCIR4j6Eyhf6fZHPzGIBCoD65D88CPgGz6WANf0e6PMAdieqti6v 1Jb+fvHfdvL3A5H6zFjsly0l6NMiZq6HN5E2GgW+JQKe6moOyaxYm6cFDgp1Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707378029; 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=bxyD5/txW06zuQunLUG1U3G87Ar8fugo+MYpRoBLVoo=; b=mnKK8K4IdeSssYn+jADXY/+1IKFJ/ukeMGQJ5CLHzkDvq7CAMaVFXvV5tH3WbG7BVzEOm8 2i2AfhroE2tL03ccKKkZlbavp/phCn32LVagSugJpVcbwneV63i+w0u7jFi0cdPgBvBYCB 7+xu94rq7pJTijTNewhx/hjMhVJOZ19USWhAUGkxOM3AbwwiDgIoICriQ1jCqt7IQir9fA ZERNuhB3IqhO8gVKQKBhXbkkdKGWWyrSSKQQbKq/nwFcXviPtZ6y//zuvn8R+FYHywHw9X 8QDuMDegxnb2Qcj910GL8UX9oIHARHvmigGpXGu1bY0YwUkK7m0kpTQB+Eixiw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707378029; a=rsa-sha256; cv=none; b=cGDgdmJG0eVhc0l76zZ8asBNpuP93Ri7F39jS6MSTCzrBbJ3JYdSxYaH5U0Fk5krG4QBAx OJ/RheHhd9KosOjoBqnF+R5SBEUglfBOBuumMTtTS3FhbG6qrp6xDJb8IPVwy+oqzquSRl Q+N/N7Ag5Fel6viYaDL5VcD/BsWEvYX21Ueu61KDMZEQoMsQ6isRGDiMXuAmj0yssxwjAD O88IcPtzs0xKSIM8U6rnJ/bIbPufKWudCb4X6YLo2RNs+UOG19TCbYv5cms7I1yubUcQpI 9XedGpuZiLtH+tjg9alNf8V27cjNi0zk40TbNDVjGGBQbYJqFTKdP2C36Z5pvw== Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) (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 4TVpms34MlzMr0; Thu, 8 Feb 2024 07:40:29 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-42c44a3e49dso5231781cf.0; Wed, 07 Feb 2024 23:40:29 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWMRZ/Z8Wk2MVoyyEo+xvjLTc7U2eZyZ8O+YD+bGiFhW5vucoAfpHuq3b8i3OuZChmS2ezbxguBOV7QJ0+6zVseW/1lIY3re5pseAK94f/MawXofOD3kpm/9A0CoPJeAQ0= X-Gm-Message-State: AOJu0YxkMiHXt+DiMRThWJ8+sk/iVmK14MuQJ6Wx7W1KvvmzKF3Uwjs+ ACWbXVzqs/dLmOKmrcqYHGmHw2+34K8X5nAwotwbh0oAXfR1AnzNjLzJjLC0izIyg9Sl1Xl9anR tTZ0JIZbOWqr57dUeS763iFBqK34= X-Google-Smtp-Source: AGHT+IFQ7J/4Yqc+W0b7nAws1Tx+8qliW/i9nwj5ZBhw/bxwILnl6DYHCmLS9cOc+FKVmCY5EllRxk2EqOPPY0AUCZ4= X-Received: by 2002:a05:622a:1985:b0:42c:501c:2061 with SMTP id u5-20020a05622a198500b0042c501c2061mr80298qtc.12.1707378028679; Wed, 07 Feb 2024 23:40:28 -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> In-Reply-To: <62C8F08E-8D73-4918-A91F-4FC01E94FD8A@yahoo.com> From: Nuno Teixeira Date: Thu, 8 Feb 2024 07:40:17 +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: Mark Millard Cc: FreeBSD Toolchain , FreeBSD Mailing List , "salvadore@freebsd.org" Content-Type: multipart/alternative; boundary="000000000000e596e60610d9ecb3" --000000000000e596e60610d9ecb3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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:5= 2): > The error on the FreeBSD build servers: > > QUOTE > /wrkdirs/usr/ports/lang/gcc14-devel/work/gcc-14-20240114/gcc/config/aarch= 64/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/aarch= 64/aarch64.cc:13096:5: > note: non-constexpr constructor 'pair' 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 compiler:c++11-lang cpe gmake iconv libtool makeinfo pe= rl5 > tar:xz > > > =3D=3D=3D > Mark Millard > marklmi at yahoo.com > > > --=20 Nuno Teixeira FreeBSD Committer (ports) --000000000000e596e60610d9ecb3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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-com= piler

Mark Millard <markl= mi@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/aarch64= /aarch64.cc:13095:50: error: constexpr variable 'tiles' must be ini= tialized by a constant expression
13095 | static constexpr std::pair<unsigned int, char> tiles[] =3D {<= br> | ^ ~
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/aarch64= /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 cpe gma= ke iconv libtool makeinfo perl5 tar:xz


=3D=3D=3D
Mark Millard
marklmi at yahoo.com




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