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 6FE66A0A0B; Mon, 1 Feb 2021 15:55:18 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DC2DC40693; Mon, 1 Feb 2021 15:55:17 +0100 (CET) Received: from lb.pantheon.sk (lb.pantheon.sk [46.229.239.20]) by mails.dpdk.org (Postfix) with ESMTP id 13D1240687 for ; Mon, 1 Feb 2021 15:55:16 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lb.pantheon.sk (Postfix) with ESMTP id 034E1BFD91; Mon, 1 Feb 2021 15:55:14 +0100 (CET) X-Virus-Scanned: amavisd-new at siecit.sk Received: from lb.pantheon.sk ([127.0.0.1]) by localhost (lb.pantheon.sk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DWwe1K3duC_2; Mon, 1 Feb 2021 15:55:13 +0100 (CET) Received: from service-node1.lab.pantheon.local (unknown [46.229.239.141]) by lb.pantheon.sk (Postfix) with ESMTP id 63E8BBF47F; Mon, 1 Feb 2021 15:55:13 +0100 (CET) From: =?UTF-8?q?Juraj=20Linke=C5=A1?= To: bruce.richardson@intel.com, thomas@monjalon.net, Ruifeng.Wang@arm.com, Honnappa.Nagarahalli@arm.com, jerinjacobk@gmail.com, ferruh.yigit@intel.com Cc: dev@dpdk.org, =?UTF-8?q?Juraj=20Linke=C5=A1?= Date: Mon, 1 Feb 2021 15:55:13 +0100 Message-Id: <1612191313-7654-1-git-send-email-juraj.linkes@pantheon.tech> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [RFC PATCH v1] config/arm: fix native machine args 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 Sender: "dev" There are compiler issues when building with -mcpu=native with popular compilers, such as GCC-8.4 and clang (which doesn't define __ARM_FEATURE_ATOMIC). Fix this by always specifying the proper machine args and never using the native flags. Fixes: 78ac8eac7e8a ("config/arm: use native machine build arguments") Cc: juraj.linkes@pantheon.tech Signed-off-by: Juraj Linkeš --- config/arm/meson.build | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/config/arm/meson.build b/config/arm/meson.build index f207e5a288..f948768578 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -24,7 +24,6 @@ flags_common = [ ['RTE_ARCH_ARM64', true], ['RTE_CACHE_LINE_SIZE', 128] ] -native_machine_args = ['-mcpu=native'] ## Part numbers are specific to Arm implementers # implementer specific aarch64 flags have middle priority @@ -193,7 +192,6 @@ if dpdk_conf.get('RTE_ARCH_32') machine_args += '-mfpu=neon' else # aarch64 build - use_native_machine_args = false if not meson.is_cross_build() if machine == 'default' # default build @@ -213,7 +211,6 @@ else else error('Error when getting Arm Implementer ID and part number.') endif - use_native_machine_args = true endif else # cross build @@ -249,12 +246,7 @@ else # apply supported machine args machine_args = [] # Clear previous machine args - if use_native_machine_args - candidate_machine_args = native_machine_args - else - candidate_machine_args = part_number_config['machine_args'] - endif - foreach flag: candidate_machine_args + foreach flag: part_number_config['machine_args'] if cc.has_argument(flag) machine_args += flag endif -- 2.20.1