DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [Bug 875] meson build fails on POWER9 with gcc 4.8.5
@ 2021-11-01 16:53 bugzilla
  2021-11-03 19:43 ` bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2021-11-01 16:53 UTC (permalink / raw)
  To: dev

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

            Bug ID: 875
           Summary: meson build fails on POWER9 with gcc 4.8.5
           Product: DPDK
           Version: unspecified
          Hardware: POWER
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: meson
          Assignee: dev@dpdk.org
          Reporter: alialnu@nvidia.com
  Target Milestone: ---

"""
$ meson --werror build-meson && ninja -C build-meson

The Meson build system
Version: 0.56.2
Source dir: /tmp/dpdk
Build dir: /tmp/dpdk/build-meson
Build type: native build
Program cat found: YES (/bin/cat)
Project name: DPDK
Project version: 21.11.0-rc1
C compiler for the host machine: ccache cc (gcc 4.8.5 "cc (GCC) 4.8.5 20150623
(Red Hat 4.8.5-36)")
C linker for the host machine: cc ld.bfd 2.27-34
Host machine cpu family: ppc64
Host machine cpu: ppc64le
Message: ## Building in Developer Mode ##
Program pkg-config found: YES (/bin/pkg-config)
Program check-symbols.sh found: YES (/tmp/dpdk/buildtools/check-symbols.sh)
Program options-ibverbs-static.sh found: YES
(/tmp/dpdk/buildtools/options-ibverbs-static.sh)
Program binutils-avx512-check.sh found: YES
(/tmp/dpdk/buildtools/binutils-avx512-check.sh)
Program python3 found: YES (/path/to/python3.8)
Program cat found: YES (/bin/cat)
Program ../buildtools/symlink-drivers-solibs.sh found: YES (/bin/sh
/tmp/dpdk/config/../buildtools/symlink-drivers-solibs.sh)
Checking for size of "void *" : 8
Checking for size of "void *" : 8
Library m found: YES
Library numa found: YES
Has header "numaif.h" : YES
Library libfdt found: NO
Library libexecinfo found: NO
Found pkg-config: /bin/pkg-config (0.27.1)
Run-time dependency libarchive found: NO (tried pkgconfig)
Run-time dependency libbsd found: NO (tried pkgconfig)
Run-time dependency libpcap found: NO (tried pkgconfig)
Library pcap found: YES
Has header "pcap.h" with dependency -lpcap: YES
Compiler for C supports arguments -Wextra: YES
config/meson.build:285: WARNING: Consider using the built-in warning_level
option instead of using "-Wextra".
Compiler for C supports arguments -Wcast-qual: YES
Compiler for C supports arguments -Wdeprecated: YES
Compiler for C supports arguments -Wformat: YES
Compiler for C supports arguments -Wformat-nonliteral: YES
Compiler for C supports arguments -Wformat-security: YES
Compiler for C supports arguments -Wmissing-declarations: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Wnested-externs: YES
Compiler for C supports arguments -Wold-style-definition: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Wsign-compare: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wundef: YES
Compiler for C supports arguments -Wwrite-strings: YES
Compiler for C supports arguments -Wno-address-of-packed-member: NO
Compiler for C supports arguments -Wno-packed-not-aligned: NO
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Compiler for C supports arguments -mcpu=power9: NO
Checking if "Detect host CPU type" runs: YES
Compiler for C supports arguments -mcpu=power9: NO (cached)
Compiler for C supports arguments -mcpu=power8: YES

config/ppc/meson.build:95:16: ERROR: Problem encountered: Compiler does not
support POWER8 platform

A full log can be found at /tmp/dpdk/build-meson/meson-logs/meson-log.txt
"""

Caused by: 750196880843 ("config/ppc: select instruction set for IBM Power10")

The error doesn't reproduce with gcc 11.2.0, and doesn't reproduce with
-Dplatform=generic.

OS: RHEL 7.6
lscpu's model name:            POWER9, altivec supported

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

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

* [dpdk-dev] [Bug 875] meson build fails on POWER9 with gcc 4.8.5
  2021-11-01 16:53 [dpdk-dev] [Bug 875] meson build fails on POWER9 with gcc 4.8.5 bugzilla
@ 2021-11-03 19:43 ` bugzilla
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla @ 2021-11-03 19:43 UTC (permalink / raw)
  To: dev

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:

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
                 error('Compiler does not support POWER@0@
platform'.format(cpu))

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

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

end of thread, other threads:[~2021-11-03 19:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-01 16:53 [dpdk-dev] [Bug 875] meson build fails on POWER9 with gcc 4.8.5 bugzilla
2021-11-03 19:43 ` 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).