From nobody Fri Feb 09 09:26:51 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 4TWT5T1g0cz59MVY for ; Fri, 9 Feb 2024 09:27:09 +0000 (UTC) (envelope-from developer@lorenzosalvadore.it) Received: from mail-4317.proton.ch (mail-4317.proton.ch [185.70.43.17]) (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 "protonmail.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TWT5S6ktHz4kwp; Fri, 9 Feb 2024 09:27:08 +0000 (UTC) (envelope-from developer@lorenzosalvadore.it) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lorenzosalvadore.it; s=protonmail; t=1707470824; x=1707730024; bh=4qtOuZzggIQZGkOmYjXrij0DfnD6nD3GextVK1wfVdg=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=cgbvhcBg/e6CUMqY+24HDICuWSIt+WcBlUN+p2s8ahLB1GSruP0/k48mgIvIEn9ZM iMEgJUB+uYqNE9feOLot2d3QICsntmJDDer+Q0cMbTZKt30UeGnb+MuvMVSt/bglzy ZwWsXyUdCQCi1kAwocXiOIxgMXPOGcKENKa+/wIWMVUQoftMujANN7ImQGbN96otke SjugeSUGbodstcR9Ygu7aNYqHhZv4axKEJonwDuTc1ZN2IIneB4OTNQ9DSrBzGk9yU IFQv6uTIb7fPMeZqzTHmWFuyv/3USdOv2chdBUjBE5JH4owwviMkw4TkeYhWTqsjkg //lxLMFornbUA== Date: Fri, 09 Feb 2024 09:26:51 +0000 To: Mark Millard From: Lorenzo Salvadore Cc: Nuno Teixeira , FreeBSD Toolchain , FreeBSD Mailing List , "salvadore@freebsd.org" 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 Message-ID: In-Reply-To: <44DFB4DD-3DAA-4F6E-AA45-267A6496EE7E@yahoo.com> References: <62C8F08E-8D73-4918-A91F-4FC01E94FD8A.ref@yahoo.com> <62C8F08E-8D73-4918-A91F-4FC01E94FD8A@yahoo.com> <44DFB4DD-3DAA-4F6E-AA45-267A6496EE7E@yahoo.com> Feedback-ID: 53711648:user:proton 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4TWT5S6ktHz4kwp 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:62371, ipnet:185.70.43.0/24, country:CH] On Thursday, February 8th, 2024 at 18:11, Mark Millard = wrote: >=20 >=20 >=20 >=20 > On Feb 7, 2024, at 23:40, Nuno Teixeira eduardo@freebsd.org 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 >=20 > Use of the likes of >=20 > USES=3D compiler:c++11-lang . . . >=20 > also causes the compile commands to start with: >=20 > c++ -std=3Dc++11 . . . >=20 > ( as shows up in the log file for building lang/gcc14-devel ). >=20 > 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. >=20 > Using the likes of, say: >=20 > USES=3D compiler:c++14-lang . . . >=20 > would also cause the compile commands to have: >=20 > c++ -std=3Dc++14 . . . >=20 > that would be provide the constexpr definitions > needed. Later C++ standards also would provide > those. >=20 > 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 .) >=20 > I expect that slavadore will pick a notation that > is sufficient for the builds to work. Thanks for the suggestion. lang/gcc14-devel is having multiple issues at the moment (and I still need to finish the GCC_DEFAULT update to GCC 13 exp-run), so I might need a bit of time to fix this one, but I will definitely have a look into this as soon as possible. Thanks, Lorenzo Salvadore