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 9BE7AA0543; Mon, 13 Jun 2022 10:50:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 33D0A40150; Mon, 13 Jun 2022 10:50:23 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 3643A400EF for ; Mon, 13 Jun 2022 10:50:22 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 1CD22A0553; Mon, 13 Jun 2022 10:50:22 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1033] [dpdk 22.07-rc1] app/test-flow-perf meson build failed with cflag param optimization=1 on Ubuntu22.04 &&RHEL8.6 with gcc11.2.0&&8.5.0 Date: Mon, 13 Jun 2022 08:50:21 +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=3D1033 Bug ID: 1033 Summary: [dpdk 22.07-rc1] app/test-flow-perf 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: Wed Jun 8 21:43:41 2022 +0200 version: 22.07-rc1 Signed-off-by: Thomas Monjalon [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=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 [Ubuntu22.04 log as below] [3205/3466] Compiling C object app/dpdk-test-flow-perf.p/test-flow-perf_main.c.o FAILED: app/dpdk-test-flow-perf.p/test-flow-perf_main.c.o gcc -Iapp/dpdk-test-flow-perf.p -Iapp -I../app -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 -fdiagnostics-color=3Dalways -D_FILE_OFFSET_BITS= =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 -march=3Dnative -DALLOW_EXPERIMENTAL_API -MD -MQ app/dpdk-test-flow-perf.p/test-flow-perf_main.c.o -MF app/dpdk-test-flow-perf.p/test-flow-perf_main.c.o.d -o app/dpdk-test-flow-perf.p/test-flow-perf_main.c.o -c ../app/test-flow-perf/main.c ../app/test-flow-perf/main.c: In function =E2=80=98pretty_number=E2=80=99: ../app/test-flow-perf/main.c:1737:28: error: =E2=80=98__builtin___sprintf_c= hk=E2=80=99 may write a terminating nul past the end of the destination [-Werror=3Dformat-overflow=3D] 1737 | sprintf(p[i++], "%d", (int)n); | ^ In file included from /usr/include/stdio.h:894, from ../app/test-flow-perf/main.c:19: /usr/include/x86_64-linux-gnu/bits/stdio2.h:38:10: note: =E2=80=98__builtin___sprintf_chk=E2=80=99 output between 2 and 5 bytes into= a destination of size 4 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors [3304/3466] Compiling C object app/test/dpdk-test.p/test_cryptodev.c.o --=20 You are receiving this mail because: You are the assignee for the bug.=