https://bugs.dpdk.org/show_bug.cgi?id=1055
Bug ID: 1055 Summary: [dpdk 19.11.13-rc1] drivers/net/ice meson build error with gcc11.2 on Ubuntu22.04 Product: DPDK Version: 19.11 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: core Assignee: dev@dpdk.org Reporter: daxuex....@intel.com Target Milestone: --- [DPDK Version] dpdk stable v19.11.13-rc1 [OS version] Ubuntu22.04 LTS/5.15.0-25-generic GCC 11.2.0 [bad commit] This is a problem on a new os. [error log] FAILED: drivers/libtmp_rte_pmd_ice.a.p/net_ice_ice_rxtx.c.o gcc -Idrivers/libtmp_rte_pmd_ice.a.p -Idrivers -I../drivers -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -Ilib/librte_ethdev -I../lib/librte_ethdev -I. -I.. -Iconfig -I../config -Ilib/librte_eal/common/include -I../lib/librte_eal/common/include -I../lib/librte_eal/linux/eal/include -Ilib/librte_eal/common -I../lib/librte_eal/common -Ilib/librte_eal/common/include/arch/x86 -I../lib/librte_eal/common/include/arch/x86 -Ilib/librte_eal -I../lib/librte_eal -Ilib/librte_kvargs -I../lib/librte_kvargs -Ilib/librte_net -I../lib/librte_net -Ilib/librte_mbuf -I../lib/librte_mbuf -Ilib/librte_mempool -I../lib/librte_mempool -Ilib/librte_ring -I../lib/librte_ring -Ilib/librte_meter -I../lib/librte_meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/librte_pci -I../lib/librte_pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/librte_hash -I../lib/librte_hash -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 -DRTE_LIBRTE_I40E_16BYTE_RX_DESC -DRTE_LIBRTE_ICE_16BYTE_RX_DESC -fPIC -march=native -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ drivers/libtmp_rte_pmd_ice.a.p/net_ice_ice_rxtx.c.o -MF drivers/libtmp_rte_pmd_ice.a.p/net_ice_ice_rxtx.c.o.d -o drivers/libtmp_rte_pmd_ice.a.p/net_ice_ice_rxtx.c.o -c ../drivers/net/ice/ice_rxtx.c ../drivers/net/ice/ice_rxtx.c: In function ‘ice_recv_pkts’: ../drivers/net/ice/ice_rxtx.c:1365:18: error: array subscript ‘volatile struct ice_32b_rx_flex_desc_comms[0]’ is partly outside array bounds of ‘union ice_16b_rx_flex_desc[1]’ [-Werror=array-bounds] 1365 | stat_err = rte_le_to_cpu_16(desc->status_error0); ../drivers/net/ice/ice_rxtx.c:2090:32: note: while referencing ‘rxd’ 2090 | union ice_rx_flex_desc rxd; | ^~~ In file included from ../lib/librte_mbuf/rte_mbuf.h:43, from ../lib/librte_net/rte_ether.h:23, from ../lib/librte_ethdev/rte_ethdev.h:159, from ../lib/librte_ethdev/rte_ethdev_driver.h:18, from ../drivers/net/ice/ice_rxtx.c:5: ../drivers/net/ice/ice_rxtx.c:1368:53: error: array subscript ‘volatile struct ice_32b_rx_flex_desc_comms[0]’ is partly outside array bounds of ‘union ice_16b_rx_flex_desc[1]’ [-Werror=array-bounds] 1368 | mb->hash.rss = rte_le_to_cpu_32(desc->rss_hash); ../lib/librte_eal/common/include/arch/x86/rte_byteorder.h:82:30: note: in definition of macro ‘rte_le_to_cpu_32’ 82 | #define rte_le_to_cpu_32(x) (x) | ^ ../drivers/net/ice/ice_rxtx.c:2090:32: note: while referencing ‘rxd’ 2090 | union ice_rx_flex_desc rxd; | ^~~ ../drivers/net/ice/ice_rxtx.c: In function ‘ice_recv_scattered_pkts’: ../drivers/net/ice/ice_rxtx.c:1365:18: error: array subscript ‘volatile struct ice_32b_rx_flex_desc_comms[0]’ is partly outside array bounds of ‘union ice_16b_rx_flex_desc[1]’ [-Werror=array-bounds] 1365 | stat_err = rte_le_to_cpu_16(desc->status_error0); ../drivers/net/ice/ice_rxtx.c:1611:32: note: while referencing ‘rxd’ 1611 | union ice_rx_flex_desc rxd; | ^~~ In file included from ../lib/librte_mbuf/rte_mbuf.h:43, from ../lib/librte_net/rte_ether.h:23, from ../lib/librte_ethdev/rte_ethdev.h:159, from ../lib/librte_ethdev/rte_ethdev_driver.h:18, from ../drivers/net/ice/ice_rxtx.c:5: ../drivers/net/ice/ice_rxtx.c:1368:53: error: array subscript ‘volatile struct ice_32b_rx_flex_desc_comms[0]’ is partly outside array bounds of ‘union ice_16b_rx_flex_desc[1]’ [-Werror=array-bounds] 1368 | mb->hash.rss = rte_le_to_cpu_32(desc->rss_hash); ../lib/librte_eal/common/include/arch/x86/rte_byteorder.h:82:30: note: in definition of macro ‘rte_le_to_cpu_32’ 82 | #define rte_le_to_cpu_32(x) (x) | ^ ../drivers/net/ice/ice_rxtx.c:1611:32: note: while referencing ‘rxd’ 1611 | union ice_rx_flex_desc rxd; | ^~~ cc1: all warnings being treated as errors [1034/2239] Compiling C object drivers/libtmp_rte_pmd_ice.a.p/net_ice_ice_fdir_filter.c.o [1035/2239] Compiling C object drivers/libtmp_rte_pmd_ice.a.p/net_ice_ice_ethdev.c.o [1036/2239] Compiling C object drivers/libtmp_rte_pmd_ipn3ke.a.p/net_ipn3ke_ipn3ke_ethdev.c.o [1037/2239] Compiling C object drivers/libtmp_rte_pmd_ifc.a.p/net_ifc_ifcvf_vdpa.c.o [1038/2239] Compiling C object drivers/libtmp_rte_pmd_ipn3ke.a.p/net_ipn3ke_ipn3ke_flow.c.o [1039/2239] Compiling C object drivers/libtmp_rte_pmd_ipn3ke.a.p/net_ipn3ke_ipn3ke_tm.c.o [1040/2239] Compiling C object drivers/libtmp_rte_pmd_ice.a.p/net_ice_ice_rxtx_vec_avx2.c.o [1041/2239] Compiling C object drivers/libtmp_rte_pmd_ice.a.p/net_ice_ice_rxtx_vec_sse.c.o [1042/2239] Compiling C object drivers/libtmp_rte_pmd_ipn3ke.a.p/net_ipn3ke_ipn3ke_representor.c.o ninja: build stopped -- You are receiving this mail because: You are the assignee for the bug.