[Bug,875] meson build fails on POWER9 with gcc 4.8.5

Message ID bug-875-3-Cz0h7vNrCE@http.bugs.dpdk.org/ (mailing list archive)
State Not Applicable, archived
Headers
Series [Bug,875] meson build fails on POWER9 with gcc 4.8.5 |

Checks

Context Check Description
ci/Intel-compilation warning apply issues

Commit Message

bugzilla@dpdk.org Nov. 3, 2021, 7:43 p.m. UTC
  https://bugs.dpdk.org/show_bug.cgi?id=875

David Christensen (drc@linux.vnet.ibm.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED
   Target Milestone|---                         |21.11
           Assignee|dev@dpdk.org                |drc@linux.vnet.ibm.com

--- Comment #1 from David Christensen (drc@linux.vnet.ibm.com) ---
Duplicated on a CentOS 7.6 POWER9 VM, fixed with the following patch which will
be submitted upstream:

                 error('Compiler does not support POWER@0@
platform'.format(cpu))
  

Patch

diff --git a/config/ppc/meson.build b/config/ppc/meson.build
index cba8222163..1cba44011f 100644
--- a/config/ppc/meson.build
+++ b/config/ppc/meson.build
@@ -89,7 +89,7 @@  int main() {
             else
                 error('Compiler does not support POWER@0@
platform'.format(cpu))
             endif
-            if cpu > 8
+            if cpu >= 8
                 cpu_instruction_set = 'power'+cpu.to_string()
             else