* [dpdk-dev] [Bug 714] test_prefetch build warnings with gcc 11 and buildtype=debug
@ 2021-05-20 10:04 bugzilla
0 siblings, 0 replies; only message in thread
From: bugzilla @ 2021-05-20 10:04 UTC (permalink / raw)
To: dev
https://bugs.dpdk.org/show_bug.cgi?id=714
Bug ID: 714
Summary: test_prefetch build warnings with gcc 11 and
buildtype=debug
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=debug /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/ethdev
-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/table
-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/lpm
-Ilib/graph -I../dpdk/lib/graph -Ilib/ipsec -I../dpdk/lib/ipsec -Ilib/security
-I../dpdk/lib/security -Ilib/latencystats -I../dpdk/lib/latencystats
-Ilib/member -I../dpdk/lib/member -Ilib/node -I../dpdk/lib/node -Ilib/pipeline
-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=always -D_FILE_OFFSET_BITS=64 -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=native -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=maybe-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 type
'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
--
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:[~2021-05-20 10:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-20 10:04 [dpdk-dev] [Bug 714] test_prefetch build warnings with gcc 11 and buildtype=debug bugzilla
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).