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 1B34BA0552; Thu, 9 Jun 2022 08:52:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C4C3740689; Thu, 9 Jun 2022 08:52:21 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 53E4840220 for ; Thu, 9 Jun 2022 08:52:20 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 2BF52A0553; Thu, 9 Jun 2022 08:52:20 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1029] [dpdk 22.07-rc1] drivers/net/cxgbe meson build failed with cflag param optimization=1 on Ubuntu22.04 &&RHEL8.6 with gcc11.2.0&&8.5.0 Date: Thu, 09 Jun 2022 06:52:19 +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=3D1029 Bug ID: 1029 Summary: [dpdk 22.07-rc1] drivers/net/cxgbe meson build failed with cflag param optimization=3D1 on Ubuntu22.04 &&RHEL8.6 with gcc11.2.0&&8.5.0 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] commit 1ab4156e7d57858fca1db448ac7a0792e1d527b6 Author: Thomas Monjalon Date: =C2=A0 Wed Jun 8 21:43:41 2022 +0200 version: 22.07-rc1 Signed-off-by: Thomas Monjalon [Bad commit]: commit 6d7d651bbc157bc5a66158dca4a120df96e2b3c8 Author: Rahul Lakkireddy Date: Tue May 17 01:04:39 2022 +0530 net/cxgbe: read firmware configuration file from filesystem Add support to read firmware configuration file from /lib/firmware/cxgb4/ path in the filesystem. The firmware config file is used to enable or disable NIC features before firmware initialization to help retrieve better debug data to analyze firmware init failures. The config file can also be used to redistribute resources, like queues, TCAMs, etc., from disabled physical functions (PFs) to main PF, before firmware init. Signed-off-by: Rahul Lakkireddy doc/guides/nics/cxgbe.rst | 48 +++++ drivers/net/cxgbe/base/t4fw_interface.h | 1 + drivers/net/cxgbe/cxgbe_main.c | 329 +++++++++++++++++++++-------= ---- 3 files changed, 265 insertions(+), 113 deletions(-) [OS version]: gcc version gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0 Ubuntu22.04/=C2=A05.15.0-25-generic RHEL8.6/4.18.0-372.9.1.el8.x86_64 gcc version 8.5.0 [Test Setup]: CC=3Dgcc meson --optimization=3D1 --werror -Denable_kmods=3DTrue -Dlibdir= =3Dlib=20 --default-library=3Dstatic x86_64-native-linuxapp-gcc=20 ninja -C x86_64-native-linuxapp-gcc -j 10 [Ubuntu20.04 log as below] FAILED: drivers/libtmp_rte_net_cxgbe.a.p/net_cxgbe_cxgbe_main.c.o=C2=A0 gcc -Idrivers/libtmp_rte_net_cxgbe.a.p -Idrivers -I../drivers -Idrivers/net/cxgbe -I../drivers/net/cxgbe -I../drivers/net/cxgbe/base -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 -fdiagnostics-color=3Dalways -pipe -D_FILE_OFFSET_BIT= S=3D64 -Wall -Winvalid-pch -Wextra -Werror -O1 -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-align= ed -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=3Dnative -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=3Dpmd.net.cxgbe -MD -MQ drivers/libtmp_rte_net_cxgbe.a.p/net_cxgbe_cxgbe_main.c.o -MF drivers/libtmp_rte_net_cxgbe.a.p/net_cxgbe_cxgbe_main.c.o.d -o drivers/libtmp_rte_net_cxgbe.a.p/net_cxgbe_cxgbe_main.c.o -c ../drivers/net/cxgbe/cxgbe_main.c In file included from ../drivers/net/cxgbe/base/common.h:13, =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from ../drive= rs/net/cxgbe/cxgbe_main.c:37: ../drivers/net/cxgbe/cxgbe_main.c: In function =E2=80=98cxgbe_probe=E2=80= =99: ../drivers/net/cxgbe/base/t4fw_interface.h:656:7: error: =E2=80=98maddr=E2= =80=99 may be used uninitialized in this function [-Werror=3Dmaybe-uninitialized] =C2=A0 656 | =C2=A0((x) << S_FW_CAPS_CONFIG_CMD_MEMADDR64K_CF) =C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 ^~ ../drivers/net/cxgbe/cxgbe_main.c:1111:40: note: =E2=80=98maddr=E2=80=99 wa= s declared here =C2=A01111 | =C2=A0u32 finiver, finicsum, cfcsum, mtype, maddr, param, val; =C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0^~~~~ In file included from ../drivers/net/cxgbe/base/common.h:13, =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from ../drive= rs/net/cxgbe/cxgbe_main.c:37: ../drivers/net/cxgbe/base/t4fw_interface.h:648:7: error: =E2=80=98mtype=E2= =80=99 may be used uninitialized in this function [-Werror=3Dmaybe-uninitialized] =C2=A0 648 | =C2=A0((x) << S_FW_CAPS_CONFIG_CMD_MEMTYPE_CF) =C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 ^~ ../drivers/net/cxgbe/cxgbe_main.c:1111:33: note: =E2=80=98mtype=E2=80=99 wa= s declared here =C2=A01111 | =C2=A0u32 finiver, finicsum, cfcsum, mtype, maddr, param, val; =C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~~ cc1: all warnings being treated as errors [1453/3466] Compiling C object drivers/libtmp_rte_net_cxgbe.a.p/net_cxgbe_mps_tcam.c.o [1454/3466] Compiling C object drivers/libtmp_rte_net_cxgbe.a.p/net_cxgbe_sge.c.o [1455/3466] Compiling C object drivers/libtmp_rte_net_cxgbe.a.p/net_cxgbe_base_t4vf_hw.c.o [1456/3466] Compiling C object drivers/libtmp_rte_net_dpaa.a.p/net_dpaa_fmlib_fm_lib.c.o [1457/3466] Compiling C object drivers/libtmp_rte_net_dpaa.a.p/net_dpaa_dpaa_flow.c.o [1458/3466] Compiling C object drivers/libtmp_rte_net_dpaa.a.p/net_dpaa_dpaa_fmc.c.o [1459/3466] Compiling C object drivers/libtmp_rte_net_cxgbe.a.p/net_cxgbe_base_t4_hw.c.o [1460/3466] Compiling C object drivers/libtmp_rte_net_dpaa.a.p/net_dpaa_dpaa_ethdev.c.o [1461/3466] Generating rte_net_cnxk.pmd.c with a custom command 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.=