* [dpdk-test-report] |FAILURE| pw(106860) sid(21466) job(PER_PATCH_BUILD1050)[7/7] buildtools/chkincs: test headers for C++ compatibility
@ 2022-02-07 6:27 sys_stv
0 siblings, 0 replies; only message in thread
From: sys_stv @ 2022-02-07 6:27 UTC (permalink / raw)
To: test-report, bruce.richardson
[-- Attachment #1: Type: text/plain, Size: 112244 bytes --]
Test-Label: Intel-compilation
Test-Status: FAILURE
http://dpdk.org/patch/106860
_Compilation issues_
Submitter: Bruce Richardson <bruce.richardson@intel.com>
Date: 2022-02-04 17:42:09
Reply_mail: 20220204174209.440207-8-bruce.richardson@intel.com
DPDK git baseline: Repo:dpdk, CommitID: 0e4dc6af06228c8504a5538512cb31ed7bf6cc23
Meson Build Summary: 20 Builds Done, 6 Successful, 14 Failures, 0 Blocked
+--------------+------------+--------------+------------+------------+-----------+----------+
| os | gcc-static | clang-static | icc-static | gcc-shared | gcc-debug | document |
+--------------+------------+--------------+------------+------------+-----------+----------+
| FC35-64 | fail | fail | | | | |
| FreeBSD13-64 | pass | pass | | pass | pass | |
| RHEL84-64 | fail | fail | fail | pass | fail | |
| SUSE15-64 | fail | fail | | | | |
| UB2004-32 | fail | | | | | |
| UB2004-64 | fail | fail | fail | | | pass |
| UB2110-64 | fail | | | | | |
| RHEL85-64 | fail | | | | | |
+--------------+------------+--------------+------------+------------+-----------+----------+
Comments:
Beacasue of DPDK bug (https://bugs.dpdk.org/show_bug.cgi?id=928),
All the dpdk-next-* branch add `Ddisable_drivers=event/cnxk` option when build with ICC complier.
Test environment and configuration as below:
OS: FC35-64
Kernel Version: 5.14.16-301.fc35.x86_64
GCC Version: gcc (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1)
Clang Version: 13.0.0 (Fedora 13.0.0~rc1-1.fc35)
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-clang
OS: FreeBSD13-64
Kernel Version: 13.0-RELEASE
GCC Version: gcc (FreeBSD Ports Collection) 10.3.0
Clang Version: 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe)
x86_64-native-bsdapp-gcc
x86_64-native-bsdapp-clang
x86_64-native-bsdapp-gcc+shared
x86_64-native-bsdapp-gcc+debug
OS: RHEL84-64
Kernel Version: 4.18.0-348.7.1.el8_5.x86_64
GCC Version: gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-4)
Clang Version: 12.0.1 (Red Hat 12.0.1-4.module_el8.5.0+1025+93159d6c)
ICC Version: 19.1.3.304 (gcc version 8.5.0 compatibility)
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-gcc+shared
x86_64-native-linuxapp-gcc+debug
x86_64-native-linuxapp-icc
OS: SUSE15-64
Kernel Version: 5.3.18-57-default
GCC Version: gcc (SUSE Linux) 7.5.0
Clang Version: 11.0.1
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-gcc
OS: UB2004-32
Kernel Version: 5.8.0-48-generic
GCC Version: gcc (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
Clang Version: 10.0.0-4ubuntu1
i686-native-linuxapp-gcc
OS: UB2004-64
Kernel Version: 5.8.0-48-generic
GCC Version: gcc (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
Clang Version: 10.0.0-4ubuntu1
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-icc
x86_64-native-linuxapp-doc
OS: UB2110-64
Kernel Version: 5.13.0-19-generic
GCC Version: gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0
Clang Version: 13.0.0-2
x86_64-native-linuxapp-gcc
OS: RHEL85-64
Kernel Version: 4.18.0-348.7.1.el8_5.x86_64
GCC Version: gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-4)
Clang Version: 12.0.1 (Red Hat 12.0.1-4.module_el8.5.0+1025+93159d6c)
ICC Version: 19.1.3.304 (gcc version 8.5.0 compatibility)
x86_64-native-linuxapp-gcc
*Build Failed #1:
OS: FC35-64
Target: x86_64-native-linuxapp-gcc
FAILED: examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o
gcc -Iexamples/dpdk-vhost_blk.p -Iexamples -I../examples -Iexamples/vhost_blk -I../examples/vhost_blk -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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 -D_GNU_SOURCE -march=native -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o -MF examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o.d -o examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o -c ../examples/vhost_blk/vhost_blk.c
In file included from ../examples/vhost_blk/vhost_blk.c:27:
../examples/vhost_blk/blk_spec.h:74:36: error: array type has incomplete element type ‘struct vhost_memory_region’
74 | struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
| ^~~~~~~
../examples/vhost_blk/blk_spec.h:88:42: error: field ‘state’ has incomplete type
88 | struct vhost_vring_state state;
| ^~~~~
../examples/vhost_blk/blk_spec.h:89:41: error: field ‘addr’ has incomplete type
89 | struct vhost_vring_addr addr;
| ^~~~
[3533/3562] Compiling C object examples/dpdk-vhost_blk.p/vhost_blk_blk.c.o
FAILED: examples/dpdk-vhost_blk.p/vhost_blk_blk.c.o
gcc -Iexamples/dpdk-vhost_blk.p -Iexamples -I../examples -Iexamples/vhost_blk -I../examples/vhost_blk -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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 -D_GNU_SOURCE -march=native -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-vhost_blk.p/vhost_blk_blk.c.o -MF examples/dpdk-vhost_blk.p/vhost_blk_blk.c.o.d -o examples/dpdk-vhost_blk.p/vhost_blk_blk.c.o -c ../examples/vhost_blk/blk.c
In file included from ../examples/vhost_blk/blk.c:25:
../examples/vhost_blk/blk_spec.h:74:36: error: array type has incomplete element type ‘struct vhost_memory_region’
74 | struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
| ^~~~~~~
../examples/vhost_blk/blk_spec.h:88:42: error: field ‘state’ has incomplete type
88 | struct vhost_vring_state state;
| ^~~~~
../examples/vhost_blk/blk_spec.h:89:41: error: field ‘addr’ has incomplete type
89 | struct vhost_vring_addr addr;
| ^~~~
[3534/3562] Compiling C object examples/dpdk-rxtx_callbacks.p/rxtx_callbacks_main.c.o
[3535/3562] Compiling C object examples/dpdk-vhost_crypto.p/vhost_crypto_main.c.o
[3536/3562] Linking target examples/dpdk-qos_meter
[3537/3562] Linking target examples/dpdk-pipeline
[3538/3562] Compiling C object examples/dpdk-efd_server.p/server_node_efd_server_main.c.o
[3539/3562] Linking target examples/dpdk-ptpclient
[3540/3562] Linking target examples/dpdk-qos_sched
[3541/3562] Linking target examples/dpdk-efd_node
ninja: build stopped
*Build Failed #2:
OS: FC35-64
Target: x86_64-native-linuxapp-clang
FAILED: examples/dpdk-vhost_blk.p/vhost_blk_blk.c.o
clang -Iexamples/dpdk-vhost_blk.p -Iexamples -I../examples -Iexamples/vhost_blk -I../examples/vhost_blk -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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-missing-field-initializers -D_GNU_SOURCE -march=native -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-vhost_blk.p/vhost_blk_blk.c.o -MF examples/dpdk-vhost_blk.p/vhost_blk_blk.c.o.d -o examples/dpdk-vhost_blk.p/vhost_blk_blk.c.o -c ../examples/vhost_blk/blk.c
In file included from ../examples/vhost_blk/blk.c:25:
../examples/vhost_blk/blk_spec.h:74:36: error: array has incomplete element type 'struct vhost_memory_region'
struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
^
../examples/vhost_blk/blk_spec.h:74:9: note: forward declaration of 'struct vhost_memory_region'
struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
^
../examples/vhost_blk/blk_spec.h:88:28: error: field has incomplete type 'struct vhost_vring_state'
struct vhost_vring_state state;
^
../examples/vhost_blk/blk_spec.h:88:10: note: forward declaration of 'struct vhost_vring_state'
struct vhost_vring_state state;
^
../examples/vhost_blk/blk_spec.h:89:27: error: field has incomplete type 'struct vhost_vring_addr'
struct vhost_vring_addr addr;
^
../examples/vhost_blk/blk_spec.h:89:10: note: forward declaration of 'struct vhost_vring_addr'
struct vhost_vring_addr addr;
^
3 errors generated.
[3529/3562] Compiling C object examples/dpdk-efd_server.p/server_node_efd_server_init.c.o
[3530/3562] Linking target examples/dpdk-pipeline
[3531/3562] Compiling C object examples/dpdk-skeleton.p/skeleton_basicfwd.c.o
[3532/3562] Linking target examples/dpdk-ptpclient
[3533/3562] Compiling C object examples/dpdk-efd_node.p/server_node_efd_node_node.c.o
[3534/3562] Linking target examples/dpdk-qos_sched
[3535/3562] Compiling C object examples/dpdk-efd_server.p/server_node_efd_server_main.c.o
[3536/3562] Compiling C object app/test/dpdk-test.p/test_ring.c.o
[3537/3562] Compiling C object app/test/dpdk-test.p/test_ring_perf.c.o
ninja: build stopped
*Build Failed #3:
OS: RHEL84-64
Target: x86_64-native-linuxapp-gcc
FAILED: examples/dpdk-vhost.p/vhost_virtio_net.c.o
gcc -Iexamples/dpdk-vhost.p -Iexamples -I../examples -Iexamples/vhost -I../examples/vhost -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -march=native -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-vhost.p/vhost_virtio_net.c.o -MF examples/dpdk-vhost.p/vhost_virtio_net.c.o.d -o examples/dpdk-vhost.p/vhost_virtio_net.c.o -c ../examples/vhost/virtio_net.c
../examples/vhost/virtio_net.c: In function ‘enqueue_pkt’:
../examples/vhost/virtio_net.c:74:18: error: invalid use of undefined type ‘struct vring_desc’
desc = &vr->desc[desc_idx];
^
../examples/vhost/virtio_net.c:74:18: error: dereferencing pointer to incomplete type ‘struct vring_desc’
../examples/vhost/virtio_net.c:141:23: error: ‘VRING_DESC_F_NEXT’ undeclared (first use in this function); did you mean ‘RING_F_SC_DEQ’?
if ((desc->flags & VRING_DESC_F_NEXT) == 0) {
^~~~~~~~~~~~~~~~~
RING_F_SC_DEQ
../examples/vhost/virtio_net.c:141:23: note: each undeclared identifier is reported only once for each function it appears in
../examples/vhost/virtio_net.c: In function ‘vs_enqueue_pkts’:
../examples/vhost/virtio_net.c:200:40: error: dereferencing pointer to incomplete type ‘struct vring_avail’
avail_idx = __atomic_load_n(&vr->avail->idx, __ATOMIC_ACQUIRE);
^~
../examples/vhost/virtio_net.c:213:11: error: dereferencing pointer to incomplete type ‘struct vring_used’
vr->used->ring[used_idx].id = desc_indexes[i];
^~
../examples/vhost/virtio_net.c:218:25: error: invalid use of undefined type ‘struct vring_desc’
rte_prefetch0(&vr->desc[desc_indexes[0]]);
^
../examples/vhost/virtio_net.c:230:27: error: invalid use of undefined type ‘struct vring_desc’
rte_prefetch0(&vr->desc[desc_indexes[i+1]]);
^
../examples/vhost/virtio_net.c:194:11: error: variable ‘used_idx’ set but not used [-Werror=unused-but-set-variable]
uint16_t used_idx;
^~~~~~~~
../examples/vhost/virtio_net.c: In function ‘dequeue_pkt’:
../examples/vhost/virtio_net.c:256:18: error: invalid use of undefined type ‘struct vring_desc’
desc = &vr->desc[desc_idx];
^
../examples/vhost/virtio_net.c:258:19: error: ‘VRING_DESC_F_INDIRECT’ undeclared (first use in this function); did you mean ‘RTE_MBUF_F_INDIRECT’?
(desc->flags & VRING_DESC_F_INDIRECT))
^~~~~~~~~~~~~~~~~~~~~
RTE_MBUF_F_INDIRECT
../examples/vhost/virtio_net.c:307:23: error: ‘VRING_DESC_F_NEXT’ undeclared (first use in this function); did you mean ‘RING_F_SC_DEQ’?
if ((desc->flags & VRING_DESC_F_NEXT) == 0)
^~~~~~~~~~~~~~~~~
RING_F_SC_DEQ
../examples/vhost/virtio_net.c: In function ‘vs_dequeue_pkts’:
../examples/vhost/virtio_net.c:412:25: error: invalid use of undefined type ‘struct vring_desc’
rte_prefetch0(&vr->desc[desc_indexes[0]]);
^
../examples/vhost/virtio_net.c:417:27: error: invalid use of undefined type ‘struct vring_desc’
rte_prefetch0(&vr->desc[desc_indexes[i + 1]]);
^
../examples/vhost/virtio_net.c:376:11: error: variable ‘avail_idx’ set but not used [-Werror=unused-but-set-variable]
uint16_t avail_idx;
^~~~~~~~~
../examples/vhost/virtio_net.c:373:11: error: variable ‘used_idx’ set but not used [-Werror=unused-but-set-variable]
uint32_t used_idx;
^~~~~~~~
cc1: all warnings being treated as errors
[3496/3513] Compiling C object examples/dpdk-vdpa.p/vdpa_main.c.o
[3497/3513] Compiling C object examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o
FAILED: examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o
gcc -Iexamples/dpdk-vhost_blk.p -Iexamples -I../examples -Iexamples/vhost_blk -I../examples/vhost_blk -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -march=native -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o -MF examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o.d -o examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o -c ../examples/vhost_blk/vhost_blk_compat.c
In file included from ../examples/vhost_blk/vhost_blk_compat.c:15:
../examples/vhost_blk/blk_spec.h:74:29: error: array type has incomplete element type ‘struct vhost_memory_region’
struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
^~~~~~~
../examples/vhost_blk/blk_spec.h:88:28: error: field ‘state’ has incomplete type
struct vhost_vring_state state;
^~~~~
../examples/vhost_blk/blk_spec.h:89:27: error: field ‘addr’ has incomplete type
struct vhost_vring_addr addr;
^~~~
[3498/3513] Compiling C object examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o
FAILED: examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o
gcc -Iexamples/dpdk-vhost_blk.p -Iexamples -I../examples -Iexamples/vhost_blk -I../examples/vhost_blk -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -march=native -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o -MF examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o.d -o examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o -c ../examples/vhost_blk/vhost_blk.c
In file included from ../examples/vhost_blk/vhost_blk.c:27:
../examples/vhost_blk/blk_spec.h:74:29: error: array type has incomplete element type ‘struct vhost_memory_region’
struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
^~~~~~~
../examples/vhost_blk/blk_spec.h:88:28: error: field ‘state’ has incomplete type
struct vhost_vring_state state;
^~~~~
../examples/vhost_blk/blk_spec.h:89:27: error: field ‘addr’ has incomplete type
struct vhost_vring_addr addr;
^~~~
[3499/3513] Linking target examples/dpdk-service_cores
[3500/3513] Linking target examples/dpdk-timer
[3501/3513] Compiling C object examples/dpdk-vhost.p/vhost_main.c.o
[3502/3513] Linking target examples/dpdk-rxtx_callbacks
[3503/3513] Linking target examples/dpdk-efd_server
[3504/3513] Linking target examples/dpdk-skeleton
ninja: build stopped
*Build Failed #4:
OS: RHEL84-64
Target: x86_64-native-linuxapp-clang
FAILED: examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o
clang -Iexamples/dpdk-vhost_blk.p -Iexamples -I../examples -Iexamples/vhost_blk -I../examples/vhost_blk -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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-missing-field-initializers -D_GNU_SOURCE -march=native -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o -MF examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o.d -o examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o -c ../examples/vhost_blk/vhost_blk.c
In file included from ../examples/vhost_blk/vhost_blk.c:27:
../examples/vhost_blk/blk_spec.h:74:36: error: array has incomplete element type 'struct vhost_memory_region'
struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
^
../examples/vhost_blk/blk_spec.h:74:9: note: forward declaration of 'struct vhost_memory_region'
struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
^
../examples/vhost_blk/blk_spec.h:88:28: error: field has incomplete type 'struct vhost_vring_state'
struct vhost_vring_state state;
^
../examples/vhost_blk/blk_spec.h:88:10: note: forward declaration of 'struct vhost_vring_state'
struct vhost_vring_state state;
^
../examples/vhost_blk/blk_spec.h:89:27: error: field has incomplete type 'struct vhost_vring_addr'
struct vhost_vring_addr addr;
^
../examples/vhost_blk/blk_spec.h:89:10: note: forward declaration of 'struct vhost_vring_addr'
struct vhost_vring_addr addr;
^
3 errors generated.
[3490/3513] Linking target examples/dpdk-ptpclient
[3491/3513] Linking target examples/dpdk-packet_ordering
[3492/3513] Compiling C object examples/dpdk-vdpa.p/vdpa_main.c.o
[3493/3513] Linking target examples/dpdk-rxtx_callbacks
[3494/3513] Linking target examples/dpdk-efd_node
[3495/3513] Linking target examples/dpdk-efd_server
[3496/3513] Linking target examples/dpdk-skeleton
[3497/3513] Compiling C object app/test/dpdk-test.p/test_ring.c.o
[3498/3513] Compiling C object app/test/dpdk-test.p/test_ring_perf.c.o
ninja: build stopped
*Build Failed #5:
OS: RHEL84-64
Target: x86_64-native-linuxapp-gcc+debug
FAILED: examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o
gcc -Iexamples/dpdk-vhost_blk.p -Iexamples -I../examples -Iexamples/vhost_blk -I../examples/vhost_blk -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O2 -g -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-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -march=native -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o -MF examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o.d -o examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o -c ../examples/vhost_blk/vhost_blk.c
In file included from ../examples/vhost_blk/vhost_blk.c:27:
../examples/vhost_blk/blk_spec.h:74:29: error: array type has incomplete element type ‘struct vhost_memory_region’
struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
^~~~~~~
../examples/vhost_blk/blk_spec.h:88:28: error: field ‘state’ has incomplete type
struct vhost_vring_state state;
^~~~~
../examples/vhost_blk/blk_spec.h:89:27: error: field ‘addr’ has incomplete type
struct vhost_vring_addr addr;
^~~~
[3489/3513] Compiling C object examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o
FAILED: examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o
gcc -Iexamples/dpdk-vhost_blk.p -Iexamples -I../examples -Iexamples/vhost_blk -I../examples/vhost_blk -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O2 -g -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-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -march=native -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o -MF examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o.d -o examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o -c ../examples/vhost_blk/vhost_blk_compat.c
In file included from ../examples/vhost_blk/vhost_blk_compat.c:15:
../examples/vhost_blk/blk_spec.h:74:29: error: array type has incomplete element type ‘struct vhost_memory_region’
struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
^~~~~~~
../examples/vhost_blk/blk_spec.h:88:28: error: field ‘state’ has incomplete type
struct vhost_vring_state state;
^~~~~
../examples/vhost_blk/blk_spec.h:89:27: error: field ‘addr’ has incomplete type
struct vhost_vring_addr addr;
^~~~
[3490/3513] Compiling C object examples/dpdk-vhost_blk.p/vhost_blk_blk.c.o
FAILED: examples/dpdk-vhost_blk.p/vhost_blk_blk.c.o
gcc -Iexamples/dpdk-vhost_blk.p -Iexamples -I../examples -Iexamples/vhost_blk -I../examples/vhost_blk -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O2 -g -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-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -march=native -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-vhost_blk.p/vhost_blk_blk.c.o -MF examples/dpdk-vhost_blk.p/vhost_blk_blk.c.o.d -o examples/dpdk-vhost_blk.p/vhost_blk_blk.c.o -c ../examples/vhost_blk/blk.c
In file included from ../examples/vhost_blk/blk.c:25:
../examples/vhost_blk/blk_spec.h:74:29: error: array type has incomplete element type ‘struct vhost_memory_region’
struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
^~~~~~~
../examples/vhost_blk/blk_spec.h:88:28: error: field ‘state’ has incomplete type
struct vhost_vring_state state;
^~~~~
../examples/vhost_blk/blk_spec.h:89:27: error: field ‘addr’ has incomplete type
struct vhost_vring_addr addr;
^~~~
[3491/3513] Compiling C object examples/dpdk-efd_server.p/server_node_efd_server_main.c.o
[3492/3513] Linking target examples/dpdk-skeleton
[3493/3513] Linking target examples/dpdk-efd_node
[3494/3513] Linking target examples/dpdk-service_cores
[3495/3513] Linking target examples/dpdk-pipeline
[3496/3513] Linking target examples/dpdk-qos_meter
[3497/3513] Linking target examples/dpdk-qos_sched
ninja: build stopped
*Build Failed #6:
OS: RHEL84-64
Target: x86_64-native-linuxapp-icc
FAILED: examples/dpdk-vhost.p/vhost_virtio_net.c.o
icc -Iexamples/dpdk-vhost.p -Iexamples -I../examples -Iexamples/vhost -I../examples/vhost -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -D_FILE_OFFSET_BITS=64 -Wall -w3 -diag-disable:remark -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -diag-disable=181 -diag-disable=188 -diag-disable=2203 -diag-disable=2279 -diag-disable=2557 -diag-disable=3179 -diag-disable=3656 -D_GNU_SOURCE -march=native -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-vhost.p/vhost_virtio_net.c.o -MF examples/dpdk-vhost.p/vhost_virtio_net.c.o.d -o examples/dpdk-vhost.p/vhost_virtio_net.c.o -c ../examples/vhost/virtio_net.c
../examples/vhost/virtio_net.c(74): error: expression must be a pointer to a complete object type
desc = &vr->desc[desc_idx];
^
../examples/vhost/virtio_net.c(75): error: pointer to incomplete class type is not allowed
desc_chunck_len = desc->len;
^
../examples/vhost/virtio_net.c(76): error: pointer to incomplete class type is not allowed
desc_gaddr = desc->addr;
^
../examples/vhost/virtio_net.c(84): error: pointer to incomplete class type is not allowed
if (unlikely(desc->len < dev->hdr_len) || !desc_addr)
^
../examples/vhost/virtio_net.c(115): error: pointer to incomplete class type is not allowed
desc_chunck_len = desc->len - dev->hdr_len;
^
../examples/vhost/virtio_net.c(126): error: pointer to incomplete class type is not allowed
desc_avail = desc->len - dev->hdr_len;
^
../examples/vhost/virtio_net.c(141): error: pointer to incomplete class type is not allowed
if ((desc->flags & VRING_DESC_F_NEXT) == 0) {
^
../examples/vhost/virtio_net.c(141): error: identifier "VRING_DESC_F_NEXT" is undefined
if ((desc->flags & VRING_DESC_F_NEXT) == 0) {
^
../examples/vhost/virtio_net.c(145): error: pointer to incomplete class type is not allowed
if (unlikely(desc->next >= vr->size ||
^
../examples/vhost/virtio_net.c(149): error: pointer to incomplete class type is not allowed
desc = &vr->desc[desc->next];
^
../examples/vhost/virtio_net.c(149): error: expression must be a pointer to a complete object type
desc = &vr->desc[desc->next];
^
../examples/vhost/virtio_net.c(150): error: pointer to incomplete class type is not allowed
desc_chunck_len = desc->len;
^
../examples/vhost/virtio_net.c(151): error: pointer to incomplete class type is not allowed
desc_gaddr = desc->addr;
^
../examples/vhost/virtio_net.c(158): error: pointer to incomplete class type is not allowed
desc_avail = desc->len;
^
../examples/vhost/virtio_net.c(200): error: pointer to incomplete class type is not allowed
avail_idx = __atomic_load_n(&vr->avail->idx, __ATOMIC_ACQUIRE);
^
../examples/vhost/virtio_net.c(209): error: pointer to incomplete class type is not allowed
rte_prefetch0(&vr->avail->ring[start_idx & (vr->size - 1)]);
^
../examples/vhost/virtio_net.c(212): error: pointer to incomplete class type is not allowed
desc_indexes[i] = vr->avail->ring[used_idx];
^
../examples/vhost/virtio_net.c(213): error: pointer to incomplete class type is not allowed
vr->used->ring[used_idx].id = desc_indexes[i];
^
../examples/vhost/virtio_net.c(214): error: pointer to incomplete class type is not allowed
vr->used->ring[used_idx].len = pkts[i]->pkt_len +
^
../examples/vhost/virtio_net.c(218): error: expression must be a pointer to a complete object type
rte_prefetch0(&vr->desc[desc_indexes[0]]);
^
../examples/vhost/virtio_net.c(226): error: pointer to incomplete class type is not allowed
vr->used->ring[used_idx].len = dev->hdr_len;
^
../examples/vhost/virtio_net.c(230): error: expression must be a pointer to a complete object type
rte_prefetch0(&vr->desc[desc_indexes[i+1]]);
^
../examples/vhost/virtio_net.c(233): error: pointer to incomplete class type is not allowed
__atomic_add_fetch(&vr->used->idx, count, __ATOMIC_RELEASE);
^
../examples/vhost/virtio_net.c(256): error: expression must be a pointer to a complete object type
desc = &vr->desc[desc_idx];
^
../examples/vhost/virtio_net.c(257): error: pointer to incomplete class type is not allowed
if (unlikely((desc->len < dev->hdr_len)) ||
^
../examples/vhost/virtio_net.c(258): error: pointer to incomplete class type is not allowed
(desc->flags & VRING_DESC_F_INDIRECT))
^
../examples/vhost/virtio_net.c(258): error: identifier "VRING_DESC_F_INDIRECT" is undefined
(desc->flags & VRING_DESC_F_INDIRECT))
^
../examples/vhost/virtio_net.c(261): error: pointer to incomplete class type is not allowed
desc_chunck_len = desc->len;
^
../examples/vhost/virtio_net.c(262): error: pointer to incomplete class type is not allowed
desc_gaddr = desc->addr;
^
../examples/vhost/virtio_net.c(277): error: pointer to incomplete class type is not allowed
desc = &vr->desc[desc->next];
^
../examples/vhost/virtio_net.c(277): error: expression must be a pointer to a complete object type
desc = &vr->desc[desc->next];
^
../examples/vhost/virtio_net.c(278): error: pointer to incomplete class type is not allowed
desc_chunck_len = desc->len;
^
../examples/vhost/virtio_net.c(279): error: pointer to incomplete class type is not allowed
desc_gaddr = desc->addr;
^
../examples/vhost/virtio_net.c(287): error: pointer to incomplete class type is not allowed
desc_avail = desc->len;
^
../examples/vhost/virtio_net.c(307): error: pointer to incomplete class type is not allowed
if ((desc->flags & VRING_DESC_F_NEXT) == 0)
^
../examples/vhost/virtio_net.c(307): error: identifier "VRING_DESC_F_NEXT" is undefined
if ((desc->flags & VRING_DESC_F_NEXT) == 0)
^
../examples/vhost/virtio_net.c(310): error: pointer to incomplete class type is not allowed
if (unlikely(desc->next >= vr->size ||
^
../examples/vhost/virtio_net.c(313): error: pointer to incomplete class type is not allowed
desc = &vr->desc[desc->next];
^
../examples/vhost/virtio_net.c(313): error: expression must be a pointer to a complete object type
desc = &vr->desc[desc->next];
^
../examples/vhost/virtio_net.c(315): error: pointer to incomplete class type is not allowed
desc_chunck_len = desc->len;
^
../examples/vhost/virtio_net.c(316): error: pointer to incomplete class type is not allowed
desc_gaddr = desc->addr;
^
../examples/vhost/virtio_net.c(324): error: pointer to incomplete class type is not allowed
desc_avail = desc->len;
^
../examples/vhost/virtio_net.c(381): error: pointer to incomplete class type is not allowed
free_entries = __atomic_load_n(&vr->avail->idx, __ATOMIC_ACQUIRE) -
^
../examples/vhost/virtio_net.c(389): error: pointer to incomplete class type is not allowed
rte_prefetch0(&vr->avail->ring[avail_idx]);
^
../examples/vhost/virtio_net.c(390): error: pointer to incomplete class type is not allowed
rte_prefetch0(&vr->used->ring[used_idx]);
^
../examples/vhost/virtio_net.c(405): error: pointer to incomplete class type is not allowed
desc_indexes[i] = vr->avail->ring[avail_idx];
^
../examples/vhost/virtio_net.c(407): error: pointer to incomplete class type is not allowed
vr->used->ring[used_idx].id = desc_indexes[i];
^
../examples/vhost/virtio_net.c(408): error: pointer to incomplete class type is not allowed
vr->used->ring[used_idx].len = 0;
^
../examples/vhost/virtio_net.c(412): error: expression must be a pointer to a complete object type
rte_prefetch0(&vr->desc[desc_indexes[0]]);
^
../examples/vhost/virtio_net.c(417): error: expression must be a pointer to a complete object type
rte_prefetch0(&vr->desc[desc_indexes[i + 1]]);
^
../examples/vhost/virtio_net.c(437): error: pointer to incomplete class type is not allowed
__atomic_add_fetch(&vr->used->idx, i, __ATOMIC_ACQ_REL);
^
compilation aborted for ../examples/vhost/virtio_net.c (code 2)
[3076/3097] Linking target examples/dpdk-efd_node
[3077/3097] Linking target examples/dpdk-rxtx_callbacks
[3078/3097] Linking target examples/dpdk-vdpa
[3079/3097] Linking target examples/dpdk-efd_server
[3080/3097] Linking target examples/dpdk-skeleton
[3081/3097] Compiling C object examples/dpdk-vhost.p/vhost_main.c.o
[3082/3097] Compiling C object app/test/dpdk-test.p/test_ring.c.o
[3083/3097] Compiling C object app/test/dpdk-test.p/test_memcpy_perf.c.o
[3084/3097] Compiling C object app/test/dpdk-test.p/test_ring_perf.c.o
ninja: build stopped
*Build Failed #7:
OS: SUSE15-64
Target: x86_64-native-linuxapp-clang
FAILED: examples/c590b3c@@dpdk-vhost_blk@exe/vhost_blk_blk.c.o
clang -Iexamples/c590b3c@@dpdk-vhost_blk@exe -Iexamples -I../examples -Iexamples/vhost_blk -I../examples/vhost_blk -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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-missing-field-initializers -D_GNU_SOURCE -march=native -DALLOW_EXPERIMENTAL_API -MD -MQ 'examples/c590b3c@@dpdk-vhost_blk@exe/vhost_blk_blk.c.o' -MF 'examples/c590b3c@@dpdk-vhost_blk@exe/vhost_blk_blk.c.o.d' -o 'examples/c590b3c@@dpdk-vhost_blk@exe/vhost_blk_blk.c.o' -c ../examples/vhost_blk/blk.c
In file included from ../examples/vhost_blk/blk.c:25:
../examples/vhost_blk/blk_spec.h:74:36: error: array has incomplete element type 'struct vhost_memory_region'
struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
^
../examples/vhost_blk/blk_spec.h:74:9: note: forward declaration of 'struct vhost_memory_region'
struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
^
../examples/vhost_blk/blk_spec.h:88:28: error: field has incomplete type 'struct vhost_vring_state'
struct vhost_vring_state state;
^
../examples/vhost_blk/blk_spec.h:88:10: note: forward declaration of 'struct vhost_vring_state'
struct vhost_vring_state state;
^
../examples/vhost_blk/blk_spec.h:89:27: error: field has incomplete type 'struct vhost_vring_addr'
struct vhost_vring_addr addr;
^
../examples/vhost_blk/blk_spec.h:89:10: note: forward declaration of 'struct vhost_vring_addr'
struct vhost_vring_addr addr;
^
3 errors generated.
[3527/3550] Compiling C object 'examples/c590b3c@@dpdk-vhost_blk@exe/vhost_blk_vhost_blk.c.o'
FAILED: examples/c590b3c@@dpdk-vhost_blk@exe/vhost_blk_vhost_blk.c.o
clang -Iexamples/c590b3c@@dpdk-vhost_blk@exe -Iexamples -I../examples -Iexamples/vhost_blk -I../examples/vhost_blk -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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-missing-field-initializers -D_GNU_SOURCE -march=native -DALLOW_EXPERIMENTAL_API -MD -MQ 'examples/c590b3c@@dpdk-vhost_blk@exe/vhost_blk_vhost_blk.c.o' -MF 'examples/c590b3c@@dpdk-vhost_blk@exe/vhost_blk_vhost_blk.c.o.d' -o 'examples/c590b3c@@dpdk-vhost_blk@exe/vhost_blk_vhost_blk.c.o' -c ../examples/vhost_blk/vhost_blk.c
In file included from ../examples/vhost_blk/vhost_blk.c:27:
../examples/vhost_blk/blk_spec.h:74:36: error: array has incomplete element type 'struct vhost_memory_region'
struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
^
../examples/vhost_blk/blk_spec.h:74:9: note: forward declaration of 'struct vhost_memory_region'
struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
^
../examples/vhost_blk/blk_spec.h:88:28: error: field has incomplete type 'struct vhost_vring_state'
struct vhost_vring_state state;
^
../examples/vhost_blk/blk_spec.h:88:10: note: forward declaration of 'struct vhost_vring_state'
struct vhost_vring_state state;
^
../examples/vhost_blk/blk_spec.h:89:27: error: field has incomplete type 'struct vhost_vring_addr'
struct vhost_vring_addr addr;
^
../examples/vhost_blk/blk_spec.h:89:10: note: forward declaration of 'struct vhost_vring_addr'
struct vhost_vring_addr addr;
^
3 errors generated.
[3528/3550] Compiling C object 'examples/c590b3c@@dpdk-vhost@exe/vhost_main.c.o'
[3529/3550] Linking target examples/dpdk-rxtx_callbacks
[3530/3550] Compiling C object 'examples/c590b3c@@dpdk-vhost_crypto@exe/vhost_crypto_main.c.o'
[3531/3550] Linking target examples/dpdk-efd_node
[3532/3550] Linking target examples/dpdk-skeleton
[3533/3550] Linking target examples/dpdk-qos_sched
[3534/3550] Compiling C object 'app/test/3062f5d@@dpdk-test@exe/test_ring.c.o'
[3535/3550] Compiling C object 'app/test/3062f5d@@dpdk-test@exe/test_ring_perf.c.o'
ninja: build stopped
*Build Failed #8:
OS: SUSE15-64
Target: x86_64-native-linuxapp-gcc
FAILED: examples/c590b3c@@dpdk-vhost_blk@exe/vhost_blk_vhost_blk.c.o
gcc -Iexamples/c590b3c@@dpdk-vhost_blk@exe -Iexamples -I../examples -Iexamples/vhost_blk -I../examples/vhost_blk -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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-missing-field-initializers -D_GNU_SOURCE -march=native -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ 'examples/c590b3c@@dpdk-vhost_blk@exe/vhost_blk_vhost_blk.c.o' -MF 'examples/c590b3c@@dpdk-vhost_blk@exe/vhost_blk_vhost_blk.c.o.d' -o 'examples/c590b3c@@dpdk-vhost_blk@exe/vhost_blk_vhost_blk.c.o' -c ../examples/vhost_blk/vhost_blk.c
In file included from ../examples/vhost_blk/vhost_blk.c:27:0:
../examples/vhost_blk/blk_spec.h:74:29: error: array type has incomplete element type ‘struct vhost_memory_region’
struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
^~~~~~~
../examples/vhost_blk/blk_spec.h:88:28: error: field ‘state’ has incomplete type
struct vhost_vring_state state;
^~~~~
../examples/vhost_blk/blk_spec.h:89:27: error: field ‘addr’ has incomplete type
struct vhost_vring_addr addr;
^~~~
[3511/3548] Compiling C object 'examples/c590b3c@@dpdk-vhost_blk@exe/vhost_blk_blk.c.o'
FAILED: examples/c590b3c@@dpdk-vhost_blk@exe/vhost_blk_blk.c.o
gcc -Iexamples/c590b3c@@dpdk-vhost_blk@exe -Iexamples -I../examples -Iexamples/vhost_blk -I../examples/vhost_blk -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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-missing-field-initializers -D_GNU_SOURCE -march=native -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ 'examples/c590b3c@@dpdk-vhost_blk@exe/vhost_blk_blk.c.o' -MF 'examples/c590b3c@@dpdk-vhost_blk@exe/vhost_blk_blk.c.o.d' -o 'examples/c590b3c@@dpdk-vhost_blk@exe/vhost_blk_blk.c.o' -c ../examples/vhost_blk/blk.c
In file included from ../examples/vhost_blk/blk.c:25:0:
../examples/vhost_blk/blk_spec.h:74:29: error: array type has incomplete element type ‘struct vhost_memory_region’
struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
^~~~~~~
../examples/vhost_blk/blk_spec.h:88:28: error: field ‘state’ has incomplete type
struct vhost_vring_state state;
^~~~~
../examples/vhost_blk/blk_spec.h:89:27: error: field ‘addr’ has incomplete type
struct vhost_vring_addr addr;
^~~~
[3512/3548] Compiling C object 'examples/c590b3c@@dpdk-efd_server@exe/server_node_efd_server_main.c.o'
[3513/3548] Linking target examples/dpdk-symmetric_mp
[3514/3548] Linking target examples/dpdk-ntb
[3515/3548] Linking target examples/dpdk-pipeline
[3516/3548] Linking target examples/dpdk-packet_ordering
[3517/3548] Linking target examples/dpdk-ptpclient
[3518/3548] Linking target app/test/dpdk-test
[3519/3548] Linking target examples/dpdk-qos_meter
ninja: build stopped
*Build Failed #9:
OS: UB2004-32
Target: i686-native-linuxapp-gcc
FAILED: examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o
gcc -Iexamples/dpdk-vhost_blk.p -Iexamples -I../examples -Iexamples/vhost_blk -I../examples/vhost_blk -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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-pointer-to-int-cast -D_GNU_SOURCE -m32 -march=native -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o -MF examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o.d -o examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o -c ../examples/vhost_blk/vhost_blk_compat.c
In file included from ../examples/vhost_blk/vhost_blk_compat.c:15:
../examples/vhost_blk/blk_spec.h:74:29: error: array type has incomplete element type ‘struct vhost_memory_region’
74 | struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
| ^~~~~~~
../examples/vhost_blk/blk_spec.h:88:28: error: field ‘state’ has incomplete type
88 | struct vhost_vring_state state;
| ^~~~~
../examples/vhost_blk/blk_spec.h:89:27: error: field ‘addr’ has incomplete type
89 | struct vhost_vring_addr addr;
| ^~~~
[2462/2480] Linking target examples/dpdk-service_cores
[2463/2480] Linking target examples/dpdk-rxtx_callbacks
[2464/2480] Compiling C object examples/dpdk-vhost_blk.p/vhost_blk_blk.c.o
FAILED: examples/dpdk-vhost_blk.p/vhost_blk_blk.c.o
gcc -Iexamples/dpdk-vhost_blk.p -Iexamples -I../examples -Iexamples/vhost_blk -I../examples/vhost_blk -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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-pointer-to-int-cast -D_GNU_SOURCE -m32 -march=native -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-vhost_blk.p/vhost_blk_blk.c.o -MF examples/dpdk-vhost_blk.p/vhost_blk_blk.c.o.d -o examples/dpdk-vhost_blk.p/vhost_blk_blk.c.o -c ../examples/vhost_blk/blk.c
In file included from ../examples/vhost_blk/blk.c:25:
../examples/vhost_blk/blk_spec.h:74:29: error: array type has incomplete element type ‘struct vhost_memory_region’
74 | struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
| ^~~~~~~
../examples/vhost_blk/blk_spec.h:88:28: error: field ‘state’ has incomplete type
88 | struct vhost_vring_state state;
| ^~~~~
../examples/vhost_blk/blk_spec.h:89:27: error: field ‘addr’ has incomplete type
89 | struct vhost_vring_addr addr;
| ^~~~
[2465/2480] Compiling C object examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o
FAILED: examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o
gcc -Iexamples/dpdk-vhost_blk.p -Iexamples -I../examples -Iexamples/vhost_blk -I../examples/vhost_blk -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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-pointer-to-int-cast -D_GNU_SOURCE -m32 -march=native -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o -MF examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o.d -o examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o -c ../examples/vhost_blk/vhost_blk.c
In file included from ../examples/vhost_blk/vhost_blk.c:27:
../examples/vhost_blk/blk_spec.h:74:29: error: array type has incomplete element type ‘struct vhost_memory_region’
74 | struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
| ^~~~~~~
../examples/vhost_blk/blk_spec.h:88:28: error: field ‘state’ has incomplete type
88 | struct vhost_vring_state state;
| ^~~~~
../examples/vhost_blk/blk_spec.h:89:27: error: field ‘addr’ has incomplete type
89 | struct vhost_vring_addr addr;
| ^~~~
[2466/2480] Compiling C object examples/dpdk-vhost.p/vhost_virtio_net.c.o
FAILED: examples/dpdk-vhost.p/vhost_virtio_net.c.o
gcc -Iexamples/dpdk-vhost.p -Iexamples -I../examples -Iexamples/vhost -I../examples/vhost -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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-pointer-to-int-cast -D_GNU_SOURCE -m32 -march=native -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-vhost.p/vhost_virtio_net.c.o -MF examples/dpdk-vhost.p/vhost_virtio_net.c.o.d -o examples/dpdk-vhost.p/vhost_virtio_net.c.o -c ../examples/vhost/virtio_net.c
../examples/vhost/virtio_net.c: In function ‘enqueue_pkt’:
../examples/vhost/virtio_net.c:74:18: error: invalid use of undefined type ‘struct vring_desc’
74 | desc = &vr->desc[desc_idx];
| ^
../examples/vhost/virtio_net.c:75:24: error: invalid use of undefined type ‘struct vring_desc’
75 | desc_chunck_len = desc->len;
| ^~
../examples/vhost/virtio_net.c:76:19: error: invalid use of undefined type ‘struct vring_desc’
76 | desc_gaddr = desc->addr;
| ^~
In file included from ../lib/eal/x86/include/rte_spinlock.h:15,
from ../lib/mempool/rte_mempool.h:43,
from ../lib/mbuf/rte_mbuf.h:38,
from ../examples/vhost/virtio_net.c:9:
../examples/vhost/virtio_net.c:84:19: error: invalid use of undefined type ‘struct vring_desc’
84 | if (unlikely(desc->len < dev->hdr_len) || !desc_addr)
| ^~
../lib/eal/include/rte_branch_prediction.h:38:41: note: in definition of macro ‘unlikely’
38 | #define unlikely(x) __builtin_expect(!!(x), 0)
| ^
../examples/vhost/virtio_net.c:115:25: error: invalid use of undefined type ‘struct vring_desc’
115 | desc_chunck_len = desc->len - dev->hdr_len;
| ^~
../examples/vhost/virtio_net.c:126:20: error: invalid use of undefined type ‘struct vring_desc’
126 | desc_avail = desc->len - dev->hdr_len;
| ^~
../examples/vhost/virtio_net.c:141:13: error: invalid use of undefined type ‘struct vring_desc’
141 | if ((desc->flags & VRING_DESC_F_NEXT) == 0) {
| ^~
../examples/vhost/virtio_net.c:141:23: error: ‘VRING_DESC_F_NEXT’ undeclared (first use in this function)
141 | if ((desc->flags & VRING_DESC_F_NEXT) == 0) {
| ^~~~~~~~~~~~~~~~~
../examples/vhost/virtio_net.c:141:23: note: each undeclared identifier is reported only once for each function it appears in
In file included from ../lib/eal/x86/include/rte_spinlock.h:15,
from ../lib/mempool/rte_mempool.h:43,
from ../lib/mbuf/rte_mbuf.h:38,
from ../examples/vhost/virtio_net.c:9:
../examples/vhost/virtio_net.c:145:21: error: invalid use of undefined type ‘struct vring_desc’
145 | if (unlikely(desc->next >= vr->size ||
| ^~
../lib/eal/include/rte_branch_prediction.h:38:41: note: in definition of macro ‘unlikely’
38 | #define unlikely(x) __builtin_expect(!!(x), 0)
| ^
../examples/vhost/virtio_net.c:149:25: error: invalid use of undefined type ‘struct vring_desc’
149 | desc = &vr->desc[desc->next];
| ^~
../examples/vhost/virtio_net.c:150:26: error: invalid use of undefined type ‘struct vring_desc’
150 | desc_chunck_len = desc->len;
| ^~
../examples/vhost/virtio_net.c:151:21: error: invalid use of undefined type ‘struct vring_desc’
151 | desc_gaddr = desc->addr;
| ^~
../examples/vhost/virtio_net.c:158:22: error: invalid use of undefined type ‘struct vring_desc’
158 | desc_avail = desc->len;
| ^~
../examples/vhost/virtio_net.c: In function ‘vs_enqueue_pkts’:
../examples/vhost/virtio_net.c:200:40: error: invalid use of undefined type ‘struct vring_avail’
200 | avail_idx = __atomic_load_n(&vr->avail->idx, __ATOMIC_ACQUIRE);
| ^~
../examples/vhost/virtio_net.c:209:26: error: invalid use of undefined type ‘struct vring_avail’
209 | rte_prefetch0(&vr->avail->ring[start_idx & (vr->size - 1)]);
| ^~
../examples/vhost/virtio_net.c:212:30: error: invalid use of undefined type ‘struct vring_avail’
212 | desc_indexes[i] = vr->avail->ring[used_idx];
| ^~
../examples/vhost/virtio_net.c:213:11: error: invalid use of undefined type ‘struct vring_used’
213 | vr->used->ring[used_idx].id = desc_indexes[i];
| ^~
../examples/vhost/virtio_net.c:214:11: error: invalid use of undefined type ‘struct vring_used’
214 | vr->used->ring[used_idx].len = pkts[i]->pkt_len +
| ^~
../examples/vhost/virtio_net.c:218:25: error: invalid use of undefined type ‘struct vring_desc’
218 | rte_prefetch0(&vr->desc[desc_indexes[0]]);
| ^
../examples/vhost/virtio_net.c:226:12: error: invalid use of undefined type ‘struct vring_used’
226 | vr->used->ring[used_idx].len = dev->hdr_len;
| ^~
../examples/vhost/virtio_net.c:230:27: error: invalid use of undefined type ‘struct vring_desc’
230 | rte_prefetch0(&vr->desc[desc_indexes[i+1]]);
| ^
../examples/vhost/virtio_net.c:233:30: error: invalid use of undefined type ‘struct vring_used’
233 | __atomic_add_fetch(&vr->used->idx, count, __ATOMIC_RELEASE);
| ^~
../examples/vhost/virtio_net.c:194:11: error: variable ‘used_idx’ set but not used [-Werror=unused-but-set-variable]
194 | uint16_t used_idx;
| ^~~~~~~~
../examples/vhost/virtio_net.c: In function ‘dequeue_pkt’:
../examples/vhost/virtio_net.c:256:18: error: invalid use of undefined type ‘struct vring_desc’
256 | desc = &vr->desc[desc_idx];
| ^
In file included from ../lib/eal/x86/include/rte_spinlock.h:15,
from ../lib/mempool/rte_mempool.h:43,
from ../lib/mbuf/rte_mbuf.h:38,
from ../examples/vhost/virtio_net.c:9:
../examples/vhost/virtio_net.c:257:20: error: invalid use of undefined type ‘struct vring_desc’
257 | if (unlikely((desc->len < dev->hdr_len)) ||
| ^~
../lib/eal/include/rte_branch_prediction.h:38:41: note: in definition of macro ‘unlikely’
38 | #define unlikely(x) __builtin_expect(!!(x), 0)
| ^
../examples/vhost/virtio_net.c:258:9: error: invalid use of undefined type ‘struct vring_desc’
258 | (desc->flags & VRING_DESC_F_INDIRECT))
| ^~
../examples/vhost/virtio_net.c:258:19: error: ‘VRING_DESC_F_INDIRECT’ undeclared (first use in this function)
258 | (desc->flags & VRING_DESC_F_INDIRECT))
| ^~~~~~~~~~~~~~~~~~~~~
../examples/vhost/virtio_net.c:261:24: error: invalid use of undefined type ‘struct vring_desc’
261 | desc_chunck_len = desc->len;
| ^~
../examples/vhost/virtio_net.c:262:19: error: invalid use of undefined type ‘struct vring_desc’
262 | desc_gaddr = desc->addr;
| ^~
../examples/vhost/virtio_net.c:277:23: error: invalid use of undefined type ‘struct vring_desc’
277 | desc = &vr->desc[desc->next];
| ^~
../examples/vhost/virtio_net.c:278:24: error: invalid use of undefined type ‘struct vring_desc’
278 | desc_chunck_len = desc->len;
| ^~
../examples/vhost/virtio_net.c:279:19: error: invalid use of undefined type ‘struct vring_desc’
279 | desc_gaddr = desc->addr;
| ^~
../examples/vhost/virtio_net.c:287:20: error: invalid use of undefined type ‘struct vring_desc’
287 | desc_avail = desc->len;
| ^~
../examples/vhost/virtio_net.c:307:13: error: invalid use of undefined type ‘struct vring_desc’
307 | if ((desc->flags & VRING_DESC_F_NEXT) == 0)
| ^~
../examples/vhost/virtio_net.c:307:23: error: ‘VRING_DESC_F_NEXT’ undeclared (first use in this function)
307 | if ((desc->flags & VRING_DESC_F_NEXT) == 0)
| ^~~~~~~~~~~~~~~~~
In file included from ../lib/eal/x86/include/rte_spinlock.h:15,
from ../lib/mempool/rte_mempool.h:43,
from ../lib/mbuf/rte_mbuf.h:38,
from ../examples/vhost/virtio_net.c:9:
../examples/vhost/virtio_net.c:310:21: error: invalid use of undefined type ‘struct vring_desc’
310 | if (unlikely(desc->next >= vr->size ||
| ^~
../lib/eal/include/rte_branch_prediction.h:38:41: note: in definition of macro ‘unlikely’
38 | #define unlikely(x) __builtin_expect(!!(x), 0)
| ^
../examples/vhost/virtio_net.c:313:25: error: invalid use of undefined type ‘struct vring_desc’
313 | desc = &vr->desc[desc->next];
| ^~
../examples/vhost/virtio_net.c:315:26: error: invalid use of undefined type ‘struct vring_desc’
315 | desc_chunck_len = desc->len;
| ^~
../examples/vhost/virtio_net.c:316:21: error: invalid use of undefined type ‘struct vring_desc’
316 | desc_gaddr = desc->addr;
| ^~
../examples/vhost/virtio_net.c:324:22: error: invalid use of undefined type ‘struct vring_desc’
324 | desc_avail = desc->len;
| ^~
../examples/vhost/virtio_net.c: In function ‘vs_dequeue_pkts’:
../examples/vhost/virtio_net.c:381:43: error: invalid use of undefined type ‘struct vring_avail’
381 | free_entries = __atomic_load_n(&vr->avail->idx, __ATOMIC_ACQUIRE) -
| ^~
../examples/vhost/virtio_net.c:389:26: error: invalid use of undefined type ‘struct vring_avail’
389 | rte_prefetch0(&vr->avail->ring[avail_idx]);
| ^~
../examples/vhost/virtio_net.c:390:25: error: invalid use of undefined type ‘struct vring_used’
390 | rte_prefetch0(&vr->used->ring[used_idx]);
| ^~
../examples/vhost/virtio_net.c:405:30: error: invalid use of undefined type ‘struct vring_avail’
405 | desc_indexes[i] = vr->avail->ring[avail_idx];
| ^~
../examples/vhost/virtio_net.c:407:11: error: invalid use of undefined type ‘struct vring_used’
407 | vr->used->ring[used_idx].id = desc_indexes[i];
| ^~
../examples/vhost/virtio_net.c:408:11: error: invalid use of undefined type ‘struct vring_used’
408 | vr->used->ring[used_idx].len = 0;
| ^~
../examples/vhost/virtio_net.c:412:25: error: invalid use of undefined type ‘struct vring_desc’
412 | rte_prefetch0(&vr->desc[desc_indexes[0]]);
| ^
../examples/vhost/virtio_net.c:417:27: error: invalid use of undefined type ‘struct vring_desc’
417 | rte_prefetch0(&vr->desc[desc_indexes[i + 1]]);
| ^
../examples/vhost/virtio_net.c:437:30: error: invalid use of undefined type ‘struct vring_used’
437 | __atomic_add_fetch(&vr->used->idx, i, __ATOMIC_ACQ_REL);
| ^~
../examples/vhost/virtio_net.c:376:11: error: variable ‘avail_idx’ set but not used [-Werror=unused-but-set-variable]
376 | uint16_t avail_idx;
| ^~~~~~~~~
../examples/vhost/virtio_net.c:373:11: error: variable ‘used_idx’ set but not used [-Werror=unused-but-set-variable]
373 | uint32_t used_idx;
| ^~~~~~~~
cc1: all warnings being treated as errors
[2467/2480] Linking target examples/dpdk-skeleton
[2468/2480] Compiling C object examples/dpdk-vdpa.p/vdpa_main.c.o
[2469/2480] Linking target examples/dpdk-efd_server
[2470/2480] Linking target app/test/dpdk-test
ninja: build stopped
*Build Failed #10:
OS: UB2004-64
Target: x86_64-native-linuxapp-clang
FAILED: examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o
clang -Iexamples/dpdk-vhost_blk.p -Iexamples -I../examples -Iexamples/vhost_blk -I../examples/vhost_blk -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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-missing-field-initializers -D_GNU_SOURCE -march=native -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o -MF examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o.d -o examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o -c ../examples/vhost_blk/vhost_blk_compat.c
In file included from ../examples/vhost_blk/vhost_blk_compat.c:15:
../examples/vhost_blk/blk_spec.h:74:36: error: array has incomplete element type 'struct vhost_memory_region'
struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
^
../examples/vhost_blk/blk_spec.h:74:9: note: forward declaration of 'struct vhost_memory_region'
struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
^
../examples/vhost_blk/blk_spec.h:88:28: error: field has incomplete type 'struct vhost_vring_state'
struct vhost_vring_state state;
^
../examples/vhost_blk/blk_spec.h:88:10: note: forward declaration of 'struct vhost_vring_state'
struct vhost_vring_state state;
^
../examples/vhost_blk/blk_spec.h:89:27: error: field has incomplete type 'struct vhost_vring_addr'
struct vhost_vring_addr addr;
^
../examples/vhost_blk/blk_spec.h:89:10: note: forward declaration of 'struct vhost_vring_addr'
struct vhost_vring_addr addr;
^
3 errors generated.
[3549/3585] Compiling C object examples/dpdk-efd_server.p/server_node_efd_server_init.c.o
[3550/3585] Linking target examples/dpdk-pipeline
[3551/3585] Compiling C object examples/dpdk-efd_node.p/server_node_efd_node_node.c.o
[3552/3585] Linking target examples/dpdk-qos_meter
[3553/3585] Compiling C object examples/dpdk-efd_server.p/server_node_efd_server_main.c.o
[3554/3585] Compiling C object examples/dpdk-packet_ordering.p/packet_ordering_main.c.o
[3555/3585] Linking target examples/dpdk-qos_sched
[3556/3585] Compiling C object app/test/dpdk-test.p/test_ring.c.o
[3557/3585] Compiling C object app/test/dpdk-test.p/test_ring_perf.c.o
ninja: build stopped
*Build Failed #11:
OS: UB2004-64
Target: x86_64-native-linuxapp-gcc
FAILED: examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o
gcc -Iexamples/dpdk-vhost_blk.p -Iexamples -I../examples -Iexamples/vhost_blk -I../examples/vhost_blk -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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 -D_GNU_SOURCE -march=native -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o -MF examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o.d -o examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk.c.o -c ../examples/vhost_blk/vhost_blk.c
In file included from ../examples/vhost_blk/vhost_blk.c:27:
../examples/vhost_blk/blk_spec.h:74:29: error: array type has incomplete element type ‘struct vhost_memory_region’
74 | struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
| ^~~~~~~
../examples/vhost_blk/blk_spec.h:88:28: error: field ‘state’ has incomplete type
88 | struct vhost_vring_state state;
| ^~~~~
../examples/vhost_blk/blk_spec.h:89:27: error: field ‘addr’ has incomplete type
89 | struct vhost_vring_addr addr;
| ^~~~
[3555/3585] Compiling C object examples/dpdk-efd_node.p/server_node_efd_node_node.c.o
[3556/3585] Compiling C object examples/dpdk-efd_server.p/server_node_efd_server_main.c.o
[3557/3585] Linking target examples/dpdk-pipeline
[3558/3585] Linking target examples/dpdk-ptpclient
[3559/3585] Linking target examples/dpdk-qos_sched
[3560/3585] Linking target examples/dpdk-packet_ordering
[3561/3585] Linking target examples/dpdk-qos_meter
[3562/3585] Linking target examples/dpdk-skeleton
[3563/3585] Linking target examples/dpdk-rxtx_callbacks
ninja: build stopped
*Build Failed #12:
OS: UB2004-64
Target: x86_64-native-linuxapp-icc
FAILED: examples/dpdk-vhost.p/vhost_virtio_net.c.o
icc -Iexamples/dpdk-vhost.p -Iexamples -I../examples -Iexamples/vhost -I../examples/vhost -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -pipe -D_FILE_OFFSET_BITS=64 -Wall -w3 -diag-disable:remark -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -diag-disable=181 -diag-disable=188 -diag-disable=2203 -diag-disable=2279 -diag-disable=2557 -diag-disable=3179 -diag-disable=3656 -D_GNU_SOURCE -march=native -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-vhost.p/vhost_virtio_net.c.o -MF examples/dpdk-vhost.p/vhost_virtio_net.c.o.d -o examples/dpdk-vhost.p/vhost_virtio_net.c.o -c ../examples/vhost/virtio_net.c
../examples/vhost/virtio_net.c(74): error: expression must be a pointer to a complete object type
desc = &vr->desc[desc_idx];
^
../examples/vhost/virtio_net.c(75): error: pointer to incomplete class type is not allowed
desc_chunck_len = desc->len;
^
../examples/vhost/virtio_net.c(76): error: pointer to incomplete class type is not allowed
desc_gaddr = desc->addr;
^
../examples/vhost/virtio_net.c(84): error: pointer to incomplete class type is not allowed
if (unlikely(desc->len < dev->hdr_len) || !desc_addr)
^
../examples/vhost/virtio_net.c(115): error: pointer to incomplete class type is not allowed
desc_chunck_len = desc->len - dev->hdr_len;
^
../examples/vhost/virtio_net.c(126): error: pointer to incomplete class type is not allowed
desc_avail = desc->len - dev->hdr_len;
^
../examples/vhost/virtio_net.c(141): error: pointer to incomplete class type is not allowed
if ((desc->flags & VRING_DESC_F_NEXT) == 0) {
^
../examples/vhost/virtio_net.c(141): error: identifier "VRING_DESC_F_NEXT" is undefined
if ((desc->flags & VRING_DESC_F_NEXT) == 0) {
^
../examples/vhost/virtio_net.c(145): error: pointer to incomplete class type is not allowed
if (unlikely(desc->next >= vr->size ||
^
../examples/vhost/virtio_net.c(149): error: pointer to incomplete class type is not allowed
desc = &vr->desc[desc->next];
^
../examples/vhost/virtio_net.c(149): error: expression must be a pointer to a complete object type
desc = &vr->desc[desc->next];
^
../examples/vhost/virtio_net.c(150): error: pointer to incomplete class type is not allowed
desc_chunck_len = desc->len;
^
../examples/vhost/virtio_net.c(151): error: pointer to incomplete class type is not allowed
desc_gaddr = desc->addr;
^
../examples/vhost/virtio_net.c(158): error: pointer to incomplete class type is not allowed
desc_avail = desc->len;
^
../examples/vhost/virtio_net.c(200): error: pointer to incomplete class type is not allowed
avail_idx = __atomic_load_n(&vr->avail->idx, __ATOMIC_ACQUIRE);
^
../examples/vhost/virtio_net.c(209): error: pointer to incomplete class type is not allowed
rte_prefetch0(&vr->avail->ring[start_idx & (vr->size - 1)]);
^
../examples/vhost/virtio_net.c(212): error: pointer to incomplete class type is not allowed
desc_indexes[i] = vr->avail->ring[used_idx];
^
../examples/vhost/virtio_net.c(213): error: pointer to incomplete class type is not allowed
vr->used->ring[used_idx].id = desc_indexes[i];
^
../examples/vhost/virtio_net.c(214): error: pointer to incomplete class type is not allowed
vr->used->ring[used_idx].len = pkts[i]->pkt_len +
^
../examples/vhost/virtio_net.c(218): error: expression must be a pointer to a complete object type
rte_prefetch0(&vr->desc[desc_indexes[0]]);
^
../examples/vhost/virtio_net.c(226): error: pointer to incomplete class type is not allowed
vr->used->ring[used_idx].len = dev->hdr_len;
^
../examples/vhost/virtio_net.c(230): error: expression must be a pointer to a complete object type
rte_prefetch0(&vr->desc[desc_indexes[i+1]]);
^
../examples/vhost/virtio_net.c(233): error: pointer to incomplete class type is not allowed
__atomic_add_fetch(&vr->used->idx, count, __ATOMIC_RELEASE);
^
../examples/vhost/virtio_net.c(256): error: expression must be a pointer to a complete object type
desc = &vr->desc[desc_idx];
^
../examples/vhost/virtio_net.c(257): error: pointer to incomplete class type is not allowed
if (unlikely((desc->len < dev->hdr_len)) ||
^
../examples/vhost/virtio_net.c(258): error: pointer to incomplete class type is not allowed
(desc->flags & VRING_DESC_F_INDIRECT))
^
../examples/vhost/virtio_net.c(258): error: identifier "VRING_DESC_F_INDIRECT" is undefined
(desc->flags & VRING_DESC_F_INDIRECT))
^
../examples/vhost/virtio_net.c(261): error: pointer to incomplete class type is not allowed
desc_chunck_len = desc->len;
^
../examples/vhost/virtio_net.c(262): error: pointer to incomplete class type is not allowed
desc_gaddr = desc->addr;
^
../examples/vhost/virtio_net.c(277): error: pointer to incomplete class type is not allowed
desc = &vr->desc[desc->next];
^
../examples/vhost/virtio_net.c(277): error: expression must be a pointer to a complete object type
desc = &vr->desc[desc->next];
^
../examples/vhost/virtio_net.c(278): error: pointer to incomplete class type is not allowed
desc_chunck_len = desc->len;
^
../examples/vhost/virtio_net.c(279): error: pointer to incomplete class type is not allowed
desc_gaddr = desc->addr;
^
../examples/vhost/virtio_net.c(287): error: pointer to incomplete class type is not allowed
desc_avail = desc->len;
^
../examples/vhost/virtio_net.c(307): error: pointer to incomplete class type is not allowed
if ((desc->flags & VRING_DESC_F_NEXT) == 0)
^
../examples/vhost/virtio_net.c(307): error: identifier "VRING_DESC_F_NEXT" is undefined
if ((desc->flags & VRING_DESC_F_NEXT) == 0)
^
../examples/vhost/virtio_net.c(310): error: pointer to incomplete class type is not allowed
if (unlikely(desc->next >= vr->size ||
^
../examples/vhost/virtio_net.c(313): error: pointer to incomplete class type is not allowed
desc = &vr->desc[desc->next];
^
../examples/vhost/virtio_net.c(313): error: expression must be a pointer to a complete object type
desc = &vr->desc[desc->next];
^
../examples/vhost/virtio_net.c(315): error: pointer to incomplete class type is not allowed
desc_chunck_len = desc->len;
^
../examples/vhost/virtio_net.c(316): error: pointer to incomplete class type is not allowed
desc_gaddr = desc->addr;
^
../examples/vhost/virtio_net.c(324): error: pointer to incomplete class type is not allowed
desc_avail = desc->len;
^
../examples/vhost/virtio_net.c(381): error: pointer to incomplete class type is not allowed
free_entries = __atomic_load_n(&vr->avail->idx, __ATOMIC_ACQUIRE) -
^
../examples/vhost/virtio_net.c(389): error: pointer to incomplete class type is not allowed
rte_prefetch0(&vr->avail->ring[avail_idx]);
^
../examples/vhost/virtio_net.c(390): error: pointer to incomplete class type is not allowed
rte_prefetch0(&vr->used->ring[used_idx]);
^
../examples/vhost/virtio_net.c(405): error: pointer to incomplete class type is not allowed
desc_indexes[i] = vr->avail->ring[avail_idx];
^
../examples/vhost/virtio_net.c(407): error: pointer to incomplete class type is not allowed
vr->used->ring[used_idx].id = desc_indexes[i];
^
../examples/vhost/virtio_net.c(408): error: pointer to incomplete class type is not allowed
vr->used->ring[used_idx].len = 0;
^
../examples/vhost/virtio_net.c(412): error: expression must be a pointer to a complete object type
rte_prefetch0(&vr->desc[desc_indexes[0]]);
^
../examples/vhost/virtio_net.c(417): error: expression must be a pointer to a complete object type
rte_prefetch0(&vr->desc[desc_indexes[i + 1]]);
^
../examples/vhost/virtio_net.c(437): error: pointer to incomplete class type is not allowed
__atomic_add_fetch(&vr->used->idx, i, __ATOMIC_ACQ_REL);
^
compilation aborted for ../examples/vhost/virtio_net.c (code 2)
[3054/3083] Compiling C object examples/dpdk-rxtx_callbacks.p/rxtx_callbacks_main.c.o
[3055/3083] Linking target examples/dpdk-ptpclient
[3056/3083] Compiling C object examples/dpdk-vdpa.p/vdpa_main.c.o
[3057/3083] Compiling C object examples/dpdk-efd_server.p/server_node_efd_server_main.c.o
[3058/3083] Compiling C object examples/dpdk-efd_node.p/server_node_efd_node_node.c.o
[3059/3083] Linking target examples/dpdk-service_cores
[3060/3083] Linking target examples/dpdk-qos_sched
[3061/3083] Compiling C object app/test/dpdk-test.p/test_ring_perf.c.o
[3062/3083] Compiling C object app/test/dpdk-test.p/test_memcpy_perf.c.o
ninja: build stopped
*Build Failed #13:
OS: UB2110-64
Target: x86_64-native-linuxapp-gcc
FAILED: examples/dpdk-vhost.p/vhost_virtio_net.c.o
gcc -Iexamples/dpdk-vhost.p -Iexamples -I../examples -Iexamples/vhost -I../examples/vhost -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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 -D_GNU_SOURCE -march=native -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-vhost.p/vhost_virtio_net.c.o -MF examples/dpdk-vhost.p/vhost_virtio_net.c.o.d -o examples/dpdk-vhost.p/vhost_virtio_net.c.o -c ../examples/vhost/virtio_net.c
../examples/vhost/virtio_net.c: In function ‘enqueue_pkt’:
../examples/vhost/virtio_net.c:74:25: error: invalid use of undefined type ‘struct vring_desc’
74 | desc = &vr->desc[desc_idx];
| ^
../examples/vhost/virtio_net.c:75:31: error: invalid use of undefined type ‘struct vring_desc’
75 | desc_chunck_len = desc->len;
| ^~
../examples/vhost/virtio_net.c:76:26: error: invalid use of undefined type ‘struct vring_desc’
76 | desc_gaddr = desc->addr;
| ^~
In file included from ../lib/eal/x86/include/rte_spinlock.h:15,
from ../lib/mempool/rte_mempool.h:43,
from ../lib/mbuf/rte_mbuf.h:38,
from ../examples/vhost/virtio_net.c:9:
../examples/vhost/virtio_net.c:84:26: error: invalid use of undefined type ‘struct vring_desc’
84 | if (unlikely(desc->len < dev->hdr_len) || !desc_addr)
| ^~
../lib/eal/include/rte_branch_prediction.h:38:45: note: in definition of macro ‘unlikely’
38 | #define unlikely(x) __builtin_expect(!!(x), 0)
| ^
../examples/vhost/virtio_net.c:115:39: error: invalid use of undefined type ‘struct vring_desc’
115 | desc_chunck_len = desc->len - dev->hdr_len;
| ^~
../examples/vhost/virtio_net.c:126:27: error: invalid use of undefined type ‘struct vring_desc’
126 | desc_avail = desc->len - dev->hdr_len;
| ^~
../examples/vhost/virtio_net.c:141:34: error: invalid use of undefined type ‘struct vring_desc’
141 | if ((desc->flags & VRING_DESC_F_NEXT) == 0) {
| ^~
../examples/vhost/virtio_net.c:141:44: error: ‘VRING_DESC_F_NEXT’ undeclared (first use in this function)
141 | if ((desc->flags & VRING_DESC_F_NEXT) == 0) {
| ^~~~~~~~~~~~~~~~~
../examples/vhost/virtio_net.c:141:44: note: each undeclared identifier is reported only once for each function it appears in
In file included from ../lib/eal/x86/include/rte_spinlock.h:15,
from ../lib/mempool/rte_mempool.h:43,
from ../lib/mbuf/rte_mbuf.h:38,
from ../examples/vhost/virtio_net.c:9:
../examples/vhost/virtio_net.c:145:42: error: invalid use of undefined type ‘struct vring_desc’
145 | if (unlikely(desc->next >= vr->size ||
| ^~
../lib/eal/include/rte_branch_prediction.h:38:45: note: in definition of macro ‘unlikely’
38 | #define unlikely(x) __builtin_expect(!!(x), 0)
| ^
../examples/vhost/virtio_net.c:149:46: error: invalid use of undefined type ‘struct vring_desc’
149 | desc = &vr->desc[desc->next];
| ^~
../examples/vhost/virtio_net.c:150:47: error: invalid use of undefined type ‘struct vring_desc’
150 | desc_chunck_len = desc->len;
| ^~
../examples/vhost/virtio_net.c:151:42: error: invalid use of undefined type ‘struct vring_desc’
151 | desc_gaddr = desc->addr;
| ^~
../examples/vhost/virtio_net.c:158:43: error: invalid use of undefined type ‘struct vring_desc’
158 | desc_avail = desc->len;
| ^~
../examples/vhost/virtio_net.c: In function ‘vs_enqueue_pkts’:
../examples/vhost/virtio_net.c:200:47: error: invalid use of undefined type ‘struct vring_avail’
200 | avail_idx = __atomic_load_n(&vr->avail->idx, __ATOMIC_ACQUIRE);
| ^~
../examples/vhost/virtio_net.c:209:33: error: invalid use of undefined type ‘struct vring_avail’
209 | rte_prefetch0(&vr->avail->ring[start_idx & (vr->size - 1)]);
| ^~
../examples/vhost/virtio_net.c:212:44: error: invalid use of undefined type ‘struct vring_avail’
212 | desc_indexes[i] = vr->avail->ring[used_idx];
| ^~
../examples/vhost/virtio_net.c:213:25: error: invalid use of undefined type ‘struct vring_used’
213 | vr->used->ring[used_idx].id = desc_indexes[i];
| ^~
../examples/vhost/virtio_net.c:214:25: error: invalid use of undefined type ‘struct vring_used’
214 | vr->used->ring[used_idx].len = pkts[i]->pkt_len +
| ^~
../examples/vhost/virtio_net.c:218:32: error: invalid use of undefined type ‘struct vring_desc’
218 | rte_prefetch0(&vr->desc[desc_indexes[0]]);
| ^
../examples/vhost/virtio_net.c:226:33: error: invalid use of undefined type ‘struct vring_used’
226 | vr->used->ring[used_idx].len = dev->hdr_len;
| ^~
../examples/vhost/virtio_net.c:230:48: error: invalid use of undefined type ‘struct vring_desc’
230 | rte_prefetch0(&vr->desc[desc_indexes[i+1]]);
| ^
../examples/vhost/virtio_net.c:233:37: error: invalid use of undefined type ‘struct vring_used’
233 | __atomic_add_fetch(&vr->used->idx, count, __ATOMIC_RELEASE);
| ^~
../examples/vhost/virtio_net.c:194:18: error: variable ‘used_idx’ set but not used [-Werror=unused-but-set-variable]
194 | uint16_t used_idx;
| ^~~~~~~~
../examples/vhost/virtio_net.c: In function ‘dequeue_pkt’:
../examples/vhost/virtio_net.c:256:25: error: invalid use of undefined type ‘struct vring_desc’
256 | desc = &vr->desc[desc_idx];
| ^
In file included from ../lib/eal/x86/include/rte_spinlock.h:15,
from ../lib/mempool/rte_mempool.h:43,
from ../lib/mbuf/rte_mbuf.h:38,
from ../examples/vhost/virtio_net.c:9:
../examples/vhost/virtio_net.c:257:27: error: invalid use of undefined type ‘struct vring_desc’
257 | if (unlikely((desc->len < dev->hdr_len)) ||
| ^~
../lib/eal/include/rte_branch_prediction.h:38:45: note: in definition of macro ‘unlikely’
38 | #define unlikely(x) __builtin_expect(!!(x), 0)
| ^
../examples/vhost/virtio_net.c:258:30: error: invalid use of undefined type ‘struct vring_desc’
258 | (desc->flags & VRING_DESC_F_INDIRECT))
| ^~
../examples/vhost/virtio_net.c:258:40: error: ‘VRING_DESC_F_INDIRECT’ undeclared (first use in this function)
258 | (desc->flags & VRING_DESC_F_INDIRECT))
| ^~~~~~~~~~~~~~~~~~~~~
../examples/vhost/virtio_net.c:261:31: error: invalid use of undefined type ‘struct vring_desc’
261 | desc_chunck_len = desc->len;
| ^~
../examples/vhost/virtio_net.c:262:26: error: invalid use of undefined type ‘struct vring_desc’
262 | desc_gaddr = desc->addr;
| ^~
../examples/vhost/virtio_net.c:277:30: error: invalid use of undefined type ‘struct vring_desc’
277 | desc = &vr->desc[desc->next];
| ^~
../examples/vhost/virtio_net.c:278:31: error: invalid use of undefined type ‘struct vring_desc’
278 | desc_chunck_len = desc->len;
| ^~
../examples/vhost/virtio_net.c:279:26: error: invalid use of undefined type ‘struct vring_desc’
279 | desc_gaddr = desc->addr;
| ^~
../examples/vhost/virtio_net.c:287:27: error: invalid use of undefined type ‘struct vring_desc’
287 | desc_avail = desc->len;
| ^~
../examples/vhost/virtio_net.c:307:34: error: invalid use of undefined type ‘struct vring_desc’
307 | if ((desc->flags & VRING_DESC_F_NEXT) == 0)
| ^~
../examples/vhost/virtio_net.c:307:44: error: ‘VRING_DESC_F_NEXT’ undeclared (first use in this function)
307 | if ((desc->flags & VRING_DESC_F_NEXT) == 0)
| ^~~~~~~~~~~~~~~~~
In file included from ../lib/eal/x86/include/rte_spinlock.h:15,
from ../lib/mempool/rte_mempool.h:43,
from ../lib/mbuf/rte_mbuf.h:38,
from ../examples/vhost/virtio_net.c:9:
../examples/vhost/virtio_net.c:310:42: error: invalid use of undefined type ‘struct vring_desc’
310 | if (unlikely(desc->next >= vr->size ||
| ^~
../lib/eal/include/rte_branch_prediction.h:38:45: note: in definition of macro ‘unlikely’
38 | #define unlikely(x) __builtin_expect(!!(x), 0)
| ^
../examples/vhost/virtio_net.c:313:46: error: invalid use of undefined type ‘struct vring_desc’
313 | desc = &vr->desc[desc->next];
| ^~
../examples/vhost/virtio_net.c:315:47: error: invalid use of undefined type ‘struct vring_desc’
315 | desc_chunck_len = desc->len;
| ^~
../examples/vhost/virtio_net.c:316:42: error: invalid use of undefined type ‘struct vring_desc’
316 | desc_gaddr = desc->addr;
| ^~
../examples/vhost/virtio_net.c:324:43: error: invalid use of undefined type ‘struct vring_desc’
324 | desc_avail = desc->len;
| ^~
../examples/vhost/virtio_net.c: In function ‘vs_dequeue_pkts’:
../examples/vhost/virtio_net.c:381:50: error: invalid use of undefined type ‘struct vring_avail’
381 | free_entries = __atomic_load_n(&vr->avail->idx, __ATOMIC_ACQUIRE) -
| ^~
../examples/vhost/virtio_net.c:389:33: error: invalid use of undefined type ‘struct vring_avail’
389 | rte_prefetch0(&vr->avail->ring[avail_idx]);
| ^~
../examples/vhost/virtio_net.c:390:32: error: invalid use of undefined type ‘struct vring_used’
390 | rte_prefetch0(&vr->used->ring[used_idx]);
| ^~
../examples/vhost/virtio_net.c:405:44: error: invalid use of undefined type ‘struct vring_avail’
405 | desc_indexes[i] = vr->avail->ring[avail_idx];
| ^~
../examples/vhost/virtio_net.c:407:25: error: invalid use of undefined type ‘struct vring_used’
407 | vr->used->ring[used_idx].id = desc_indexes[i];
| ^~
../examples/vhost/virtio_net.c:408:25: error: invalid use of undefined type ‘struct vring_used’
408 | vr->used->ring[used_idx].len = 0;
| ^~
../examples/vhost/virtio_net.c:412:32: error: invalid use of undefined type ‘struct vring_desc’
412 | rte_prefetch0(&vr->desc[desc_indexes[0]]);
| ^
../examples/vhost/virtio_net.c:417:48: error: invalid use of undefined type ‘struct vring_desc’
417 | rte_prefetch0(&vr->desc[desc_indexes[i + 1]]);
| ^
../examples/vhost/virtio_net.c:437:37: error: invalid use of undefined type ‘struct vring_used’
437 | __atomic_add_fetch(&vr->used->idx, i, __ATOMIC_ACQ_REL);
| ^~
../examples/vhost/virtio_net.c:376:18: error: variable ‘avail_idx’ set but not used [-Werror=unused-but-set-variable]
376 | uint16_t avail_idx;
| ^~~~~~~~~
../examples/vhost/virtio_net.c:373:18: error: variable ‘used_idx’ set but not used [-Werror=unused-but-set-variable]
373 | uint32_t used_idx;
| ^~~~~~~~
cc1: all warnings being treated as errors
[3567/3599] Compiling C object examples/dpdk-efd_server.p/server_node_efd_server_main.c.o
[3568/3599] Compiling C object examples/dpdk-efd_node.p/server_node_efd_node_node.c.o
[3569/3599] Linking target examples/dpdk-ptpclient
[3570/3599] Linking target examples/dpdk-pipeline
[3571/3599] Linking target examples/dpdk-qos_meter
[3572/3599] Linking target examples/dpdk-timer
[3573/3599] Linking target examples/dpdk-rxtx_callbacks
[3574/3599] Linking target examples/dpdk-qos_sched
[3575/3599] Linking target examples/dpdk-packet_ordering
ninja: build stopped
*Build Failed #14:
OS: RHEL85-64
Target: x86_64-native-linuxapp-gcc
FAILED: examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o
gcc -Iexamples/dpdk-vhost_blk.p -Iexamples -I../examples -Iexamples/vhost_blk -I../examples/vhost_blk -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -march=native -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o -MF examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o.d -o examples/dpdk-vhost_blk.p/vhost_blk_vhost_blk_compat.c.o -c ../examples/vhost_blk/vhost_blk_compat.c
In file included from ../examples/vhost_blk/vhost_blk_compat.c:15:
../examples/vhost_blk/blk_spec.h:74:29: error: array type has incomplete element type ‘struct vhost_memory_region’
struct vhost_memory_region regions[VHOST_USER_MEMORY_MAX_NREGIONS];
^~~~~~~
../examples/vhost_blk/blk_spec.h:88:28: error: field ‘state’ has incomplete type
struct vhost_vring_state state;
^~~~~
../examples/vhost_blk/blk_spec.h:89:27: error: field ‘addr’ has incomplete type
struct vhost_vring_addr addr;
^~~~
[3490/3522] Compiling C object examples/dpdk-efd_node.p/server_node_efd_node_node.c.o
[3491/3522] Linking target examples/dpdk-qos_meter
[3492/3522] Compiling C object examples/dpdk-efd_server.p/server_node_efd_server_main.c.o
[3493/3522] Compiling C object examples/dpdk-rxtx_callbacks.p/rxtx_callbacks_main.c.o
[3494/3522] Compiling C object examples/dpdk-vhost.p/vhost_virtio_net.c.o
FAILED: examples/dpdk-vhost.p/vhost_virtio_net.c.o
gcc -Iexamples/dpdk-vhost.p -Iexamples -I../examples -Iexamples/vhost -I../examples/vhost -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/vhost -I../lib/vhost -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -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-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -march=native -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-vhost.p/vhost_virtio_net.c.o -MF examples/dpdk-vhost.p/vhost_virtio_net.c.o.d -o examples/dpdk-vhost.p/vhost_virtio_net.c.o -c ../examples/vhost/virtio_net.c
../examples/vhost/virtio_net.c: In function ‘enqueue_pkt’:
../examples/vhost/virtio_net.c:74:18: error: invalid use of undefined type ‘struct vring_desc’
desc = &vr->desc[desc_idx];
^
../examples/vhost/virtio_net.c:74:18: error: dereferencing pointer to incomplete type ‘struct vring_desc’
../examples/vhost/virtio_net.c:141:23: error: ‘VRING_DESC_F_NEXT’ undeclared (first use in this function); did you mean ‘RING_F_SC_DEQ’?
if ((desc->flags & VRING_DESC_F_NEXT) == 0) {
^~~~~~~~~~~~~~~~~
RING_F_SC_DEQ
../examples/vhost/virtio_net.c:141:23: note: each undeclared identifier is reported only once for each function it appears in
../examples/vhost/virtio_net.c: In function ‘vs_enqueue_pkts’:
../examples/vhost/virtio_net.c:200:40: error: dereferencing pointer to incomplete type ‘struct vring_avail’
avail_idx = __atomic_load_n(&vr->avail->idx, __ATOMIC_ACQUIRE);
^~
../examples/vhost/virtio_net.c:213:11: error: dereferencing pointer to incomplete type ‘struct vring_used’
vr->used->ring[used_idx].id = desc_indexes[i];
^~
../examples/vhost/virtio_net.c:218:25: error: invalid use of undefined type ‘struct vring_desc’
rte_prefetch0(&vr->desc[desc_indexes[0]]);
^
../examples/vhost/virtio_net.c:230:27: error: invalid use of undefined type ‘struct vring_desc’
rte_prefetch0(&vr->desc[desc_indexes[i+1]]);
^
../examples/vhost/virtio_net.c:194:11: error: variable ‘used_idx’ set but not used [-Werror=unused-but-set-variable]
uint16_t used_idx;
^~~~~~~~
../examples/vhost/virtio_net.c: In function ‘dequeue_pkt’:
../examples/vhost/virtio_net.c:256:18: error: invalid use of undefined type ‘struct vring_desc’
desc = &vr->desc[desc_idx];
^
../examples/vhost/virtio_net.c:258:19: error: ‘VRING_DESC_F_INDIRECT’ undeclared (first use in this function); did you mean ‘RTE_MBUF_F_INDIRECT’?
(desc->flags & VRING_DESC_F_INDIRECT))
^~~~~~~~~~~~~~~~~~~~~
RTE_MBUF_F_INDIRECT
../examples/vhost/virtio_net.c:307:23: error: ‘VRING_DESC_F_NEXT’ undeclared (first use in this function); did you mean ‘RING_F_SC_DEQ’?
if ((desc->flags & VRING_DESC_F_NEXT) == 0)
^~~~~~~~~~~~~~~~~
RING_F_SC_DEQ
../examples/vhost/virtio_net.c: In function ‘vs_dequeue_pkts’:
../examples/vhost/virtio_net.c:412:25: error: invalid use of undefined type ‘struct vring_desc’
rte_prefetch0(&vr->desc[desc_indexes[0]]);
^
../examples/vhost/virtio_net.c:417:27: error: invalid use of undefined type ‘struct vring_desc’
rte_prefetch0(&vr->desc[desc_indexes[i + 1]]);
^
../examples/vhost/virtio_net.c:376:11: error: variable ‘avail_idx’ set but not used [-Werror=unused-but-set-variable]
uint16_t avail_idx;
^~~~~~~~~
../examples/vhost/virtio_net.c:373:11: error: variable ‘used_idx’ set but not used [-Werror=unused-but-set-variable]
uint32_t used_idx;
^~~~~~~~
cc1: all warnings being treated as errors
[3495/3522] Linking target examples/dpdk-ptpclient
[3496/3522] Linking target examples/dpdk-pipeline
[3497/3522] Linking target examples/dpdk-ntb
[3498/3522] Linking target examples/dpdk-qos_sched
ninja: build stopped
DPDK STV team
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-02-07 6:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-07 6:27 [dpdk-test-report] |FAILURE| pw(106860) sid(21466) job(PER_PATCH_BUILD1050)[7/7] buildtools/chkincs: test headers for C++ compatibility sys_stv
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).