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 A9536A04FD; Mon, 1 Aug 2022 03:08:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 58DEF4067B; Mon, 1 Aug 2022 03:08:18 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id D66BC4021E for ; Mon, 1 Aug 2022 03:08:16 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id B3068A0540; Mon, 1 Aug 2022 03:08:16 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1061] [dpdk v21.11.2-rc1] examples/performance-thread meson build error with gcc12.1 on fedora36 Date: Mon, 01 Aug 2022 01:08:15 +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: 21.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: major 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=3D1061 Bug ID: 1061 Summary: [dpdk v21.11.2-rc1] examples/performance-thread meson build error with gcc12.1 on fedora36 Product: DPDK Version: 21.11 Hardware: All OS: All Status: UNCONFIRMED Severity: major Priority: Normal Component: core Assignee: dev@dpdk.org Reporter: daxuex.gao@intel.com Target Milestone: --- [DPDK Version] dpdk stable v21.11.2-rc1 [OS version] OS: Fedora Linux 36 (Server Edition)/Linux 5.17.7-300.fc36.x86_64 gcc: version 12.1.1 20220507 [Bad commit] This is a problem on a new os. [Test setup] CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dexamples=3Da= ll --default-library=3Dstatic gcc-linux-app=20=20 ninja -C gcc-linux-app [Error log] examples/performance-thread meson build error with gcc12.1 on fedora36 FAILED: examples/dpdk-pthread_shim.p/performance-thread_pthread_shim_pthread_shim.c= .o gcc -Iexamples/dpdk-pthread_shim.p -Iexamples -I../examples -Iexamples/performance-thread/pthread_shim -I../examples/performance-thread/pthread_shim -I../examples/performance-thread/common -I../examples/performance-thread/common/arch/x86 -I. -I.. -Iconfig -I../con= fig -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/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/timer -I../lib/timer -fdiagnostics-color=3Dalways -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -Werror -O3 -include rte_config.h -Wextra -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 -Wno-format-truncation -DALLOW_EXPERIMENTAL_API -MD -MQ examples/dpdk-pthread_shim.p/performance-thread_pthread_shim_pthread_shim.c= .o -MF examples/dpdk-pthread_shim.p/performance-thread_pthread_shim_pthread_shim.c= .o.d -o examples/dpdk-pthread_shim.p/performance-thread_pthread_shim_pthread_shim.c= .o -c ../examples/performance-thread/pthread_shim/pthread_shim.c ../examples/performance-thread/pthread_shim/pthread_shim.c: In function =E2=80=98pthread_setspecific=E2=80=99: ../examples/performance-thread/pthread_shim/pthread_shim.c:592:27: error: =E2=80=98data=E2=80=99 may be used uninitialized [-Werror=3Dmaybe-uninitial= ized] 592 | int rv =3D lthread_setspecific((unsigned int)key, = data); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~ ../examples/performance-thread/pthread_shim/pthread_shim.c:589:56: note: accessing argument 2 of a function declared with attribute =E2=80=98access = (none, 2)=E2=80=99 589 | int pthread_setspecific(pthread_key_t key, const void *data) | ~~~~~~~~~~~~^~~~ cc1: all warnings being treated as errors [3006/3142] Compiling C object examples/dpdk-l3fwd-thread.p/performance-thread_common_lthread_tls.c.o [3007/3142] Compiling C object examples/dpdk-simple_mp.p/multi_process_simple_mp_main.c.o [3008/3142] Compiling C object examples/dpdk-mp_client.p/multi_process_client_server_mp_mp_client_client.c= .o [3009/3142] Compiling C object examples/dpdk-link_status_interrupt.p/link_status_interrupt_main.c.o [3010/3142] Compiling C object examples/dpdk-mp_server.p/multi_process_client_server_mp_mp_server_init.c.o [3011/3142] Compiling C object examples/dpdk-mp_server.p/multi_process_client_server_mp_mp_server_args.c.o [3012/3142] Compiling C object examples/dpdk-simple_mp.p/multi_process_simple_mp_mp_commands.c.o [3013/3142] Compiling C object drivers/libtmp_rte_event_octeontx2.a.p/event_octeontx2_otx2_worker.c.o [3014/3142] Compiling C object drivers/libtmp_rte_event_octeontx2.a.p/event_octeontx2_otx2_worker_dual.c.o ninja: build stopped --=20 You are receiving this mail because: You are the assignee for the bug.=