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 92EC6A0093; Tue, 26 Apr 2022 03:41:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 43554406A2; Tue, 26 Apr 2022 03:41:46 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 31CB940691 for ; Tue, 26 Apr 2022 03:41:45 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 11336A00BE; Tue, 26 Apr 2022 03:41:45 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 992] [dpdk 21.11.1-rc1] drivers/net/cnxk/cnxk_ethdev_mtr meson build failed with cflag param optimization=1 on Ubuntu20.04 with GCC10.3 Date: Tue, 26 Apr 2022 01:41:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: core X-Bugzilla-Version: 21.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_status resolution Message-ID: In-Reply-To: References: 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=3D992 gaodaxue (daxuex.gao@intel.com) changed: What |Removed |Added ---------------------------------------------------------------------------- Status|VERIFIED |UNCONFIRMED Resolution|FIXED |--- --- Comment #5 from gaodaxue (daxuex.gao@intel.com) --- In the latest dpdk-stable v21.11.1-rc1 code. commit id: 05aa560efc [Error info] [1283/3000] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o=20 gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/= cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -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/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib= /rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=3Dalways -pipe -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid= -pch -Werror -O1 -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=3Dnative -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=3Dpmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -c ../drivers/net/cnxk/cnxk_ethdev_mtr.c In file included from ../drivers/net/cnxk/cnxk_ethdev.h:16, from ../drivers/net/cnxk/cnxk_ethdev_mtr.c:5: ../drivers/net/cnxk/cnxk_ethdev_mtr.c: In function =E2=80=98cnxk_nix_mtr_policy_validate=E2=80=99: ../lib/ethdev/rte_mtr_driver.h:188:10: error: =E2=80=98str=E2=80=99 may be = used uninitialized in this function [-Werror=3Dmaybe-uninitialized] 188 | *error =3D (struct rte_mtr_error){ | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ 189 | .type =3D type, | ~~~~~~~~~~~~~ 190 | .cause =3D cause, | ~~~~~~~~~~~~~~~ 191 | .message =3D message, | ~~~~~~~~~~~~~~~~~~~ 192 | }; | ~=20=20=20=20=20=20=20 ../drivers/net/cnxk/cnxk_ethdev_mtr.c:283:14: note: =E2=80=98str=E2=80=99 w= as declared here 283 | const char *str; | ^~~ In file included from ../drivers/net/cnxk/cnxk_ethdev.h:16, from ../drivers/net/cnxk/cnxk_ethdev_mtr.c:5: ../lib/ethdev/rte_mtr_driver.h:188:10: error: =E2=80=98str=E2=80=99 may be = used uninitialized in this function [-Werror=3Dmaybe-uninitialized] 188 | *error =3D (struct rte_mtr_error){ | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ 189 | .type =3D type, | ~~~~~~~~~~~~~ 190 | .cause =3D cause, | ~~~~~~~~~~~~~~~ 191 | .message =3D message, | ~~~~~~~~~~~~~~~~~~~ 192 | }; | ~=20=20=20=20=20=20=20 ../drivers/net/cnxk/cnxk_ethdev_mtr.c:283:14: note: =E2=80=98str=E2=80=99 w= as declared here 283 | const char *str; | ^~~ cc1: all warnings being treated as errors [1284/3000] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_rte_flow.c.o [1285/3000] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o [1286/3000] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_8023ad.c.o [1287/3000] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ptp.c.o [1288/3000] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_stats.c.o [1289/3000] Generating rte_net_bnxt.pmd.c with a custom command [1290/3000] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cn9k_ethdev.c.o [1291/3000] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_tm.c.o [1292/3000] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o ninja: build stopped: subcommand failed.Removing buildtools/__pycache__/ Removing x86_64-native-linuxapp-gcc/ --=20 You are receiving this mail because: You are the assignee for the bug.=