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 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: Content-Type: multipart/alternative; boundary=16877984550.f97D6.3395866 Content-Transfer-Encoding: 7bit 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 --16877984550.f97D6.3395866 Date: Mon, 26 Jun 2023 18:54:15 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All https://bugs.dpdk.org/show_bug.cgi?id=3D1251 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=3D110411 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=3Dpower10.) Proposed fix: 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 =3D ['-mcpu=3D' + cpu_instruction_set, '-mtune=3D' + cpu_instruction_set] + +# gcc versions < 11.4 may fail to build for power10, see https://bugs.dpdk.org/show_bug.cgi?id=3D1251. +# Explicitly specify a default used in gcc 11.4 and later to workaround the issue +if (cpu_instruction_set =3D=3D 'power10' and cc.get_id() =3D=3D 'gcc' and + cc.version().version_compare('<=3D11.4')) + machine_args +=3D '-mno-block-ops-vector-pair' +endif + dpdk_conf.set('RTE_MACHINE', cpu_instruction_set) --=20 You are receiving this mail because: You are the assignee for the bug.= --16877984550.f97D6.3395866 Date: Mon, 26 Jun 2023 18:54:15 +0200 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All David Christensen changed bug 1251
What Removed Added
Status IN_PROGRESS RESOLVED
Resolution --- FIXED

Comment # 3 on bug 1251 from David Christensen
GCC bugzilla has been opened:
https://g=
cc.gnu.org/bugzilla/show_bug.cgi?id=3D110411 to track the issue.

Suggested workaround is to enable "-mno-block-ops-vector-pair" fo=
r gcc < 11.4
when building for power10 architecture. (GCC 11.4 enables this option by
default when -mcpu=3Dpower10.)


Proposed fix:

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 =3D ['-mcpu=3D' + cpu_instruction_set, '-mtune=3D' +
cpu_instruction_set]
+
+# gcc versions < 11.4 may fail to build for power10, see
https://bugs.dpdk.org/show_bug.cgi?id=3D1=
251.
+# Explicitly specify a default used in gcc 11.4 and later to workaround the
issue
+if (cpu_instruction_set =3D=3D 'power10' and cc.get_id() =3D=3D 'gcc' and
+        cc.version().version_compare('<=3D11.4'))
+    machine_args +=3D '-mno-block-ops-vector-pair'
+endif
+
 dpdk_conf.set('RTE_MACHINE', cpu_instruction_set)
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --16877984550.f97D6.3395866--