From nobody Tue Feb 13 01:41:04 2024 X-Original-To: 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 4TYkZ074wrz59S3c for ; Tue, 13 Feb 2024 01:41:12 +0000 (UTC) (envelope-from mirror176@hotmail.com) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10olkn20800.outbound.protection.outlook.com [IPv6:2a01:111:f403:2c12::800]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYkYy6hMTz4qG5 for ; Tue, 13 Feb 2024 01:41:10 +0000 (UTC) (envelope-from mirror176@hotmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=lS24oR82; dmarc=pass (policy=none) header.from=hotmail.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (mx1.freebsd.org: domain of mirror176@hotmail.com designates 2a01:111:f403:2c12::800 as permitted sender) smtp.mailfrom=mirror176@hotmail.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TTVo2pWY/3lMegJsfLA/CbxtAiL/GZqUB+bGG0E1PQ7lWnkoBrD+59d3/g5TebQsNZuVRl4bcNWNx4SpDdtsyy2GqfzLrxhWvO4HC1oaNsQSkxw8BmsfH+tNLAYJiXdtx9YXRKAdwGOUdfR3RlVNJEuO8Kz3mFsP59SZvpaWYASCNui9RcPFDmUoRZk5YOCQ07hn6WAWV6v5uWnNpx2jJYaUvQDqDbRAOU7fpBWuIdmBP2iovn5RsRlYcCndsk7fo2ZE8DqPF0lywe4nQHDthK0jLtWe+Y8J/Fm6MS8mVOxkHsoNxXJymZkYlRuhpRcb3Da9mFWVB8vsObt3y4VAQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gpbgJGUB4qHBOE8Ba8ilSSn+a15ou1xHbsZaOiTqrZA=; b=JNkKEF7SfCtLyLDRAAPyoyKavfc08kLMzSc3YHZdc0OBlRsNHeZ3NL/b0Doyl0wksR9UVuUuB11J0fd9ImO9y9uW/geIGwyfWtkVln8zIu7gVjM4Rcir0nhg87VjAtz5/H0kfWd+h2a+v8Y9DZ6RNJaLs4I4ZQjwccHBPmKO8tAHWXpZQQ0AEV2KkkYgKat6LATpU2ZUBRLcRSKBg0pQB8agaz0bgJPe6o94cDMGSoG6msfch5BX1my7zz41DgVYMfOPGs410jtnJegEuRkHeIcHNrO4wE9iztzeqnF9GqKEm0rQmNdqKIocLImPWXvlnBdLWUnlVvPuu48aVPdnOg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gpbgJGUB4qHBOE8Ba8ilSSn+a15ou1xHbsZaOiTqrZA=; b=lS24oR82+OcmtPwfeRxR60Ep30HFOdfG4eK478tau5UZ5P1yLJdxjn0A8y1URhOQwrbEZJ8tg+pQk5uO7k2uaftLFlTvKgFWIW6u8cJEJ+UxGroObV1RFFSXiHXXnS8EBqNS8QGF/oeBQnJTIvkNa56cnAAKud7GgkYrWkwMI3q3sahVptyBouDHoJaoT4cX/CtfHnoXAJUR12U5VDq32GnkLXYknGiAbgkmqd/9jSm+PN6LTscQ1ZG0v5gDeutG3MuACWpQrog6uovTXXQ96LCph7GZVN5xoFrHPVHzw3cZU17PDHUyciOiwXwNBdDQpuUvEw6C/CaqoBd4trYVvg== Received: from CO1PR11MB4770.namprd11.prod.outlook.com (2603:10b6:303:94::19) by PH7PR11MB7608.namprd11.prod.outlook.com (2603:10b6:510:269::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.39; Tue, 13 Feb 2024 01:41:07 +0000 Received: from CO1PR11MB4770.namprd11.prod.outlook.com ([fe80::ea8f:5d06:d3e8:c9cf]) by CO1PR11MB4770.namprd11.prod.outlook.com ([fe80::ea8f:5d06:d3e8:c9cf%6]) with mapi id 15.20.7270.036; Tue, 13 Feb 2024 01:41:07 +0000 Message-ID: Date: Mon, 12 Feb 2024 18:41:04 -0700 User-Agent: Mozilla Thunderbird 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 Content-Language: en-US To: ports@freebsd.org References: <62C8F08E-8D73-4918-A91F-4FC01E94FD8A.ref@yahoo.com> <62C8F08E-8D73-4918-A91F-4FC01E94FD8A@yahoo.com> <44DFB4DD-3DAA-4F6E-AA45-267A6496EE7E@yahoo.com> From: "Edward Sanford Sutton, III" In-Reply-To: <44DFB4DD-3DAA-4F6E-AA45-267A6496EE7E@yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TMN: [eca6LhQhiSLFDBhIQFcKL2uvqXRggZAY] X-ClientProxiedBy: BL1PR13CA0209.namprd13.prod.outlook.com (2603:10b6:208:2be::34) To CO1PR11MB4770.namprd11.prod.outlook.com (2603:10b6:303:94::19) X-Microsoft-Original-Message-ID: <3f44657e-b690-4656-adf4-f1013bd2146f@hotmail.com> 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 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR11MB4770:EE_|PH7PR11MB7608:EE_ X-MS-Office365-Filtering-Correlation-Id: fb856c7b-b56e-46fa-9e0a-08dc2c34d920 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: n78+oVfvlIvPHgVXwn9TwbFRRGLSQUCCxzNezEhAqAPx880G73T4jCUnpKvsPo1kQI8z75jPVHTXBRctOBxvAKNiv2S9+Qgw8FE+9pXvfqnOOmvunppv9QFje0gly4/hKvGdJyi/Kvfyks3AZ1ZsEsphx4Qsp7164OMOAMdfzTLY4DMzR2YOC3654eIcg47os20hy57ZIhz+65616HisXX58anNr5R7gTDnyYH+QIlkkDqYnbuyUkUpnrkStO8Qj+EJ3oXqCt7TvDl+h7moCG54IUGybbgPbNPfCeyKP0KVENFWGT2C9CZLGCJT1ucVCu9Osk88gDH2dacKAkCd4SKBTlef0mfW5Q0soYQ1D4Iptid6YHxBeHBVE/xmUVGR0MqfRLzXqoJwRGvT818gFwD/Gt8UmQrQrc6VzCoMzYRvRycTVyZ+kaNylmHkB8BX4JVg5wnPGZEUfQ3dqjS6x8l6alhqHiOyO0Yl2Kd2rCP1Gy+0JsE/9C4zPojzh1MEwW5ZKXdFyNryfCggBYeRnNBd7aDABXwCZpVQ1iVKwkQiT4l/neIDNlGvwBF+IRSN7OlK5b3wyRmHOgpBcqKCB0ts3iyS1wVQZzhCmdlE8ZyE= X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WnhzUlhrUUVFQ01kd1BQSlNjU0Zjc0lPbDl3cE5wNVFjQXhLdnd1clBoczFs?= =?utf-8?B?K1d5T1FJRTdJUyt3NG52OFJPR1Q1RjNxalZJMnBDaWtVMWhENUNsdEFISUlw?= =?utf-8?B?L0loZ0p3Ylh5NlZZVEpWRHMvYWx5R0VBc0xGcXJPN21SSFM0R3VFcktURmhP?= =?utf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EeExEaHE3eDQ0b0I1YUZhaktUMisr?= =?utf-8?B?ZkZFWWpyS3dkaHp5S1VsSklXL2paNEhQMGtaQkhFdGpMdFZaSXovM0VSWkpa?= =?utf-8?B?V1cvSW9JOXJORE82QzZOam1EbmpPRC8wZTlQN1o2SXRuSUp5Yi9sZk12NE01?= =?utf-8?B?VFUxQUVURVVMQXRFMXltditkWnVTVmdyUUtJN2Z1WC8rbndNTytIa0h2QnMx?= =?utf-8?B?OFVjdTVFYmFxUDI3THFTVVR2bnNlbmkxNlpJRm03b0cwdEpxRGs0MmFpcm9V?= =?utf-8?B?NmF6MDRvK3FjdXZZY1EzUUZyS1VDRVVnNUpNMVVSK2VmN2NNWG5OMzlMV3hF?= =?utf-8?B?MkxyaVlhckpPMzI5WkEyc3ZxVkpyOVMzSkdJTVhkTXRWekhBZXJhTXdaaGI4?= =?utf-8?B?TzNpRDRuM3lPOXdyQjFYaHA1Z0lIaFRqcGxJenBNYlRpT2YrTDF3QmM5ODhT?= =?utf-8?B?dEFQS29xKzg0NWl2eFNza0xFbE40TTM1Vnc4L3luMFBFRkVmM3VoWmRvZmJN?= =?utf-8?B?VUZJamppSUFoOG5iVElSWVpSM3ZHbkM1dUZJT1RhS2ZmSDdZblphVnVCbVc0?= =?utf-8?Q?ie5MFQjAUoceUHrlwHBF3l5uS8SuYK3zkG7UYhJT3sA4=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-e8f36.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: fb856c7b-b56e-46fa-9e0a-08dc2c34d920 X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4770.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Feb 2024 01:41:07.5954 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB7608 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.49 / 15.00]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; R_SPF_ALLOW(-0.20)[+ip6:2a01:111:f403::/49]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; RCVD_IN_DNSWL_NONE(0.00)[2a01:111:f403:2c12::800:from]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_FROM(0.00)[hotmail.com]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8075, ipnet:2a01:111:f000::/36, country:US]; MLMMJ_DEST(0.00)[ports@freebsd.org]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[hotmail.com:+] X-Rspamd-Queue-Id: 4TYkYy6hMTz4qG5 On 2/8/24 10:11, Mark Millard wrote: > > > 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= compiler:c++11-lang . . . > > also causes the compile commands to start with: > > c++ -std=c++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= compiler:c++14-lang . . . > > would also cause the compile commands to have: > > c++ -std=c++14 . . . > > that would be provide the constexpr definitions > needed. Later C++ standards also would provide > those. > > It is true that the default for -std=c++?? may be > -std=c++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. > In trying to get up to speed again on how things are done in the ports tree, I wish this content was better clairified in the porter's handbook. I have been confused by seeing the USES entries with things like c++11 then finding the port is building a program the original authors set/updated to c++14 through a cmake definition. I figure in that case that either it should be left out of the port's makefile as the cmake author is maintaining a correct definition or should be copied out to the port tree's makefile. Copying seems error prone and effort duplication if it wasn't needed to override the original and I didn't think this was intended as an override as much as to add it if missing. Should many of such entries be pruned back out of the ports tree? Is there any easy way to determine/warn port authors of redundancy if it is not desired? >> Mark Millard escreveu (quinta, 8/02/2024 à(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 initialized by a constant expression >> 13095 | static constexpr std::pair tiles[] = { >> | ^ ~ >> 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' 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= compiler:c++11-lang cpe gmake iconv libtool makeinfo perl5 tar:xz >> > > > === > Mark Millard > marklmi at yahoo.com > >