From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [dpdk-dev] [Bug 714] test_prefetch build warnings with gcc 11 and buildtype=debug
Date: Thu, 20 May 2021 10:04:55 +0000 [thread overview]
Message-ID: <bug-714-3@http.bugs.dpdk.org/> (raw)
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.
reply other threads:[~2021-05-20 10:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-714-3@http.bugs.dpdk.org/ \
--to=bugzilla@dpdk.org \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.