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: [email protected]
Reporter: [email protected]
Target Milestone: ---
[DPDK version]
commit 1ab4156e7d57858fca1db448ac7a0792e1d527b6
Author: Thomas Monjalon <[email protected]>
Date: Wed Jun 8 21:43:41 2022 +0200
version: 22.07-rc1
Signed-off-by: Thomas Monjalon <[email protected]>
[Bad commit]:
commit 6d7d651bbc157bc5a66158dca4a120df96e2b3c8
Author: Rahul Lakkireddy <[email protected]>
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 <[email protected]>
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.