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 8B2CCA0C41; Sun, 7 Nov 2021 10:15:11 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 224C240151; Sun, 7 Nov 2021 10:15:11 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 73D5540040 for ; Sun, 7 Nov 2021 10:15:09 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 4C599A0C4B; Sun, 7 Nov 2021 10:15:09 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Sun, 07 Nov 2021 09:15:07 +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: 21.11 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 878] lib/sched build failure with debug and assert enabled 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=3D878 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: alialnu@nvidia.com Target Milestone: --- """ $ meson --werror --buildtype=3Ddebug -Dc_args=3D'-DRTE_ENABLE_ASSERT=3D1' b= uild && 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=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-missing-field-initializers -D_GNU_SOURCE -DRTE_ENABLE_ASSERT=3D1 -fPIC -march=3Dnative -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=3Dlib.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 !=3D NULL); ^ ../lib/eal/include/rte_branch_prediction.h:38:41: note: in definition of ma= cro 'unlikely' #define unlikely(x) __builtin_expect(!!(x), 0) ^ ../lib/eal/include/rte_debug.h:47:25: note: in expansion of macro 'RTE_VERI= FY' #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 !=3D 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=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-missing-field-initializers -D_GNU_SOURCE -DRTE_ENABLE_ASSERT=3D1 -fPIC -march=3Dnative -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=3Dlib.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 !=3D NULL); ^ ../lib/eal/include/rte_branch_prediction.h:38:41: note: in definition of ma= cro 'unlikely' #define unlikely(x) __builtin_expect(!!(x), 0) ^ ../lib/eal/include/rte_debug.h:47:25: note: in expansion of macro 'RTE_VERI= FY' #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 !=3D 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 --=20 You are receiving this mail because: You are the assignee for the bug.=