DPDK patches and discussions
 help / color / mirror / Atom feed
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [dpdk-dev] [Bug 878] lib/sched build failure with debug and assert enabled
Date: Sun, 07 Nov 2021 09:15:07 +0000	[thread overview]
Message-ID: <bug-878-3@http.bugs.dpdk.org/> (raw)

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: alialnu@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.

                 reply	other threads:[~2021-11-07  9:15 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-878-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 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).