From nobody Thu Feb 8 17:11:10 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 4TW3Rg0j2fz5B32V for ; Thu, 8 Feb 2024 17:11:27 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic311-24.consmr.mail.gq1.yahoo.com (sonic311-24.consmr.mail.gq1.yahoo.com [98.137.65.205]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4TW3Rf56nkz4XLt for ; Thu, 8 Feb 2024 17:11:26 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1707412284; bh=cwT2YloFuIg9STZi3WNEzpVTjiKXOn27OvImgowNudA=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=l/A9LELyoT3XriO3QGmW/r0+eCMNUd5w3GoXTfkcE/Qb/QshJdIMS7q17cA/1IJ8wKgQJc/UHyUMIYNHKZQ7zN6yDyD47yCPaic9d5E0KuWAVoPiDgPULJ22OL9ZyJiTx/+BhymfZ5Ha45pYhWNgfjQtbeQFXR7gmQwyQFX0X6grL/aycJRUdX675kCBNg/GKT+2fWzeDUdGr0UAN4/ZHY4iAXauNqBNgFvrDijJYnTk/N46wTOvhWH0FDlWzsEpGTMNxvIIF4goPqIOMyXAtmJjweXbQAePAEhc208Eo+xkuBYLvCIaWrYxvKEqFPSdHkuhmd2VTOnETGQVU6LpLg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1707412284; bh=kdmIt0c4nkZns5oOcU3qfKLX5rB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kHqFG6D3MQFLiSoqWeWPpvX U8_bIXhL9X9YLhUhM7_YFRPX9gO7P5.zCx5xJHaMGZTIA6GbW1XT7Ro4jroaGFH2umkDLJpa9IvM KOSdoTlORSugKkTmpcS2DE.HSB7cXfoYpSbYRyVNgK0.Z4FHFrhGi9GIoEjxKcz7r98e3LR5k6Sk L7wIb2vC2UhGiWYdkRyNWyICZb929AhiuwvaUdpFBEmgG.DkK0ajBh6.X.kpzqNwdq5U4fHHuTAA yFCOhxhytFd0Si4s6sfTbaOs0EPqDO5gGwuKTUZJKCYaTBPEuohw00HENex7fdDHIMl2udWJ1Z8T zUx.yReGBFXUjkueID4ZnQLFvAzOncHKIsQyaEu6gUMuKcHtl7EXLYUQGsBmhMgGpYsUIPryPmTa A5B9SLayECNQLv3UnAJAtFMpNpn_nwy4PuDPm5H2Y8x6urGLdfKlhYuiyxFPaNH2iNN3JrbYzN3r fkQa6K6yC1p8O0zIi5Y8qQGvJEZWQPWKPdymw_fz7M2aSFcXz54wLBNdy8xgqM7iJSnoev6sZYPj 9g4dajeD21QqCDwZP4yCrlsE6KzBq9lLfGoeGntT2OEVmTazF_H2WTgmW9dOJQ8UZ89XzPFt.vHI 8 X-Sonic-MF: X-Sonic-ID: 18b7611a-62de-4627-ba1e-daf6b67da5c5 Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Thu, 8 Feb 2024 17:11:24 +0000 Received: by hermes--production-gq1-5c57879fdf-hrd4s (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 9c894a482bfabf76bc8770db93a080ab; Thu, 08 Feb 2024 17:11:21 +0000 (UTC) Content-Type: text/plain; charset=utf-8 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 (Mac OS X Mail 16.0 \(3774.300.61.1.2\)) 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: Mark Millard In-Reply-To: Date: Thu, 8 Feb 2024 09:11:10 -0800 Cc: FreeBSD Toolchain , FreeBSD Mailing List , "salvadore@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <44DFB4DD-3DAA-4F6E-AA45-267A6496EE7E@yahoo.com> References: <62C8F08E-8D73-4918-A91F-4FC01E94FD8A.ref@yahoo.com> <62C8F08E-8D73-4918-A91F-4FC01E94FD8A@yahoo.com> To: Nuno Teixeira X-Mailer: Apple Mail (2.3774.300.61.1.2) X-Rspamd-Queue-Id: 4TW3Rf56nkz4XLt X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] On Feb 7, 2024, at 23: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 Use of the likes of USES=3D compiler:c++11-lang . . . also causes the compile commands to start with: c++ -std=3Dc++11 . . . ( as shows up in the log file for building lang/gcc14-devel ). It is not just about which compiler execuable that is selected by the notation, it is also about telling that executable which langauge version it is to apply. libc++ in turn does different things for its definitions based on which standard is used by the compiler. Using the likes of, say: USES=3D compiler:c++14-lang . . . would also cause the compile commands to have: c++ -std=3Dc++14 . . . that would be provide the constexpr definitions needed. Later C++ standards also would provide those. It is true that the default for -std=3Dc++?? may be -std=3Dc++14 or later. But some things fail for use of too recent of a standard because of changes in the standards as they progress --so the defaults need not work. (I've no clue of the specifics for building lang/gcc14-devel .) I expect that slavadore will pick a notation that is sufficient for the builds to work. > 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 =3D=3D=3D Mark Millard marklmi at yahoo.com