DPDK patches and discussions
 help / color / mirror / Atom feed
* [Bug 1251] PPC64le: 23.07 RC1 build failed for power10 on RHEL 9.0
@ 2023-06-15 21:42 bugzilla
  2023-06-26 16:54 ` bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2023-06-15 21:42 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 3507 bytes --]

https://bugs.dpdk.org/show_bug.cgi?id=1251

            Bug ID: 1251
           Summary: PPC64le: 23.07 RC1 build failed for power10 on RHEL
                    9.0
           Product: DPDK
           Version: 23.07
          Hardware: POWER
                OS: Linux
            Status: UNCONFIRMED
          Severity: critical
          Priority: Normal
         Component: core
          Assignee: dev@dpdk.org
          Reporter: thinhtr@linux.vnet.ibm.com
  Target Milestone: ---

Created attachment 255
  --> https://bugs.dpdk.org/attachment.cgi?id=255&action=edit
Preprocessed source that failed

P10 system
OS Version: Red Hat Enterprise Linux 9.1 (Plow)
Kernel Version: 5.14.0-162.6.1.el9_1.ppc64le
gcc version 11.3.1 20220421 (Red Hat 11.3.1-2)

dpdk: v23.07-rc1-2-g7556a1a355

Build failed:
$ ninja -C build
ninja: Entering directory `build'
[727/2831] Compiling C object
drivers/libtmp_rte_mempool_cnxk.a.p/mempool_cnxk_cnxk_mempool_ops.c.o
FAILED: drivers/libtmp_rte_mempool_cnxk.a.p/mempool_cnxk_cnxk_mempool_ops.c.o
cc -Idrivers/libtmp_rte_mempool_cnxk.a.p -Idrivers -I../drivers
-Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -Ilib/mempool -I../lib/mempool
-I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include
-Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/ppc/include
-I../lib/eal/ppc/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal
-I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics
-Ilib/telemetry -I../lib/telemetry -Ilib/ring -I../lib/ring -Ilib/mbuf
-I../lib/mbuf -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux
-Ilib/pci -I../lib/pci -Idrivers/common/cnxk -I../drivers/common/cnxk -Ilib/net
-I../lib/net -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter
-Ilib/security -I../lib/security -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu
-I../lib/rcu -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall
-Winvalid-pch -Wextra -O3 -include rte_config.h -Wcast-qual -Wdeprecated
-Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith
-Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings
-Wno-address-of-packed-member -Wno-packed-not-aligned
-Wno-missing-field-initializers -Wno-zero-length-bounds -Wno-psabi
-D_GNU_SOURCE -fPIC -mcpu=power10 -mtune=power10 -DALLOW_EXPERIMENTAL_API
-DALLOW_INTERNAL_API -Wno-format-truncation
-DRTE_LOG_DEFAULT_LOGTYPE=mempool.cnxk -MD -MQ
drivers/libtmp_rte_mempool_cnxk.a.p/mempool_cnxk_cnxk_mempool_ops.c.o -MF
drivers/libtmp_rte_mempool_cnxk.a.p/mempool_cnxk_cnxk_mempool_ops.c.o.d -o
drivers/libtmp_rte_mempool_cnxk.a.p/mempool_cnxk_cnxk_mempool_ops.c.o -c
../drivers/mempool/cnxk/cnxk_mempool_ops.c
during RTL pass: final
../drivers/mempool/cnxk/cnxk_mempool_ops.c: In function ‘cnxk_mempool_alloc’:
../drivers/mempool/cnxk/cnxk_mempool_ops.c:124:1: internal compiler error:
output_operand: invalid expression as operand
  124 | }
      | ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccVhPJhQ.out file, please attach this to
your bugreport.
[760/2831] Generating rte_common_cnxk.sym_chk wit...stom command (wrapped by
meson to capture output)
ninja: build stopped: subcommand failed.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #2: Type: text/html, Size: 5580 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug 1251] PPC64le: 23.07 RC1 build failed for power10 on RHEL 9.0
  2023-06-15 21:42 [Bug 1251] PPC64le: 23.07 RC1 build failed for power10 on RHEL 9.0 bugzilla
@ 2023-06-26 16:54 ` bugzilla
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla @ 2023-06-26 16:54 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 1522 bytes --]

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:

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
+
 dpdk_conf.set('RTE_MACHINE', cpu_instruction_set)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #2: Type: text/html, Size: 3838 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-26 16:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-15 21:42 [Bug 1251] PPC64le: 23.07 RC1 build failed for power10 on RHEL 9.0 bugzilla
2023-06-26 16:54 ` bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).