From nobody Thu Feb 08 08:39:54 2024 X-Original-To: freebsd-ports@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 4TVr5T0pCXz59HKH; Thu, 8 Feb 2024 08:39:57 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 4TVr5S70KBz4VRF; Thu, 8 Feb 2024 08:39:56 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707381597; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MJAbM1nJxAJxHd6ncDWWPUTpfpgSoRHiRJ5FPZzaKtg=; b=Zt/9TID5d5jLqqElBKHe3ovFZFJv2nRkxto3X+pxWnIfvut/MsSgQZIEj/IMLifk76gSaS hLmIcT4SHd6rzRW8o8Ow9cbK4WLYWcvhdEuK5ggKvycogM3HIVDu2ilmewYnA8FJjF5YA1 d4UQjB+IqMtMmFTwkNBZCEJG1m+n9rNJla31/BnvzJbbZMAH1KBcPslLcUXObEDz2GtVjI Exn3w9UABSpcenTIOQSOBpfJJlE66lSE3QxYuv+9wOLdhotL+Y2Nos1otPrnNHyADtfUDZ HBZoch0FxneLt6PyDb0ueE+NbQa46VzzR0q7oADKg8YIhDw/NP4IcE+2RAjNIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707381597; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MJAbM1nJxAJxHd6ncDWWPUTpfpgSoRHiRJ5FPZzaKtg=; b=XwbtiQBSV/1wIXR9Kfd4x5Pk46SvA+NV36JkIKTrzPLsbQ3ULpASYA2CXlJQLkwE5M463H EIC/PM+uYOWjvi8V6Ax4hcjFENov1SZQRzgBjsYwXxkI/uPM9LtA9ziXO6mbNciWNuui9H PCErsgN6N3JGERHv6hud/tGqrmhzujv3RK1pGFsI9bXeZAhaO0X9xDtPf9LeT/oTUa8673 NzEKeOzSKj5MyUBA740FTIYFY+fuJcFaG3WgxptVsw3Taz7T79JxADgAKDg7W6FQ7oTpK5 IB4tZm5czQgTg5/iSTU7uNG0u94ZyzbMZpnxO6gfb+Vl5stxDhxwZ/rNQPt5/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707381597; a=rsa-sha256; cv=none; b=xL0IHp6eGVGZtkgrP8aMW0PHgTNg4VdnmmRDy7PtEgtWr6tAnii4XeS4F/4chcmT+w++7t zZrP62c+bmPjo+dzeNT+t3pV8XmsZZbyLATVYKwW1rrwhtJ0CTS0DvWmuoZxoXa4NBxh5C mDgiIuro/6F/gTVNchsE5D3xd/F92UjzNi2Rx42Ls07Bz7tCbTPkVkStC3Ngvrl2APxXn0 kI/J47Y6k2+vbShRdZgCq3RwGK0HAZeqKAP4iT9cNf3UXrq0d5S/Br9H5NXyWrrzG8zo9L M2mg+d8f5Me/A8ukjkOL2K2GFI/sDAFCrqrWcoMik5NgmOFA12I3Uj2fDo+42Q== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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 (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4TVr5S5C13zNxM; Thu, 8 Feb 2024 08:39:56 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow-wifi.home.andric.com [192.168.0.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id ABE9359F63; Thu, 8 Feb 2024 09:39:54 +0100 (CET) Content-Type: text/plain; charset=utf-8 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6.1.1\)) 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 From: Dimitry Andric In-Reply-To: Date: Thu, 8 Feb 2024 09:39:54 +0100 Cc: Mark Millard , FreeBSD Toolchain , FreeBSD Mailing List , "salvadore@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <2B9415F3-80C7-4B48-9CF0-7F1FD0BE3FEA@FreeBSD.org> References: <62C8F08E-8D73-4918-A91F-4FC01E94FD8A.ref@yahoo.com> <62C8F08E-8D73-4918-A91F-4FC01E94FD8A@yahoo.com> To: Nuno Teixeira X-Mailer: Apple Mail (2.3731.700.6.1.1) 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: >=20 > 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 >=20 > Mark Millard escreveu (quinta, 8/02/2024 =C3=A0(s) = 05:52): > The error on the FreeBSD build servers: >=20 > QUOTE > = /wrkdirs/usr/ports/lang/gcc14-devel/work/gcc-14-20240114/gcc/config/aarch6= 4/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/aarch6= 4/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 >=20 > is because C++11 did not have pair constructors being constexpr. > C++14 (and later) does. Yet lang/gcc14-devel 's Makefile says: >=20 > USES=3D compiler:c++11-lang cpe gmake iconv libtool makeinfo = perl5 tar:xz >=20 >=20 > =3D=3D=3D > Mark Millard > marklmi at yahoo.com >=20 >=20 >=20 >=20 > --=20 > Nuno Teixeira > FreeBSD Committer (ports)