https://bugs.dpdk.org/show_bug.cgi?id=878
Bug ID: 878 Summary: lib/sched build failure with debug and assert enabled Product: DPDK Version: 21.11 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: other Assignee: dev@dpdk.org Reporter: alia...@nvidia.com Target Milestone: --- """ $ meson --werror --buildtype=debug -Dc_args='-DRTE_ENABLE_ASSERT=1' build && ninja -C build [..] [363/2984] Compiling C object lib/librte_sched.a.p/sched_rte_pie.c.o FAILED: lib/librte_sched.a.p/sched_rte_pie.c.o ccache cc -Ilib/librte_sched.a.p -Ilib -I../lib -Ilib/sched -I../lib/sched -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/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -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-missing-field-initializers -D_GNU_SOURCE -DRTE_ENABLE_ASSERT=1 -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=lib.sched -MD -MQ lib/librte_sched.a.p/sched_rte_pie.c.o -MF lib/librte_sched.a.p/sched_rte_pie.c.o.d -o lib/librte_sched.a.p/sched_rte_pie.c.o -c ../lib/sched/rte_pie.c In file included from ../lib/eal/include/rte_debug.h:18:0, from ../lib/sched/rte_pie.h:20, from ../lib/sched/rte_pie.c:7: ../lib/sched/rte_pie.h: In function 'rte_pie_enqueue_empty': ../lib/sched/rte_pie.h:125:21: error: comparison between pointer and integer [-Werror] RTE_ASSERT(pkt_len != NULL); ^ ../lib/eal/include/rte_branch_prediction.h:38:41: note: in definition of macro 'unlikely' #define unlikely(x) __builtin_expect(!!(x), 0) ^ ../lib/eal/include/rte_debug.h:47:25: note: in expansion of macro 'RTE_VERIFY' #define RTE_ASSERT(exp) RTE_VERIFY(exp) ^~~~~~~~~~ ../lib/sched/rte_pie.h:125:2: note: in expansion of macro 'RTE_ASSERT' RTE_ASSERT(pkt_len != NULL); ^~~~~~~~~~ cc1: all warnings being treated as errors [372/2984] Compiling C object lib/librte_sched.a.p/sched_rte_sched.c.o FAILED: lib/librte_sched.a.p/sched_rte_sched.c.o ccache cc -Ilib/librte_sched.a.p -Ilib -I../lib -Ilib/sched -I../lib/sched -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/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -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-missing-field-initializers -D_GNU_SOURCE -DRTE_ENABLE_ASSERT=1 -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=lib.sched -MD -MQ lib/librte_sched.a.p/sched_rte_sched.c.o -MF lib/librte_sched.a.p/sched_rte_sched.c.o.d -o lib/librte_sched.a.p/sched_rte_sched.c.o -c ../lib/sched/rte_sched.c In file included from ../lib/eal/x86/include/rte_spinlock.h:15:0, from ../lib/eal/x86/include/rte_rwlock.h:13, from ../lib/eal/include/rte_fbarray.h:40, from ../lib/eal/include/rte_memory.h:25, from ../lib/sched/rte_sched.c:10: ../lib/sched/rte_pie.h: In function 'rte_pie_enqueue_empty': ../lib/sched/rte_pie.h:125:21: error: comparison between pointer and integer [-Werror] RTE_ASSERT(pkt_len != NULL); ^ ../lib/eal/include/rte_branch_prediction.h:38:41: note: in definition of macro 'unlikely' #define unlikely(x) __builtin_expect(!!(x), 0) ^ ../lib/eal/include/rte_debug.h:47:25: note: in expansion of macro 'RTE_VERIFY' #define RTE_ASSERT(exp) RTE_VERIFY(exp) ^~~~~~~~~~ ../lib/sched/rte_pie.h:125:2: note: in expansion of macro 'RTE_ASSERT' RTE_ASSERT(pkt_len != NULL); ^~~~~~~~~~ cc1: all warnings being treated as errors [396/2984] Compiling C object lib/librte_vhost.a.p/vhost_vhost_crypto.c.o ninja: build stopped: subcommand failed. """ OS: 18.04.5 LTS gcc: 7.5.0 -- You are receiving this mail because: You are the assignee for the bug.