From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6EE4843260; Wed, 1 Nov 2023 13:57:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1C18840151; Wed, 1 Nov 2023 13:57:48 +0100 (CET) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2081.outbound.protection.outlook.com [40.107.13.81]) by mails.dpdk.org (Postfix) with ESMTP id 81C22400EF for ; Wed, 1 Nov 2023 13:57:46 +0100 (CET) ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=lVx5jxAcb5TmzJw7aDloU3oTftxtbD1VgA2BwoVgZxYyZxNPp/cKa/lfAwDcH1wLMbpKwo7NK1EGq1nhKhAhhodW8R/K0MwF+ZbRtJd6RvtP5WwiP4RNkBaVTfn0qOfhQWgqhGzGeQoD/IvT5W6wGwd8PFKn2ry5xIZCtTeF4d9isYdZRI1b3QdEuV+bBnyLcQeTmPiAYA6xoaninAVwItv0fUGWUUIqAn9wkXeKI7jlK17DcY87+HS3+WTm+6XbqE1IpwQ3h3V2B0q/GpUPQh34wMzow02eEqnu8sx8quzw7MNSRZ2LBW6qNh6yvM8sR6Uh+h7Q+x8bYEkMAZd+Gg== ARC-Message-Signature: i=2; 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=seo1NC960yhrMS40B/2zNsNejMgP0OcvfZ+AHTuVs7k=; b=QR7WgH5ioDaqFR+cze0pa2Cap2osiEfx10/O2iQqXhtCdlpSh2d7Bmju0qRdnHkEkTKu6DqDmt7WGqQUUwPPrGFEXidf5Q6H7cVTSQKWfMc5sY1dXYymQbDWVOHciJF/mr9JpVgM6mOi2m4S3SpY6vxGA5sPkygMyTdJRo50ZVkUO1NNOYbBYIejWfvsCz5Be6UKjx1ZseEa7euSnihubopWJAIGtM9XjtqVxOgskroPEeVZivxFwv9TYXpf6rigLClFMMDXdyqJpJ8kBXN21k6pcxkCYQPnGy/1Qly/9H8eSQJHTpjg2FC6nJC39XoPSMBlTDLh/10nmUKGpVY3GQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=dpdk.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=seo1NC960yhrMS40B/2zNsNejMgP0OcvfZ+AHTuVs7k=; b=WoYoU9Ox6KmsR+Hq0gNgyVHtpXHfefSSmplYkOdhQyYJdILauJuEjjJX++QQN1a8HIwjgoxLI/OhUIxQ79kZ+b8XyTE9xB9Dh5azIxvNX1EC1sSu49BacAEL6R+FY4ZbBlyyPk/JsscZgcnCYM9TVWmw3Yg1Dx3fqNx12F4UUqM= Received: from AS4PR10CA0029.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:5d8::18) by GV1PR08MB8009.eurprd08.prod.outlook.com (2603:10a6:150:9b::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.29; Wed, 1 Nov 2023 12:57:44 +0000 Received: from AM3PEPF0000A797.eurprd04.prod.outlook.com (2603:10a6:20b:5d8:cafe::d0) by AS4PR10CA0029.outlook.office365.com (2603:10a6:20b:5d8::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.29 via Frontend Transport; Wed, 1 Nov 2023 12:57:43 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM3PEPF0000A797.mail.protection.outlook.com (10.167.16.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.19 via Frontend Transport; Wed, 1 Nov 2023 12:57:43 +0000 Received: ("Tessian outbound 5d213238733f:v228"); Wed, 01 Nov 2023 12:57:43 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 8071ab9b7a0de460 X-CR-MTA-TID: 64aa7808 Received: from e92c4f166b1d.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id CF76B0AD-83DF-4F8D-897C-A8C6ACC19F8C.1; Wed, 01 Nov 2023 12:57:36 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id e92c4f166b1d.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 01 Nov 2023 12:57:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Uk51xXhP5eaLB6sNOgbyHLxLCG32PImI3+iz/ikIc3gAEYkZZw0ZmrlJ2fczM2tqzpGt3VWgOEqR+ZNyUUJSCGEqmnhAYxXQmoIJxJDj0i/k7qZZE6mFNJs5zrih2VOxTxuV3RglC/DeJg4K+fhADJDYzHyaoa8nJTUEYOyj8BIlAf0sArD2KUQBAPUrXYqmaIjHaUmbjaQrFl4K7yQkpiVvJsvcnX3NVtdSFhQ+Q7AAsTLErv55C73dIa3A0NIOF2vovOpEb49K/QXlFQJRw8CW9EY8+MDfaRbGzfKkL9dM1bXyxinJVQu09CbOB7zTZqY5KHwkOOEVfL1xVGqArw== 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=seo1NC960yhrMS40B/2zNsNejMgP0OcvfZ+AHTuVs7k=; b=dw1NpK2RbDqAI1WPP9Ym3XY700RxfjPuNOOn/ANiZ69w/qqFgIsma0OYt7ab5yzqfs4RMdCsWZfh7kMbwKADBo15U1N3QdlfUheLoIAVwlRqSp0d22wkreuU38SvXa29wWbYDf5JygbemnTx9WRE0moDPU4tNzVUfbvI7r/PJij7pAcrxxaBs7FlRgT+YvgH9o0nj1uyR0TV0Niet/QWWX0UKjk9XgAtw00RFtP5peQ7XJtTz8ZFvzIj1evk1MxNlBf6C3/ouvbWZ+XbC2kULQwbczHO94hOEUbsC/A7JvW4eT4VOTGLEXRt900q198HBZDAQ+ChNCBPvyBd/9VmEA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=seo1NC960yhrMS40B/2zNsNejMgP0OcvfZ+AHTuVs7k=; b=WoYoU9Ox6KmsR+Hq0gNgyVHtpXHfefSSmplYkOdhQyYJdILauJuEjjJX++QQN1a8HIwjgoxLI/OhUIxQ79kZ+b8XyTE9xB9Dh5azIxvNX1EC1sSu49BacAEL6R+FY4ZbBlyyPk/JsscZgcnCYM9TVWmw3Yg1Dx3fqNx12F4UUqM= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from DB4PR08MB8151.eurprd08.prod.outlook.com (2603:10a6:10:381::16) by PA4PR08MB7593.eurprd08.prod.outlook.com (2603:10a6:102:26f::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.29; Wed, 1 Nov 2023 12:57:34 +0000 Received: from DB4PR08MB8151.eurprd08.prod.outlook.com ([fe80::1849:6962:44ae:72d]) by DB4PR08MB8151.eurprd08.prod.outlook.com ([fe80::1849:6962:44ae:72d%7]) with mapi id 15.20.6954.019; Wed, 1 Nov 2023 12:57:34 +0000 Message-ID: Date: Wed, 1 Nov 2023 12:57:31 +0000 User-Agent: Mozilla Thunderbird Cc: nd@arm.com, dev@dpdk.org Subject: Re: [PATCH v3] config/arm: update aarch32 build with gcc13 Content-Language: en-US To: =?UTF-8?Q?Juraj_Linke=C5=A1?= , thomas@monjalon.net, Honnappa.Nagarahalli@arm.com, bruce.richardson@intel.com, Ruifeng.Wang@arm.com References: <20231009095325.86444-1-juraj.linkes@pantheon.tech> <20231025125714.132793-1-juraj.linkes@pantheon.tech> From: Paul Szczepanek In-Reply-To: <20231025125714.132793-1-juraj.linkes@pantheon.tech> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO2P265CA0402.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:f::30) To DB4PR08MB8151.eurprd08.prod.outlook.com (2603:10a6:10:381::16) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB4PR08MB8151:EE_|PA4PR08MB7593:EE_|AM3PEPF0000A797:EE_|GV1PR08MB8009:EE_ X-MS-Office365-Filtering-Correlation-Id: 59c4d897-7a90-4733-7820-08dbdada23a9 X-LD-Processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: W4RsGaDdV16cWnVTwvuSI9vk+IrjV+1ZUGXdW4CqHj/cleTWPwpHIf68y4hFfMpvYEoyoqdrDJkAPhuOMBujYM1qsCXBYGsRTnOgh90cLpNd+4ASCBMJFYNdlxTyvfz+wzPwUluGCbc2XW+xiPdw+vgYHL+W0BBWSk9Me251uL5OSsRoanbFFtVno0Fu4EvjY6sfnHxwuEuiGozvQujON/gxpMMNKtCt9Ba0f/1Q5P4wZcncCm5+roG6mRR0RRjisDgLztBWOqqmeV/kre5+T0XiwVgxKniJAFHODvdfuOPYkJFiiX3mv30QUyJgJ/O037B60XFlkX2XnVviW+I3bxICUQKQeFhJhRk4afWuFJzSdr4ZiwX1P40HwE2e9021IWEcATvpQ8iuWA+L2rFtnopad5H9qa08+Ah1qR+IIqAA+yfyTJTEaI5yIX1P1SakbbzE2VI+8DnCivWp2hSLMS6OW/FZaQKTpVaM0/4FYx7UNWxhD1R4ORYPqDfagGKVsp9bY0hSJD1vRdJgNeD2wwHr0m9JwCCDTlgyanj4VFz2crI2r+eTXlo7/mVJceiEBlGYZvky/yWJU7GNHgW6nv3OJHC2wMMTNH5vXmpWzRoLJzB6VJcK0U0pKxLzXFWCpsF4hZ8LqC6hGokfWo/BQRhTRX48o3IwD6ImDEz3WR63vYvKZZ7LPdgoYqI2Q8sg X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB4PR08MB8151.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(39860400002)(396003)(346002)(366004)(376002)(230922051799003)(230173577357003)(230273577357003)(64100799003)(186009)(451199024)(1800799009)(31686004)(6512007)(26005)(38100700002)(86362001)(31696002)(36756003)(83380400001)(2906002)(15650500001)(2616005)(6506007)(53546011)(478600001)(8936002)(316002)(8676002)(6666004)(6636002)(6486002)(66476007)(4326008)(66946007)(41300700001)(5660300002)(44832011)(66556008)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB7593 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM3PEPF0000A797.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 4ef4f7ce-81f3-45f9-34aa-08dbdada1dc6 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lsUQBLGWpkH36jdZ5d7R9FYHDw93VUB/8I3HBuxhaqo8i8cFIhoDPemu2rbCLUmla8n+8SiVuR6A7rlqRCl4J8u+1Zwk/QSghEE/9MVMXk65cEG/grKrgD22K1RGq5axqWkHSrZ1fp0t2V4OCJpBraxualvCTbnpPE767Y7s+8bdVza+clPH1x+9Srpaz8lhaTAWvM3FSQdQtDN699cRz6kBfhJujXlbSm4RAiIOctuJ9AXzmzX8vGibZxnA+e4rDdACwo9Y3GZVfv0pyrQRNV0a6UEGazjtBsafyJkgYv6SI+w/LJXQ3WK0MkgV3YiLAAj9LadI/Ct3kQ5PV0GRJnz8TiX0wYj+hpIpkUcq4AUl8ujvrIxU470DcnCmHE+rPXUNh+ycbT/NZdIgOEPcM91latanewctwxQKOSqaDP7oDt0Vu355VX1c+LtT6Y7/Ht7B9Qd2I21LUNSXKX9Ip8OBhqf09LdB9GO9iApkVzr6U8Ppf9Kd+yv/9sdaRq89b87H1OQ3OZkyGSYZ5lP18kUVMENfOJdDhqVAiqf2id8KpfFV7goWWH7SphogiIm8XOsv2CPedLPkZWyia6s1PcaaytSBwgNDUi4TXT9A1u0/qJy3NxTqQTQXnVQq9YJXddCadPq1RNj4/YUU9siambrzwdKWihN5OImXjMvkBltKgHBihIfcwCWqllRPfuRkHv5Qsxoeq2XoqJJvUoPp3a7Db+h2zVyzCEFvNywbIvJYDfOtFmTvBgc3w2FgDLofLmJlLgCj0ZM3A1hDvLW6der1RB9SO7sHKhBqaPC0S+GxpiCTAdmAq7QZxxUoknO9 X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230031)(4636009)(39860400002)(346002)(136003)(396003)(376002)(230922051799003)(230273577357003)(230173577357003)(451199024)(1800799009)(82310400011)(64100799003)(186009)(46966006)(40470700004)(36840700001)(31686004)(44832011)(41300700001)(5660300002)(316002)(70206006)(70586007)(6636002)(8676002)(4326008)(8936002)(40480700001)(15650500001)(40460700003)(86362001)(82740400003)(47076005)(81166007)(356005)(83380400001)(478600001)(2906002)(31696002)(6486002)(2616005)(6506007)(36756003)(26005)(53546011)(6512007)(36860700001)(6666004)(336012)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2023 12:57:43.8466 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 59c4d897-7a90-4733-7820-08dbdada23a9 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM3PEPF0000A797.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB8009 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 25/10/2023 13:57, Juraj Linkeš wrote: > The aarch32 with gcc13 fails with: > > Compiler for C supports arguments -march=armv8-a: NO > > ../config/arm/meson.build:714:12: ERROR: Problem encountered: No > suitable armv8 march version found. > > This is because we test -march=armv8-a alone (without the -mpfu option), > which is no longer supported in gcc13 aarch32 builds. > > The most recent recommendation from the compiler team is to build with > -march=armv8-a+simd -mfpu=auto, which should work for compilers old and > new. The suggestion is to first check -march=armv8-a+simd and only then > check -mfpu=auto. > > To address this, add a way to force the architecture (the value of > the -march option). > > Signed-off-by: Juraj Linkeš > --- > config/arm/meson.build | 40 +++++++++++++++++++++++----------------- > 1 file changed, 23 insertions(+), 17 deletions(-) > > diff --git a/config/arm/meson.build b/config/arm/meson.build > index 3f22d8a2fc..c3f763764a 100644 > --- a/config/arm/meson.build > +++ b/config/arm/meson.build > @@ -43,7 +43,9 @@ implementer_generic = { > }, > 'generic_aarch32': { > 'march': 'armv8-a', > - 'compiler_options': ['-mfpu=neon'], > + 'force_march': true, > + 'march_features': ['simd'], > + 'compiler_options': ['-mfpu=auto'], > 'flags': [ > ['RTE_ARCH_ARM_NEON_MEMCPY', false], > ['RTE_ARCH_STRICT_ALIGN', true], > @@ -695,21 +697,25 @@ if update_flags > # probe supported archs and their features > candidate_march = '' > if part_number_config.has_key('march') > - supported_marchs = ['armv8.6-a', 'armv8.5-a', 'armv8.4-a', 'armv8.3-a', > - 'armv8.2-a', 'armv8.1-a', 'armv8-a'] > - check_compiler_support = false > - foreach supported_march: supported_marchs > - if supported_march == part_number_config['march'] > - # start checking from this version downwards > - check_compiler_support = true > - endif > - if (check_compiler_support and > - cc.has_argument('-march=' + supported_march)) > - candidate_march = supported_march > - # highest supported march version found > - break > - endif > - endforeach > + if part_number_config.get('force_march', false) > + candidate_march = part_number_config['march'] > + else > + supported_marchs = ['armv8.6-a', 'armv8.5-a', 'armv8.4-a', 'armv8.3-a', > + 'armv8.2-a', 'armv8.1-a', 'armv8-a'] > + check_compiler_support = false > + foreach supported_march: supported_marchs > + if supported_march == part_number_config['march'] > + # start checking from this version downwards > + check_compiler_support = true > + endif > + if (check_compiler_support and > + cc.has_argument('-march=' + supported_march)) > + candidate_march = supported_march > + # highest supported march version found > + break > + endif > + endforeach > + endif > if candidate_march == '' > error('No suitable armv8 march version found.') > endif > @@ -741,7 +747,7 @@ if update_flags > # apply supported compiler options > if part_number_config.has_key('compiler_options') > foreach flag: part_number_config['compiler_options'] > - if cc.has_argument(flag) > + if cc.has_multi_arguments(machine_args + [flag]) > machine_args += flag > else > warning('Configuration compiler option ' + Reviewed-by: Paul Szczepanek