From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [DPDK/core Bug 1964] [dpdk26.07-rc2] DPDK build failed with EXTRA_CFLAGS='-O1' on Ubuntu26.04
Date: Mon, 06 Jul 2026 09:17:26 +0000 [thread overview]
Message-ID: <bug-1964-3@http.bugs.dpdk.org/> (raw)
http://bugs.dpdk.org/show_bug.cgi?id=1964
Bug ID: 1964
Summary: [dpdk26.07-rc2] DPDK build failed with
EXTRA_CFLAGS='-O1' on Ubuntu26.04
Product: DPDK
Version: 26.07
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: core
Assignee: dev@dpdk.org
Reporter: daxuex.gao@intel.com
Target Milestone: ---
[Environment]
DPDK version:
commit f77bc8767a952cf833fc9c85d6b5b8d77d39a5da (HEAD -> main, tag: v26.07-rc2,
origin/main, origin/HEAD)
OS: Ubuntu26.04/7.0.0-14-generic
Compiler: gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0
[Test Setup]
# build cmd:
CC=gcc meson --optimization=1 --werror -Dlibdir=lib --default-library=static
x86_64-native-linuxapp-gcc
ninja -C x86_64-native-linuxapp-gcc
[Output]
# ninja -C x86_64-native-linuxapp-gcc
ninja: Entering directory `x86_64-native-linuxapp-gcc'
[1683/3722] Compiling C object
drivers/libtmp_rte_net_hinic3.a.p/net_hinic3_hinic3_fdir.c.o
FAILED: drivers/libtmp_rte_net_hinic3.a.p/net_hinic3_hinic3_fdir.c.o
gcc -Idrivers/libtmp_rte_net_hinic3.a.p -Idrivers -I../drivers
-Idrivers/net/hinic3 -I../drivers/net/hinic3 -Idrivers/net/hinic3/base
-I../drivers/net/hinic3/base -Idrivers/net/hinic3/htn_adapt
-I../drivers/net/hinic3/htn_adapt -Idrivers/net/hinic3/stn_adapt
-I../drivers/net/hinic3/stn_adapt -Ilib/ethdev -I../lib/ethdev -Ilib/eal/common
-I../lib/eal/common -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 -I../kernel/linux -Ilib/eal
-I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/log -I../lib/log -Ilib/metrics
-I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/argparse
-I../lib/argparse -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 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra
-Werror -std=c11 -O1 -include rte_config.h -Wvla -Wcast-qual -Wdeprecated
-Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith
-Wshadow -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings
-Wno-packed-not-aligned -Wno-missing-field-initializers
-fzero-init-padding-bits=all -D_GNU_SOURCE -fPIC -march=native -mrtm
-DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation
-Wno-address-of-packed-member -DHW_CONVERT_ENDIAN -DRTE_COMPONENT_CLASS=pmd_net
-DRTE_COMPONENT_NAME=hinic3 -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.hinic3 -MD -MQ
drivers/libtmp_rte_net_hinic3.a.p/net_hinic3_hinic3_fdir.c.o -MF
drivers/libtmp_rte_net_hinic3.a.p/net_hinic3_hinic3_fdir.c.o.d -o
drivers/libtmp_rte_net_hinic3.a.p/net_hinic3_hinic3_fdir.c.o -c
../drivers/net/hinic3/hinic3_fdir.c
../drivers/net/hinic3/hinic3_fdir.c: In function
‘hinic3_enable_rxq_fdir_filter’:
../drivers/net/hinic3/hinic3_fdir.c:1278:13: error: ‘ret’ may be used
uninitialized [-Werror=maybe-uninitialized]
1278 | int ret;
| ^~~
cc1: all warnings being treated as errors
[1694/3722] Compiling C object
drivers/libtmp_rte_net_hinic3.a.p/net_hinic3_hinic3_ethdev.c.o
ninja: build stopped: subcommand failed.
[Expected Result]
Build Passed
[Regression]
Is this issue a regression: (Y/N)N
[First bad commit]
commit 1c963e5976a812771a4f3329e340ff9f9bef4406 (HEAD)
Author: Stephen Hemminger <stephen@networkplumber.org>
Date: Tue Jun 9 08:53:30 2026 -0700
tailq: fix name truncation
The tailq name is defined as 32 bytes, but name would be
silently truncated at 31 bytes. The function strlcpy() size
already accounts for the NUL character at the end.
Bugzilla ID: 1954
Fixes: f9acaf84e923 ("replace snprintf with strlcpy without adding extra
include")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Chengwen Feng <fengchengwen@huawei.com>
--
You are receiving this mail because:
You are the assignee for the bug.
reply other threads:[~2026-07-06 9:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-1964-3@http.bugs.dpdk.org/ \
--to=bugzilla@dpdk.org \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox