Test-Label: Intel-compilation Test-Status: FAILURE http://dpdk.org/patch/94194 _Compilation issues_ Submitter: Maxime Coquelin Date: 2021-06-15 08:33:08 Reply_mail: 20210615083308.137401-7-maxime.coquelin@redhat.com DPDK git baseline: Repo:dpdk-next-virtio, CommitID: 175af25734f295874e31b33ccd0879e69fd152a9 Meson Build Summary: 22 Builds Done, 21 Successful, 1 Failures, 0 Blocked +------------------+------------+--------------+------------+------------+-----------+----------+ | os | gcc-static | clang-static | icc-static | gcc-shared | gcc-debug | document | +------------------+------------+--------------+------------+------------+-----------+----------+ | UB2004-64 | pass | pass | pass | | | pass | | RHEL83-64 | pass | | | | | | | FC34-64 | fail | pass | | | | | | CentOsStream8-64 | pass | | | | | | | UB2104-64 | pass | | | | | | | WIN10-64 | | pass | | | | | | UB2004-32 | pass | | | | | | | CENTOS83-64 | pass | pass | pass | pass | pass | | | FreeBSD1201-64 | pass | pass | | pass | pass | | | SUSE15-64 | pass | pass | | | | | +------------------+------------+--------------+------------+------------+-----------+----------+ Test environment and configuration as below: OS: UB2004-64 Kernel Version: 5.8.0-48-generic GCC Version: gcc (Ubuntu 10.2.0-5ubuntu1~20.04) 10.2.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: RHEL83-64 Kernel Version: 4.18.0-240.el8.x86_64 GCC Version: gcc (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5) Clang Version: 10.0.1 (Red Hat 10.0.1-1.module+el8.3.0+7459+90c24896) x86_64-native-linuxapp-gcc OS: FC34-64 Kernel Version: 5.11.15-300.fc34.x86_64 GCC Version: gcc (GCC) 11.0.1 20210324 (Red Hat 11.0.1-0) Clang Version: 12.0.0 (Fedora 12.0.0-0.3.rc1.fc34) x86_64-native-linuxapp-gcc x86_64-native-linuxapp-clang OS: CentOsStream8-64 Kernel Version: 4.18.0-257.el8.x86_64 GCC Version: gcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1) Clang Version: 11.0.0 (Red Hat 11.0.0-0.2.rc2.module_el8.4.0+533+50191577) x86_64-native-linuxapp-gcc OS: UB2104-64 Kernel Version: 5.11.0-16-generic GCC Version: gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0 Clang Version: 12.0.0-1ubuntu1 x86_64-native-linuxapp-gcc OS: WIN10-64 Kernel Version: N/A GCC Version: N/A Clang Version: Clang 8.0.0 x86_64-windows-clang OS: UB2004-32 Kernel Version: 5.8.0-48-generic GCC Version: gcc (Ubuntu 10.2.0-5ubuntu1~20.04) 10.2.0 Clang Version: 10.0.0-4ubuntu1 i686-native-linuxapp-gcc OS: CENTOS83-64 Kernel Version: 4.18.0-240.1.1.el8_3.x86_64 GCC Version: gcc (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5) Clang Version: 10.0.1 (Red Hat 10.0.1-1.module_el8.3.0+467+cb298d5b) x86_64-native-linuxapp-gcc x86_64-native-linuxapp-clang x86_64-native-linuxapp-icc x86_64-native-linuxapp-gcc+shared x86_64-native-linuxapp-gcc+debug OS: FreeBSD1201-64 Kernel Version: 12.1-RELEASE GCC Version: gcc (FreeBSD Ports Collection) 9.2.0 Clang Version: 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1) x86_64-native-bsdapp-gcc x86_64-native-bsdapp-clang x86_64-native-bsdapp-gcc+shared x86_64-native-bsdapp-gcc+debug OS: SUSE15-64 Kernel Version: 5.3.18-lp152.57-default GCC Version: gcc (SUSE Linux) 7.5.0 Clang Version: 9.0.1 x86_64-native-linuxapp-clang x86_64-native-linuxapp-gcc *Build Failed #1: OS: FC34-64 Target: x86_64-native-linuxapp-gcc FAILED: lib/librte_vhost.a.p/vhost_vhost_user.c.o gcc -Ilib/librte_vhost.a.p -Ilib -I../lib -Ilib/vhost -I../lib/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/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -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 -Werror -O3 -include rte_config.h -Wextra -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 -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DVHOST_GCC_UNROLL_PRAGMA -fno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=lib.vhost -MD -MQ lib/librte_vhost.a.p/vhost_vhost_user.c.o -MF lib/librte_vhost.a.p/vhost_vhost_user.c.o.d -o lib/librte_vhost.a.p/vhost_vhost_user.c.o -c ../lib/vhost/vhost_user.c ../lib/vhost/vhost_user.c: In function ‘numa_realloc.part.0’: ../lib/vhost/vhost_user.c:534:67: error: array subscript 0 is outside array bounds of ‘struct vhost_virtqueue[0]’ [-Werror=array-bounds] 534 | sus = rte_realloc_socket(vq->shadow_used_split, vq->size * sizeof(*sus), | ~~^~~~~~ ../lib/vhost/vhost_user.c:507:14: note: referencing an object of size 0 allocated by ‘rte_realloc_socket’ 507 | vq = rte_realloc_socket(vq, sizeof(*vq), 0, node); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lib/vhost/vhost_user.c:534:44: error: array subscript 0 is outside array bounds of ‘struct vhost_virtqueue[0]’ [-Werror=array-bounds] 534 | sus = rte_realloc_socket(vq->shadow_used_split, vq->size * sizeof(*sus), | ~~^~~~~~~~~~~~~~~~~~~ ../lib/vhost/vhost_user.c:507:14: note: referencing an object of size 0 allocated by ‘rte_realloc_socket’ 507 | vq = rte_realloc_socket(vq, sizeof(*vq), 0, node); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lib/vhost/vhost_user.c:540:39: error: array subscript 0 is outside array bounds of ‘struct vhost_virtqueue[0]’ [-Werror=array-bounds] 540 | vq->shadow_used_split = sus; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ ../lib/vhost/vhost_user.c:507:14: note: referencing an object of size 0 allocated by ‘rte_realloc_socket’ 507 | vq = rte_realloc_socket(vq, sizeof(*vq), 0, node); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lib/vhost/vhost_user.c:523:68: error: array subscript 0 is outside array bounds of ‘struct vhost_virtqueue[0]’ [-Werror=array-bounds] 523 | sup = rte_realloc_socket(vq->shadow_used_packed, vq->size * sizeof(*sup), | ~~^~~~~~ ../lib/vhost/vhost_user.c:507:14: note: referencing an object of size 0 allocated by ‘rte_realloc_socket’ 507 | vq = rte_realloc_socket(vq, sizeof(*vq), 0, node); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lib/vhost/vhost_user.c:523:44: error: array subscript 0 is outside array bounds of ‘struct vhost_virtqueue[0]’ [-Werror=array-bounds] 523 | sup = rte_realloc_socket(vq->shadow_used_packed, vq->size * sizeof(*sup), | ~~^~~~~~~~~~~~~~~~~~~~ ../lib/vhost/vhost_user.c:507:14: note: referencing an object of size 0 allocated by ‘rte_realloc_socket’ 507 | vq = rte_realloc_socket(vq, sizeof(*vq), 0, node); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lib/vhost/vhost_user.c:529:40: error: array subscript 0 is outside array bounds of ‘struct vhost_virtqueue[0]’ [-Werror=array-bounds] 529 | vq->shadow_used_packed = sup; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ ../lib/vhost/vhost_user.c:507:14: note: referencing an object of size 0 allocated by ‘rte_realloc_socket’ 507 | vq = rte_realloc_socket(vq, sizeof(*vq), 0, node); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lib/vhost/vhost_user.c:543:58: error: array subscript 0 is outside array bounds of ‘struct vhost_virtqueue[0]’ [-Werror=array-bounds] 543 | bce = rte_realloc_socket(vq->batch_copy_elems, vq->size * sizeof(*bce), | ~~^~~~~~ ../lib/vhost/vhost_user.c:507:14: note: referencing an object of size 0 allocated by ‘rte_realloc_socket’ 507 | vq = rte_realloc_socket(vq, sizeof(*vq), 0, node); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lib/vhost/vhost_user.c:543:36: error: array subscript 0 is outside array bounds of ‘struct vhost_virtqueue[0]’ [-Werror=array-bounds] 543 | bce = rte_realloc_socket(vq->batch_copy_elems, vq->size * sizeof(*bce), | ~~^~~~~~~~~~~~~~~~~~ ../lib/vhost/vhost_user.c:507:14: note: referencing an object of size 0 allocated by ‘rte_realloc_socket’ 507 | vq = rte_realloc_socket(vq, sizeof(*vq), 0, node); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lib/vhost/vhost_user.c:549:30: error: array subscript 0 is outside array bounds of ‘struct vhost_virtqueue[0]’ [-Werror=array-bounds] 549 | vq->batch_copy_elems = bce; | ~~~~~~~~~~~~~~~~~~~~~^~~~~ ../lib/vhost/vhost_user.c:507:14: note: referencing an object of size 0 allocated by ‘rte_realloc_socket’ 507 | vq = rte_realloc_socket(vq, sizeof(*vq), 0, node); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lib/vhost/vhost_user.c:551:15: error: array subscript 0 is outside array bounds of ‘struct vhost_virtqueue[0]’ [-Werror=array-bounds] 551 | if (vq->log_cache) { | ~~^~~~~~~~~~~ ../lib/vhost/vhost_user.c:507:14: note: referencing an object of size 0 allocated by ‘rte_realloc_socket’ 507 | vq = rte_realloc_socket(vq, sizeof(*vq), 0, node); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lib/vhost/vhost_user.c:559:31: error: array subscript 0 is outside array bounds of ‘struct vhost_virtqueue[0]’ [-Werror=array-bounds] 559 | vq->log_cache = lc; | ~~~~~~~~~~~~~~^~~~ ../lib/vhost/vhost_user.c:507:14: note: referencing an object of size 0 allocated by ‘rte_realloc_socket’ 507 | vq = rte_realloc_socket(vq, sizeof(*vq), 0, node); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lib/vhost/vhost_user.c:562:23: error: array subscript 0 is outside array bounds of ‘struct vhost_virtqueue[0]’ [-Werror=array-bounds] 562 | vq->numa_node = node; | ~~~~~~~~~~~~~~^~~~~~ ../lib/vhost/vhost_user.c:507:14: note: referencing an object of size 0 allocated by ‘rte_realloc_socket’ 507 | vq = rte_realloc_socket(vq, sizeof(*vq), 0, node); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lib/vhost/vhost_user.c:573:34: error: array subscript 0 is outside array bounds of ‘struct virtio_net[0]’ [-Werror=array-bounds] 573 | vhost_devices[dev->vid] = dev; | ~~~^~~~~ ../lib/vhost/vhost_user.c:565:15: note: referencing an object of size 0 allocated by ‘rte_realloc_socket’ 565 | dev = rte_realloc_socket(old_dev, sizeof(*dev), 0, node); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lib/vhost/vhost_user.c:577:58: error: array subscript 0 is outside array bounds of ‘struct virtio_net[0]’ [-Werror=array-bounds] 577 | sizeof(struct rte_vhost_mem_region) * dev->mem->nregions; | ~~~^~~~~ ../lib/vhost/vhost_user.c:565:15: note: referencing an object of size 0 allocated by ‘rte_realloc_socket’ 565 | dev = rte_realloc_socket(old_dev, sizeof(*dev), 0, node); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lib/vhost/vhost_user.c:584:54: error: array subscript 0 is outside array bounds of ‘struct virtio_net[0]’ [-Werror=array-bounds] 584 | gp = rte_realloc_socket(dev->guest_pages, dev->max_guest_pages * sizeof(*gp), | ~~~^~~~~~~~~~~~~~~~~ ../lib/vhost/vhost_user.c:565:15: note: referencing an object of size 0 allocated by ‘rte_realloc_socket’ 565 | dev = rte_realloc_socket(old_dev, sizeof(*dev), 0, node); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lib/vhost/vhost_user.c:584:36: error: array subscript 0 is outside array bounds of ‘struct virtio_net[0]’ [-Werror=array-bounds] 584 | gp = rte_realloc_socket(dev->guest_pages, dev->max_guest_pages * sizeof(*gp), | ~~~^~~~~~~~~~~~~ ../lib/vhost/vhost_user.c:565:15: note: referencing an object of size 0 allocated by ‘rte_realloc_socket’ 565 | dev = rte_realloc_socket(old_dev, sizeof(*dev), 0, node); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../lib/vhost/vhost_user.c:590:26: error: array subscript 0 is outside array bounds of ‘struct virtio_net[0]’ [-Werror=array-bounds] 590 | dev->guest_pages = gp; | ~~~~~~~~~~~~~~~~~^~~~ ../lib/vhost/vhost_user.c:565:15: note: referencing an object of size 0 allocated by ‘rte_realloc_socket’ 565 | dev = rte_realloc_socket(old_dev, sizeof(*dev), 0, node); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors [409/2751] Compiling C object lib/librte_fib.a.p/fib_rte_fib6.c.o [410/2751] Compiling C object lib/librte_ipsec.a.p/ipsec_esp_outb.c.o [411/2751] Compiling C object lib/librte_ipsec.a.p/ipsec_esp_inb.c.o [412/2751] Compiling C object lib/librte_port.a.p/port_rte_port_frag.c.o [413/2751] Compiling C object lib/librte_port.a.p/port_rte_port_ras.c.o [414/2751] Compiling C object lib/librte_fib.a.p/fib_trie.c.o [415/2751] Compiling C object lib/librte_port.a.p/port_rte_port_fd.c.o [416/2751] Compiling C object lib/librte_port.a.p/port_rte_port_ethdev.c.o [417/2751] Compiling C object lib/librte_fib.a.p/fib_dir24_8.c.o [418/2751] Compiling C object lib/librte_vhost.a.p/vhost_virtio_net.c.o [419/2751] Compiling C object lib/librte_vhost.a.p/vhost_vhost_crypto.c.o ninja: build stopped DPDK STV team