From nobody Thu Mar 07 21:25:10 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 4TrMlh6P9Nz5DsLK for ; Thu, 7 Mar 2024 21:25:20 +0000 (UTC) (envelope-from tatsuki_makino@hotmail.com) Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01acsn20808.outbound.protection.outlook.com [IPv6:2a01:111:f400:feae::808]) (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 4TrMlg5kQxz4tKG for ; Thu, 7 Mar 2024 21:25:19 +0000 (UTC) (envelope-from tatsuki_makino@hotmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=cmp0DkD5; dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (mx1.freebsd.org: domain of tatsuki_makino@hotmail.com designates 2a01:111:f400:feae::808 as permitted sender) smtp.mailfrom=tatsuki_makino@hotmail.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cAb5O+ycammYehrTgVorpiaOyfJ8mAe3bhSrxJ78WYDK4c5IUPAQLpQIrfjwhxqiSyiZ+nXZFWcEZ7vWUcUQwg4CuGl86UAZxU1n2AtMgrOrcFAEumIKjbVGwPjIX7jyGQ0FuPEku9IQE3iLLDw5VJ2btzyfshX6GbqK0q/7K5q+fjGmVIOGbBu9KxDsZpDzGZliuOb55ApW0tnMzMspi0RF7c2ndH5NOR5hVbiNpHylANvlztyFwFQ8jX5+7tM0q5RHuZAkJoONdV2BrKNC4EzBj33yyj1U+GYfl9qB7yiabghqaPYL96gC3WB7S5PADu/rfCS3gg1Qm0dcRE2ZSA== 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=JcIFYjaL6ldZPqzj5O0ho/CjYj2mSWMLD9U8Pxrkolo=; b=ZLLli2/o7SXtQJaMPZ0Xb3cn2ryAkCIVvGcZmk4vQS9ooBD3YmXw8NmMhL4MyyBlovo/lpgCGEHiqIV//wVkQW0BELqFjk/cqYxny98Kp9ImAA0p+aijZu3C1iYSyezAywGrcCO1ux/k88IWp2NLPYp/2ZQpa61K9VZbw/Bw4CyVNBzn1VQA/QdaxWSTbrisyDlmP4wd2xBdJv1WB83NzLDLyvJHH97YojChWLWZ/cN8UmQYVBs7uxuIFePfLS2PudxbXVjZTrXaxuVQ/xbPC0SWb8CB6OsBUVd0h/KWME/8zx4iB6yEcXEVesns6XGZV0X40egCLl2P/g7OoG0z4Q== 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=JcIFYjaL6ldZPqzj5O0ho/CjYj2mSWMLD9U8Pxrkolo=; b=cmp0DkD5FgjXFYjiJHLoEASRLqT4MpnHKl9QkiGqan9YlvAdKXsZrPZfBmRZhlEHW9gfZc/vqC3H0JHUrsuaDDaueiSUUG3UJuJS07xE1uCuKpvdBrUjaRJoTJtCAxQKiAa4r7ttVKJKoPO1KchDiJy7A8wlK9BM1tIWvJJxgc+sTtsbRBurkV15lb6WhhqEIFBkmrddrUfw3MtzZBOHFAhgsSZguNJjV4JMcPB8RY1O3lxXZbIlLPgJHIaM79IAZ2K7YRL9CVB7blHheQJCY/AXQpwtT7idKT2p22RQcsLyhhEsiJYyiAmwJ9sDr6AchRSO9LuDU1Fflt0gkAcTSw== Received: from SI2PR01MB5036.apcprd01.prod.exchangelabs.com (2603:1096:4:1f8::9) by TYZPR01MB4356.apcprd01.prod.exchangelabs.com (2603:1096:400:1d0::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.24; Thu, 7 Mar 2024 21:25:14 +0000 Received: from SI2PR01MB5036.apcprd01.prod.exchangelabs.com ([fe80::c37:9a9a:7a46:89ef]) by SI2PR01MB5036.apcprd01.prod.exchangelabs.com ([fe80::c37:9a9a:7a46:89ef%7]) with mapi id 15.20.7362.024; Thu, 7 Mar 2024 21:25:14 +0000 Subject: Using --version-script with clang17 From: Tatsuki Makino To: freebsd-ports@freebsd.org References: Message-ID: Date: Fri, 8 Mar 2024 06:25:10 +0900 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TMN: [z4dhpClL7MvYzulhQUakeq3xGxtzWHtU] X-ClientProxiedBy: TYCP286CA0156.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:383::20) To SI2PR01MB5036.apcprd01.prod.exchangelabs.com (2603:1096:4:1f8::9) X-Microsoft-Original-Message-ID: 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: SI2PR01MB5036:EE_|TYZPR01MB4356:EE_ X-MS-Office365-Filtering-Correlation-Id: 95b4568f-2ea3-4a69-cc58-08dc3eed1386 X-Microsoft-Antispam: BCL:0; X-Microso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Jc09lOXpiRFE4?= =?utf-8?B?b3NOODRXZkNQaEY2b1ZtK3M5WWJ3VVFZVkRMV1VSZnFITnRyMUxmckZLZ3N0?= =?utf-8?B?VzZNOFd0NzFmVmV5cUQzKzlTbVZlaE1kMUhEeHozTC9aWHhlbkRYMitZV3pZ?= =?utf-8?B?VUl0aWJHUmFtNmdxNWFNTXpNSmlyTlNDV1dVb2VTZmIyQTV2YmZpZ3MveEVI?= =?utf-8?B?dDNsd3BhOFpyQzdwQXFOdXpDS2dMRThKQmZpWGMxWTNWZXkwTDJSenV2M2li?= =?utf-8?B?QlMvQlViQmNybURBeXFLdXRSUm9DQVF3aE1ydG5KM25yQ2RWekQyazlDNmtS?= =?utf-8?B?R3ljaWpYbWdZNUxodVFDNjUzWmVsczdlSlZsNEpSSVJwLyt0bVlDVFM5dVJZ?= =?utf-8?B?cktXWWdrblJDR2FCSmR5cm5FQXBCUkR4a1k2ZkJNU2d6NU1Rcm1QVnh1bm8r?= =?utf-8?B?R2I3M0I1WlI1WUhjOWszMVN5VGFzRzdNaGc4b2FEWXNiRUtJL2VwdWYrYnV5?= =?utf-8?Q?DdkwhN9z/ojRE7QjgSdn?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-d8e84.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 95b4568f-2ea3-4a69-cc58-08dc3eed1386 X-MS-Exchange-CrossTenant-AuthSource: SI2PR01MB5036.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2024 21:25:13.8735 (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: TYZPR01MB4356 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.45 / 15.00]; FORGED_MUA_SEAMONKEY_MSGID_UNKNOWN(2.50)[]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.95)[-0.945]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a01:111:f400::/48]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; FREEMAIL_FROM(0.00)[hotmail.com]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:8075, ipnet:2a01:111:f000::/36, country:US]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[hotmail.com:+] X-Rspamd-Queue-Id: 4TrMlg5kQxz4tKG Hello. This is related to Re: How do I clear no-longer-usable packages from poudriere? There are some fixes for build failures when clang17 and version-script are combined in porttree as well. Nothing seemed to be wrong with clang15. It seems that since clang16, the warning to be strict has been issued. clang17 will exit it as an error. dns/libidn Ports that use ld-version-script.m4 for configure, such as dns/libidn and devel/fstrm, seem to have changed their behavior due to the change. clang16 produces the following log, but it is not an error. ld: warning: version script assignment of 'VERS_1' to symbol 'sym' failed: symbol not defined ld: warning: version script assignment of 'VERS_2' to symbol 'sym' failed: symbol not defined clang17 makes the following error. clang: error: linker command failed with exit code 1 (use -v to see invocation) These may be corrected by applying the following patches. Regards. Below is an example of a patch. diff --git a/dns/libidn/files/patch-configure b/dns/libidn/files/patch-configure new file mode 100644 index 00000000000..bf982ce0360 --- /dev/null +++ b/dns/libidn/files/patch-configure @@ -0,0 +1,16 @@ +--- configure.orig 2021-07-22 13:51:19 UTC ++++ configure +@@ -25746,11 +25746,11 @@ if ac_fn_c_try_link "$LINENO"; then : + else + cat > conftest.map <conftest.$ac_ext diff --git a/dns/libidn/files/patch-gl_m4_ld-version-script.m4 b/dns/libidn/files/patch-gl_m4_ld-version-script.m4 new file mode 100644 index 00000000000..83c00f27181 --- /dev/null +++ b/dns/libidn/files/patch-gl_m4_ld-version-script.m4 @@ -0,0 +1,16 @@ +--- gl/m4/ld-version-script.m4.orig 2021-07-22 13:49:04 UTC ++++ gl/m4/ld-version-script.m4 +@@ -31,11 +31,11 @@ AC_DEFUN([gl_LD_VERSION_SCRIPT], + [], + [cat > conftest.map <