DPDK patches and discussions
 help / color / mirror / Atom feed
* [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
@ 2022-06-09  6:52 bugzilla
  2022-06-24  7:47 ` bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2022-06-09  6:52 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=1029

            Bug ID: 1029
           Summary: [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
           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 <thomas@monjalon.net>
Date:   Wed Jun 8 21:43:41 2022 +0200
version: 22.07-rc1

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>

[Bad commit]:
commit 6d7d651bbc157bc5a66158dca4a120df96e2b3c8
Author: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
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 <rahul.lakkireddy@chelsio.com>

 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/ 5.15.0-25-generic

RHEL8.6/4.18.0-372.9.1.el8.x86_64
gcc version 8.5.0

[Test Setup]:
CC=gcc meson --optimization=1 --werror -Denable_kmods=True  -Dlibdir=lib 
--default-library=static x86_64-native-linuxapp-gcc 
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 
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=always -pipe -D_FILE_OFFSET_BITS=64
-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-aligned
-Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC
-march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API
-Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=pmd.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,
                 from ../drivers/net/cxgbe/cxgbe_main.c:37:
../drivers/net/cxgbe/cxgbe_main.c: In function ‘cxgbe_probe’:
../drivers/net/cxgbe/base/t4fw_interface.h:656:7: error: ‘maddr’ may be used
uninitialized in this function [-Werror=maybe-uninitialized]
  656 |  ((x) << S_FW_CAPS_CONFIG_CMD_MEMADDR64K_CF)
      |       ^~
../drivers/net/cxgbe/cxgbe_main.c:1111:40: note: ‘maddr’ was declared here
 1111 |  u32 finiver, finicsum, cfcsum, mtype, maddr, param, val;
      |                                        ^~~~~
In file included from ../drivers/net/cxgbe/base/common.h:13,
                 from ../drivers/net/cxgbe/cxgbe_main.c:37:
../drivers/net/cxgbe/base/t4fw_interface.h:648:7: error: ‘mtype’ may be used
uninitialized in this function [-Werror=maybe-uninitialized]
  648 |  ((x) << S_FW_CAPS_CONFIG_CMD_MEMTYPE_CF)
      |       ^~
../drivers/net/cxgbe/cxgbe_main.c:1111:33: note: ‘mtype’ was declared here
 1111 |  u32 finiver, finicsum, cfcsum, mtype, maddr, param, val;
      |                                 ^~~~~
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/

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [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
  2022-06-09  6:52 [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 bugzilla
@ 2022-06-24  7:47 ` bugzilla
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla @ 2022-06-24  7:47 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=1029

gaodaxue (daxuex.gao@intel.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #3 from gaodaxue (daxuex.gao@intel.com) ---
Verified based on 261d96b29e PASSED.

OS: (Ubuntu22.04/ 5.15.0-25-generic)/ (RHEL8.6/4.18.0-372.9.1.el8.x86_64)

GCC: gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0/8.5.0 20210514

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-24  7:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-09  6:52 [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 bugzilla
2022-06-24  7:47 ` bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).