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 2E3E7A04FD; Mon, 23 May 2022 09:44:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1CBF34014F; Mon, 23 May 2022 09:44:11 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 5314140041 for ; Mon, 23 May 2022 09:44:09 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 1CBBFA04FF; Mon, 23 May 2022 09:44:09 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1016] [dpdk-22.07*] drivers/net/ice meson build failed with gcc12.1.1 on Fedora36/64 Date: Mon, 23 May 2022 07:44:08 +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: unspecified 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=3D1016 Bug ID: 1016 Summary: [dpdk-22.07*] drivers/net/ice meson build failed with gcc12.1.1 on Fedora36/64 Product: DPDK Version: unspecified 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 latest code dpdk-next-* and dpdk branch=20=20 [OS version] Fedora Linux 36/5.17.7-300.fc36.x86_64 GCC12.1.1 [Test Setup] This error is to fix https://bugs.dpdk.org/show_bug.cgi?id=3D1011=20 # wget http://patchwork.dpdk.org/project/dpdk/patch/20220519160711.159618-1-roy.fa= n.zhang@intel.com/mbox/ -O /tmp/a.patch # git apply /tmp/a.patch # meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dexamples=3Dall --default-library=3Dstatic gcc-linux-app=20 # ninja -C gcc-linux-app [Error log] [705/3546] Compiling C object drivers/net/ice/base/libice_base.a.p/ice_switch.c.o FAILED: drivers/net/ice/base/libice_base.a.p/ice_switch.c.o cc -Idrivers/net/ice/base/libice_base.a.p -Idrivers/net/ice/base -I../drivers/net/ice/base -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 -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 -fPIC -march=3Dnative -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -Wno-unused-value -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-parameter -Wno-array-bounds -MD -MQ drivers/net/ice/base/libice_base.a.p/ice_switch.c.o -MF drivers/net/ice/base/libice_base.a.p/ice_switch.c.o.d -o drivers/net/ice/base/libice_base.a.p/ice_switch.c.o -c ../drivers/net/ice/base/ice_switch.c ../drivers/net/ice/base/ice_switch.c: In function =E2=80=98ice_add_sw_recip= e=E2=80=99: ../drivers/net/ice/base/ice_switch.c:7219:61: error: writing 1 byte into a region of size 0 [-Werror=3Dstringop-overflow=3D] 7219 | buf[recps].content.lkup_indx[i + 1] =3D entry->fv_idx[i]; |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ In file included from ../drivers/net/ice/base/ice_controlq.h:8, from ../drivers/net/ice/base/ice_type.h:54, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_adminq_cmd.h:744:12: note: at offset 5 into destination object =E2=80=98lkup_indx=E2=80=99 of size 5 744 | u8 lkup_indx[5]; | ^~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:7219:61: error: writing 1 byte into a region of size 0 [-Werror=3Dstringop-overflow=3D] 7219 | buf[recps].content.lkup_indx[i + 1] =3D entry->fv_idx[i]; |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_adminq_cmd.h:744:12: note: at offset [6, 254] i= nto destination object =E2=80=98lkup_indx=E2=80=99 of size 5 744 | u8 lkup_indx[5]; | ^~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:7219:61: error: writing 1 byte into a region of size 0 [-Werror=3Dstringop-overflow=3D] 7219 | buf[recps].content.lkup_indx[i + 1] =3D entry->fv_idx[i]; |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_adminq_cmd.h:744:12: note: at offset [7, 255] i= nto destination object =E2=80=98lkup_indx=E2=80=99 of size 5 744 | u8 lkup_indx[5]; | ^~~~~~~~~ cc1: all warnings being treated as errors [734/3546] Compiling C object lib/librte_pipeline.a.p/pipeline_rte_table_action.c.o ninja: build stopped: subcommand failed. [Bad commit] This is a problem on a new os, no problem on fedora35 --=20 You are receiving this mail because: You are the assignee for the bug.=