From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [Bug 1252] Failure building af_xdp with gcc 10.4.1/11.3.1 on RHEL 8.7
Date: Thu, 15 Jun 2023 22:26:32 +0000 [thread overview]
Message-ID: <bug-1252-3@http.bugs.dpdk.org/> (raw)
[-- Attachment #1: Type: text/plain, Size: 7442 bytes --]
https://bugs.dpdk.org/show_bug.cgi?id=1252
Bug ID: 1252
Summary: Failure building af_xdp with gcc 10.4.1/11.3.1 on RHEL
8.7
Product: DPDK
Version: 23.07
Hardware: POWER
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: ethdev
Assignee: dev@dpdk.org
Reporter: drc@linux.vnet.ibm.com
Target Milestone: ---
Distro: RHEL 8.7
Architecture: ppc64le
Building DPDK with libbpf-devel installed generates an error while building
net/af_xdp.
Compiler versions used:
// RHEL 8.7 default compiler
$ gcc --version
gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-15)
// IBM Advanced Toolchain 14.0-7
$ gcc --version
gcc (GCC) 10.4.1 20230306 (Advance-Toolchain 14.0-7) [2d1a2d671959]
// IBM Advanced Toolchain 15.0-5
$ gcc --version
gcc (GCC) 11.3.1 20230502 (Advance-Toolchain 15.0-5) [1c5713852c11]
Meson configuration results when the libbpf-devel package is NOT installed:
$ meson build
...
=================
Content Skipped
=================
...
drivers:
common/mvep: missing dependency, "libmusdk"
...
net/af_xdp: missing dependency, "libxdp >=1.2.2" and "libbpf"
...
Ninja build results with different compiler versions:
gcc 8.5 / v23.07-rc1 / no libbpf-devel / PASS
gcc 10.4.1 / v23.07-rc1 / no libbpf-devel / PASS
gcc 11.3.1 / v23.07-rc1 / no libbpf-devel / PASS
Meson configuration results when the libbpf-devel package IS installed:
$ rpm -qa | grep libbpf-devel
libbpf-devel-0.5.0-1.el8.ppc64le
$ meson build
...
===============
Drivers Enabled
===============
...
net:
af_packet, af_xdp, ark, atlantic, avp, axgbe, bnx2x, bnxt,
...
gcc 8.5 / v23.07-rc1 / libbpf-devel / PASS
gcc 10.4.1 / v23.07-rc1 / libbpf-devel / FAIL
gcc 11.3.1 / v23.07-rc1 / libbpf-devel / FAIL
gcc 10.4.1 failure:
===================
Found ninja-1.8.2 at /usr/bin/ninja
[589/3019] Compiling C object
drivers/libtmp_rte_net_af_xdp.a.p/net_af_xdp_rte_eth_af_xdp.c.o
FAILED: drivers/libtmp_rte_net_af_xdp.a.p/net_af_xdp_rte_eth_af_xdp.c.o
cc -Idrivers/libtmp_rte_net_af_xdp.a.p -Idrivers -I../drivers
-Idrivers/net/af_xdp -I../drivers/net/af_xdp -Ilib/ethdev -I../lib/ethdev -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/net -I../lib/net -Ilib/mbuf
-I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring
-Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci
-I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev
-I../drivers/bus/vdev -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=power9 -mtune=power9 -DALLOW_EXPERIMENTAL_API
-DALLOW_INTERNAL_API -Wno-format-truncation
-DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.af_xdp -MD -MQ
drivers/libtmp_rte_net_af_xdp.a.p/net_af_xdp_rte_eth_af_xdp.c.o -MF
drivers/libtmp_rte_net_af_xdp.a.p/net_af_xdp_rte_eth_af_xdp.c.o.d -o
drivers/libtmp_rte_net_af_xdp.a.p/net_af_xdp_rte_eth_af_xdp.c.o -c
../drivers/net/af_xdp/rte_eth_af_xdp.c
In file included from ../drivers/net/af_xdp/compat.h:8,
from ../drivers/net/af_xdp/rte_eth_af_xdp.c:42:
/usr/include/bpf/xsk.h: In function ‘xsk_ring_prod__needs_wakeup’:
/usr/include/bpf/xsk.h:148:21: error: ‘XDP_RING_NEED_WAKEUP’ undeclared (first
use in this function)
148 | return *r->flags & XDP_RING_NEED_WAKEUP;
| ^~~~~~~~~~~~~~~~~~~~
/usr/include/bpf/xsk.h:148:21: note: each undeclared identifier is reported
only once for each function it appears in
/usr/include/bpf/xsk.h: In function ‘xsk_umem__extract_addr’:
/usr/include/bpf/xsk.h:235:16: error: ‘XSK_UNALIGNED_BUF_ADDR_MASK’ undeclared
(first use in this function)
235 | return addr & XSK_UNALIGNED_BUF_ADDR_MASK;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/bpf/xsk.h: In function ‘xsk_umem__extract_offset’:
/usr/include/bpf/xsk.h:240:17: error: ‘XSK_UNALIGNED_BUF_OFFSET_SHIFT’
undeclared (first use in this function)
240 | return addr >> XSK_UNALIGNED_BUF_OFFSET_SHIFT;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[718/3019] Compiling C object lib/librte_vhost.so.23.2.p/vhost_virtio_net.c.o
ninja: build stopped: subcommand failed.
gcc 11.3.1 failure:
===================
Found ninja-1.8.2 at /usr/bin/ninja
[579/3019] Compiling C object
drivers/libtmp_rte_net_af_xdp.a.p/net_af_xdp_rte_eth_af_xdp.c.o
FAILED: drivers/libtmp_rte_net_af_xdp.a.p/net_af_xdp_rte_eth_af_xdp.c.o
cc -Idrivers/libtmp_rte_net_af_xdp.a.p -Idrivers -I../drivers
-Idrivers/net/af_xdp -I../drivers/net/af_xdp -Ilib/ethdev -I../lib/ethdev -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/net -I../lib/net -Ilib/mbuf
-I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring
-Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci
-I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev
-I../drivers/bus/vdev -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=power9 -mtune=power9 -DALLOW_EXPERIMENTAL_API
-DALLOW_INTERNAL_API -Wno-format-truncation
-DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.af_xdp -MD -MQ
drivers/libtmp_rte_net_af_xdp.a.p/net_af_xdp_rte_eth_af_xdp.c.o -MF
drivers/libtmp_rte_net_af_xdp.a.p/net_af_xdp_rte_eth_af_xdp.c.o.d -o
drivers/libtmp_rte_net_af_xdp.a.p/net_af_xdp_rte_eth_af_xdp.c.o -c
../drivers/net/af_xdp/rte_eth_af_xdp.c
In file included from /usr/include/bpf/xsk.h:20,
from ../drivers/net/af_xdp/compat.h:8,
from ../drivers/net/af_xdp/rte_eth_af_xdp.c:42:
/usr/include/bpf/libbpf.h:770:33: error: field ‘info’ has incomplete type
770 | struct bpf_prog_info info;
| ^~~~
[708/3019] Compiling C object lib/librte_vhost.a.p/vhost_virtio_net.c.o
ninja: build stopped: subcommand failed.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #2: Type: text/html, Size: 9357 bytes --]
reply other threads:[~2023-06-15 22:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-1252-3@http.bugs.dpdk.org/ \
--to=bugzilla@dpdk.org \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.