From patchwork Mon Jun 26 16:54:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: bugzilla@dpdk.org X-Patchwork-Id: 129002 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 994E742D5E; Mon, 26 Jun 2023 18:54:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7CE1941148; Mon, 26 Jun 2023 18:54:16 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id C918C4013F for ; Mon, 26 Jun 2023 18:54:15 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id B44B142D5F; Mon, 26 Jun 2023 18:54:15 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1251] PPC64le: 23.07 RC1 build failed for power10 on RHEL 9.0 Date: Mon, 26 Jun 2023 16:54:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: core X-Bugzilla-Version: 23.07 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: drc@linux.vnet.ibm.com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 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 https://bugs.dpdk.org/show_bug.cgi?id=1251 David Christensen (drc@linux.vnet.ibm.com) changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED --- Comment #3 from David Christensen (drc@linux.vnet.ibm.com) --- GCC bugzilla has been opened: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110411 to track the issue. Suggested workaround is to enable "-mno-block-ops-vector-pair" for gcc < 11.4 when building for power10 architecture. (GCC 11.4 enables this option by default when -mcpu=power10.) Proposed fix: dpdk_conf.set('RTE_MACHINE', cpu_instruction_set) diff --git a/config/ppc/meson.build b/config/ppc/meson.build index 1cba44011f..160b203cb1 100644 --- a/config/ppc/meson.build +++ b/config/ppc/meson.build @@ -105,6 +105,14 @@ else endif endif machine_args = ['-mcpu=' + cpu_instruction_set, '-mtune=' + cpu_instruction_set] + +# gcc versions < 11.4 may fail to build for power10, see https://bugs.dpdk.org/show_bug.cgi?id=1251. +# Explicitly specify a default used in gcc 11.4 and later to workaround the issue +if (cpu_instruction_set == 'power10' and cc.get_id() == 'gcc' and + cc.version().version_compare('<=11.4')) + machine_args += '-mno-block-ops-vector-pair' +endif +