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 B0C51A0A0A; Thu, 20 May 2021 12:04:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3A26F40143; Thu, 20 May 2021 12:04:58 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 49A1E40041 for ; Thu, 20 May 2021 12:04:56 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 14963A0A0C; Thu, 20 May 2021 12:04:55 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Thu, 20 May 2021 10:04:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: other X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alialnu@nvidia.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 Subject: [dpdk-dev] [Bug 714] test_prefetch build warnings with gcc 11 and buildtype=debug 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 Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D714 Bug ID: 714 Summary: test_prefetch build warnings with gcc 11 and buildtype=3Ddebug Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: other Assignee: dev@dpdk.org Reporter: alialnu@nvidia.com Target Milestone: --- """ $ meson --werror --buildtype=3Ddebug /tmp/build && ninja-build -C /tmp/build ... ... [2566/2660] Compiling C object app/test/dpdk-test.p/test_prefetch.c.o FAILED: app/test/dpdk-test.p/test_prefetch.c.o ccache cc -Iapp/test/dpdk-test.p -Iapp/test -I../dpdk/app/test -Ilib/acl -I../dpdk/lib/acl -I. -I../dpdk -Iconfig -I../dpdk/config -Ilib/eal/include -I../dpdk/lib/eal/include -Ilib/eal/linux/include -I../dpdk/lib/eal/linux/include -Ilib/eal/x86/include -I../dpdk/lib/eal/x86/include -Ilib/eal/common -I../dpdk/lib/eal/common -Ilib/eal -I../dpdk/lib/eal -Ilib/kvargs -I../dpdk/lib/kvargs -Ilib/metrics -I../dpdk/lib/metrics -Ilib/telemetry -I../dpdk/lib/telemetry -Idrivers/bus= /pci -I../dpdk/drivers/bus/pci -I../dpdk/drivers/bus/pci/linux -Ilib/pci -I../dpdk/lib/pci -Idrivers/bus/vdev -I../dpdk/drivers/bus/vdev -Ilib/bitratestats -I../dpdk/lib/bitratestats -Ilib/ethdev -I../dpdk/lib/et= hdev -Ilib/net -I../dpdk/lib/net -Ilib/mbuf -I../dpdk/lib/mbuf -Ilib/mempool -I../dpdk/lib/mempool -Ilib/ring -I../dpdk/lib/ring -Ilib/meter -I../dpdk/lib/meter -Ilib/bpf -I../dpdk/lib/bpf -Ilib/cfgfile -I../dpdk/lib/cfgfile -Ilib/cmdline -I../dpdk/lib/cmdline -Ilib/cryptodev -I../dpdk/lib/cryptodev -Ilib/rcu -I../dpdk/lib/rcu -Ilib/distributor -I../dpdk/lib/distributor -Ilib/efd -I../dpdk/lib/efd -Ilib/hash -I../dpdk/lib/hash -Ilib/eventdev -I../dpdk/lib/eventdev -Ilib/timer -I../dpdk/lib/timer -Ilib/fib -I../dpdk/lib/fib -Ilib/rib -I../dpdk/lib/rib -Ilib/flow_classify -I../dpdk/lib/flow_classify -Ilib/table -I../dpdk/lib/t= able -Ilib/port -I../dpdk/lib/port -Ilib/sched -I../dpdk/lib/sched -Ilib/ip_frag -I../dpdk/lib/ip_frag -Ilib/kni -I../dpdk/lib/kni -Ilib/lpm -I../dpdk/lib/l= pm -Ilib/graph -I../dpdk/lib/graph -Ilib/ipsec -I../dpdk/lib/ipsec -Ilib/secur= ity -I../dpdk/lib/security -Ilib/latencystats -I../dpdk/lib/latencystats -Ilib/member -I../dpdk/lib/member -Ilib/node -I../dpdk/lib/node -Ilib/pipel= ine -I../dpdk/lib/pipeline -Ilib/rawdev -I../dpdk/lib/rawdev -Ilib/reorder -I../dpdk/lib/reorder -Ilib/stack -I../dpdk/lib/stack -Idrivers/mempool/ring -I../dpdk/drivers/mempool/ring -Idrivers/mempool/stack -I../dpdk/drivers/mempool/stack -Idrivers/event/skeleton -I../dpdk/drivers/event/skeleton -Idrivers/net/bonding -I../dpdk/drivers/net/bonding -Idrivers/net/ring -I../dpdk/drivers/net/ring -Ilib/power -I../dpdk/lib/power -Ilib/pdump -I../dpdk/lib/pdump -Idrivers/crypto/scheduler -I../dpdk/drivers/crypto/scheduler -fdiagnostics-color=3Dalways -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -= Werror -g -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-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -march=3Dnative -DALLOW_EXPERIMENTAL_API -Wno-format-truncation -fno-strict-aliasing -DALLOW_INTERNAL_API -MD -MQ app/test/dpdk-test.p/test_prefetch.c.o -MF app/test/dpdk-test.p/test_prefetch.c.o.d -o app/test/dpdk-test.p/test_prefetch.c.o -c ../dpdk/app/test/test_prefetch.c ../dpdk/app/test/test_prefetch.c: In function 'test_prefetch': ../dpdk/app/test/test_prefetch.c:25:9: error: 'a' may be used uninitialized [-Werror=3Dmaybe-uninitialized] 25 | rte_prefetch0(&a); | ^~~~~~~~~~~~~~~~~ In file included from ../dpdk/app/test/test_prefetch.c:8: ../dpdk/lib/eal/x86/include/rte_prefetch.h:15:20: note: by argument 1 of ty= pe 'const volatile void *' to 'rte_prefetch0' declared here 15 | static inline void rte_prefetch0(const volatile void *p) | ^~~~~~~~~~~~~ ../dpdk/app/test/test_prefetch.c:23:13: note: 'a' declared here 23 | int a; | ^ cc1: all warnings being treated as errors [2599/2660] Compiling C object drivers/libtmp_rte_event_octeontx2.a.p/event_octeontx2_otx2_worker.c.o ninja: build stopped: subcommand failed. """ Reproduces on 21.05.0-rc4. os: Fedora 35 (Rawhide) gcc: 11.1.1 meson: 0.58.0 ninja-build: 1.10.2 --=20 You are receiving this mail because: You are the assignee for the bug.=