Skip to contentSkip to conversation

meson build fails on POWER9 with gcc 4.8.5

dpdk-dev [email protected] 1 participant 2 messages Nov 1, 2021 – Nov 3, 2021 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

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: [email protected]
Reporter: [email protected]
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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

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

David Christensen ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED
   Target Milestone|---                         |21.11
           Assignee|[email protected]                |[email protected]

--- Comment #1 from David Christensen ([email protected]) --- Duplicated on a CentOS 7.6 POWER9 VM, fixed with the following patch which will be submitted upstream:

config/ppc/meson.build +0 -0
index cba8222163..1cba44011f 100644
@@ -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))

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.