DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [DPDK/core Bug 1954] [dpdk26.07-rc1] DPDK build failed with EXTRA_CFLAGS='-O1' on Redhat9.6 and Ubuntu26.04
@ 2026-06-11  9:09 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2026-06-11  9:09 UTC (permalink / raw)
  To: dev

http://bugs.dpdk.org/show_bug.cgi?id=1954

            Bug ID: 1954
           Summary: [dpdk26.07-rc1] DPDK build failed with
                    EXTRA_CFLAGS='-O1' on Redhat9.6 and 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 c429b06df56788795f886eca748420e2248da784 (HEAD -> main, tag: v26.07-rc1,
origin/main, origin/HEAD)
OS: (RHEL9.6/5.14.0-570.12.1.el9_6.x86_64)/(Ubuntu26.04/7.0.0-14-generic)
Compiler: gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5)/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]
Found ninja-1.10.2.git.kitware.jobserver-1 at /usr/local/bin/ninja
Cleaning... 0 files.
[11/3422] Compiling C object
lib/librte_eal.a.p/eal_common_eal_common_tailqs.c.o
FAILED: lib/librte_eal.a.p/eal_common_eal_common_tailqs.c.o
gcc -Ilib/librte_eal.a.p -Ilib -I../lib -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
-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 -D_GNU_SOURCE -fPIC
-march=native -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API
'-DABI_VERSION="26.1"' -DRTE_EAL_PTHREAD_ATTR_SETAFFINITY_NP
-DRTE_LOG_DEFAULT_LOGTYPE=lib.eal -MD -MQ
lib/librte_eal.a.p/eal_common_eal_common_tailqs.c.o -MF
lib/librte_eal.a.p/eal_common_eal_common_tailqs.c.o.d -o
lib/librte_eal.a.p/eal_common_eal_common_tailqs.c.o -c
../lib/eal/common/eal_common_tailqs.c
In file included from ../lib/eal/common/eal_common_tailqs.c:13:
../lib/eal/common/eal_common_tailqs.c: In function ‘rte_eal_tailq_update’:
../lib/eal/include/rte_string_fns.h:63:24: error: ‘snprintf’ output may be
truncated before the last format character [-Werror=format-truncation=]
   63 |         return (size_t)snprintf(dst, size, "%s", src);
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../lib/eal/include/rte_string_fns.h:63:24: note: ‘snprintf’ output between 1
and 32 bytes into a destination of size 31
cc1: all warnings being treated as errors
[22/3422] Compiling C object lib/librte_eal.a.p/eal_common_rte_service.c.o
ninja: build stopped: subcommand failed.


[Expected Result]
Build Passed

[Regression]
Is this issue a regression: (Y/N)N

First bad commit:
de2604d55cb7098a941db696248c4d4d00abff43 is the first bad commit
commit de2604d55cb7098a941db696248c4d4d00abff43 (HEAD)
Author: Stephen Hemminger <stephen@networkplumber.org>
Date:   Wed Jan 28 17:41:20 2026 -0800

    lib: enable format overflow warnings

    Enable compiler checking of format overflow.

    Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>

 lib/meson.build | 4 ----
 1 file changed, 4 deletions(-)

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-11  9:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-11  9:09 [DPDK/core Bug 1954] [dpdk26.07-rc1] DPDK build failed with EXTRA_CFLAGS='-O1' on Redhat9.6 and Ubuntu26.04 bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox