From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1F09FA00C2; Thu, 21 Jul 2022 10:45:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C16AA40A87; Thu, 21 Jul 2022 10:45:04 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 38D6240A7A for ; Thu, 21 Jul 2022 10:45:04 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id EA9ECA034C; Thu, 21 Jul 2022 10:45:03 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1055] [dpdk 19.11.13-rc1] drivers/net/ice meson build error with gcc11.2 on Ubuntu22.04 Date: Thu, 21 Jul 2022 08:45:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: core X-Bugzilla-Version: 19.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: daxuex.gao@intel.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org https://bugs.dpdk.org/show_bug.cgi?id=3D1055 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.gao@intel.com Target Milestone: --- [DPDK Version] dpdk stable v19.11.13-rc1=20=20 [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=20 gcc -Idrivers/libtmp_rte_pmd_ice.a.p -Idrivers -I../drivers -Idrivers/net/i= ce -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_mem= pool -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=3Dalways -D_FILE_OFFSET_BITS=3D64 -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=3Dnative -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 =E2=80=98ice_recv_pkts=E2=80=99: ../drivers/net/ice/ice_rxtx.c:1365:18: error: array subscript =E2=80=98vola= tile struct ice_32b_rx_flex_desc_comms[0]=E2=80=99 is partly outside array bounds of = =E2=80=98union ice_16b_rx_flex_desc[1]=E2=80=99 [-Werror=3Darray-bounds] 1365 | stat_err =3D rte_le_to_cpu_16(desc->status_error0); ../drivers/net/ice/ice_rxtx.c:2090:32: note: while referencing =E2=80=98rxd= =E2=80=99 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 =E2=80=98vola= tile struct ice_32b_rx_flex_desc_comms[0]=E2=80=99 is partly outside array bounds of = =E2=80=98union ice_16b_rx_flex_desc[1]=E2=80=99 [-Werror=3Darray-bounds] 1368 | mb->hash.rss =3D 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 =E2=80=98rte_le_to_cpu_32=E2=80=99 82 | #define rte_le_to_cpu_32(x) (x) | ^ ../drivers/net/ice/ice_rxtx.c:2090:32: note: while referencing =E2=80=98rxd= =E2=80=99 2090 | union ice_rx_flex_desc rxd; | ^~~ ../drivers/net/ice/ice_rxtx.c: In function =E2=80=98ice_recv_scattered_pkts= =E2=80=99: ../drivers/net/ice/ice_rxtx.c:1365:18: error: array subscript =E2=80=98vola= tile struct ice_32b_rx_flex_desc_comms[0]=E2=80=99 is partly outside array bounds of = =E2=80=98union ice_16b_rx_flex_desc[1]=E2=80=99 [-Werror=3Darray-bounds] 1365 | stat_err =3D rte_le_to_cpu_16(desc->status_error0); ../drivers/net/ice/ice_rxtx.c:1611:32: note: while referencing =E2=80=98rxd= =E2=80=99 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 =E2=80=98vola= tile struct ice_32b_rx_flex_desc_comms[0]=E2=80=99 is partly outside array bounds of = =E2=80=98union ice_16b_rx_flex_desc[1]=E2=80=99 [-Werror=3Darray-bounds] 1368 | mb->hash.rss =3D 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 =E2=80=98rte_le_to_cpu_32=E2=80=99 82 | #define rte_le_to_cpu_32(x) (x) | ^ ../drivers/net/ice/ice_rxtx.c:1611:32: note: while referencing =E2=80=98rxd= =E2=80=99 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 --=20 You are receiving this mail because: You are the assignee for the bug.=