<html>
<head>
<base href="https://bugs.dpdk.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:drc@linux.vnet.ibm.com" title="David Christensen (drc@linux.vnet.ibm.com)"> <span class="fn">David Christensen</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - PPC64le: 23.07 RC1 build failed for power10 on RHEL 9.0"
href="https://bugs.dpdk.org/show_bug.cgi?id=1251">bug 1251</a>
<br>
<table border="1" cellspacing="0" cellpadding="8" class="bz_diff_table">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>IN_PROGRESS
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr></table>
<p>
<div class="bz_comment_block">
<b class="bz_comment_head"><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - PPC64le: 23.07 RC1 build failed for power10 on RHEL 9.0"
href="https://bugs.dpdk.org/show_bug.cgi?id=1251#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - PPC64le: 23.07 RC1 build failed for power10 on RHEL 9.0"
href="https://bugs.dpdk.org/show_bug.cgi?id=1251">bug 1251</a>
from <span class="vcard"><a class="email" href="mailto:drc@linux.vnet.ibm.com" title="David Christensen (drc@linux.vnet.ibm.com)"> <span class="fn">David Christensen</span></a>
</span>
</b>
<pre class="bz_comment_text">GCC bugzilla has been opened:
<a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110411">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110411</a> 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
<a class="bz_bug_link bz_status_RESOLVED bz_closed" title="RESOLVED FIXED - PPC64le: 23.07 RC1 build failed for power10 on RHEL 9.0" href="show_bug.cgi?id=1251">https://bugs.dpdk.org/show_bug.cgi?id=1251</a>.
+# 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)
</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://bugs.dpdk.org/show_bug.cgi?id=1251#c3">
<meta itemprop="name" content="View bug">
</div>
<meta itemprop="description" content="Bugzilla bug update notification">
</div>
</body>
</html>