All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [Bug 1233] GCC 13 build errors  in drivers/bus/dpaa in DRTE_ENABLE_ASSERT mode
Date: Tue, 16 May 2023 17:52:17 +0000	[thread overview]
Message-ID: <bug-1233-3@http.bugs.dpdk.org/> (raw)

[-- Attachment #1: Type: text/plain, Size: 6445 bytes --]

https://bugs.dpdk.org/show_bug.cgi?id=1233

            Bug ID: 1233
           Summary: GCC 13 build errors  in drivers/bus/dpaa in
                    DRTE_ENABLE_ASSERT mode
           Product: DPDK
           Version: 23.07
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: other
          Assignee: dev@dpdk.org
          Reporter: jerinjacobk@gmail.com
  Target Milestone: ---

steps to reproduce:

meson --werror -Dc_args='-DRTE_ENABLE_ASSERT'  -Denable_docs=true build
ninja -C build


[dpdk-next-net-mrvl] $ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/cc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure
--enable-languages=ada,c,c++,d,fortran,go,lto,objc,obj-c++ --enable-bootstrap
--prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugur
l=https://bugs.archlinux.org/ --with-build-config=bootstrap-lto
--with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit
--enable-cet=auto --enable-checking=release --enable-clocale=gnu
--enable-default-pie --enable-default-ssp
 --enable-gnu-indirect-function --enable-gnu-unique-object
--enable-libstdcxx-backtrace --enable-link-serialization=1
--enable-linker-build-id --enable-lto --enable-multilib --enable-plugin
--enable-shared --enable-threads=posix --disable-l
ibssp --disable-libstdcxx-pch --disable-werror
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.1.1 20230429 (GCC)


log:

ccache cc -Idrivers/libtmp_rte_bus_dpaa.a.p -Idrivers -I../drivers
-Idrivers/bus/dpaa -I../drivers/bus/dpaa -I../drivers/bus/dpaa/include
-I../drivers/bus/dpaa/base/qbman -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../l
ib/telemetry -Idrivers/common/dpaax -I../drivers/common/dpaax
-I../drivers/common/dpaax/caamflib -Ilib/eventdev -I../lib/eventdev -Ilib/ring
-I../lib/ring -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf
-I../lib/mbuf -Ilib/me
mpool -I../lib/mempool -Ilib/meter -I../lib/meter -Ilib/hash -I../lib/hash
-Ilib/rcu -I../lib/rcu -Ilib/timer -I../lib/timer -Ilib/cryptodev
-I../lib/cryptodev -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall
-Winvalid-pch -Wextra -W
error -O3 -include rte_config.h -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
-DRTE_ENABLE_ASSERT -fPIC -march=native -DALLOW_EXPERIMENTAL_API
-DALLOW_INTERNAL_API -Wno-fo
rmat-truncation -Wno-cast-qual -Wno-pointer-arith
-DRTE_LOG_DEFAULT_LOGTYPE=bus.dpaa -MD -MQ
drivers/libtmp_rte_bus_dpaa.a.p/bus_dpaa_base_qbman_qman.c.o -MF
drivers/libtmp_rte_bus_dpaa.a.p/bus_dpaa_base_qbman_qman.c.o.d -o
drivers/libtmp_r
te_bus_dpaa.a.p/bus_dpaa_base_qbman_qman.c.o -c
../drivers/bus/dpaa/base/qbman/qman.c
In file included from ../lib/eal/x86/include/rte_byteorder.h:13,
                 from ../drivers/common/dpaax/compat.h:33,
                 from ../drivers/bus/dpaa/base/qbman/dpaa_sys.h:11,
                 from ../drivers/bus/dpaa/base/qbman/qman_priv.h:11,
                 from ../drivers/bus/dpaa/base/qbman/qman.h:8,
                 from ../drivers/bus/dpaa/base/qbman/qman.c:8:
In function ‘rte_spinlock_lock’,
    inlined from ‘fq_state_change’ at
../drivers/bus/dpaa/base/qbman/qman.c:767:2,
    inlined from ‘__poll_portal_slow’ at
../drivers/bus/dpaa/base/qbman/qman.c:901:5:
../lib/eal/include/rte_common.h:33:13: error: array subscript 0 is outside
array bounds of ‘rte_spinlock_t[0]’ [-Werror=array-bounds=]
   33 | #define asm __asm__
      |             ^~~~~~~
../lib/eal/x86/include/rte_spinlock.h:29:9: note: in expansion of macro ‘asm’
   29 |         asm volatile (
      |         ^~~
In function ‘__poll_portal_slow’:
cc1: note: source object is likely at address zero
In file included from ../drivers/bus/dpaa/include/fsl_qman.h:15,
                 from ../drivers/bus/dpaa/base/qbman/qman_priv.h:12:
In function ‘fqtree_del’,
    inlined from ‘table_del_fq’ at ../drivers/bus/dpaa/base/qbman/qman.c:145:2,
    inlined from ‘fq_state_change’ at
../drivers/bus/dpaa/base/qbman/qman.c:772:3,
    inlined from ‘__poll_portal_slow’ at
../drivers/bus/dpaa/base/qbman/qman.c:901:5:
../drivers/bus/dpaa/include/dpaa_rbtree.h:94:48: error: array subscript 0 is
outside array bounds of ‘struct rb_node[0]’ [-Werror=array-bounds=]
   94 |                         tree->tail = tree->tail->prev; \
      |                                      ~~~~~~~~~~^~~~~~
../drivers/bus/dpaa/base/qbman/qman.c:127:1: note: in expansion of macro
‘IMPLEMENT_DPAA_RBTREE’
  127 | IMPLEMENT_DPAA_RBTREE(fqtree, struct qman_fq, node, fqid);
      | ^~~~~~~~~~~~~~~~~~~~~
In function ‘__poll_portal_slow’:
cc1: note: source object is likely at address zero
In function ‘fqtree_del’,
    inlined from ‘table_del_fq’ at ../drivers/bus/dpaa/base/qbman/qman.c:145:2,
    inlined from ‘fq_state_change’ at
../drivers/bus/dpaa/base/qbman/qman.c:772:3,
    inlined from ‘__poll_portal_slow’ at
../drivers/bus/dpaa/base/qbman/qman.c:901:5:
../drivers/bus/dpaa/include/dpaa_rbtree.h:88:48: error: array subscript 0 is
outside array bounds of ‘struct rb_node[0]’ [-Werror=array-bounds=]
   88 |                         tree->head = tree->head->next; \
      |                                      ~~~~~~~~~~^~~~~~
../drivers/bus/dpaa/base/qbman/qman.c:127:1: note: in expansion of macro
‘IMPLEMENT_DPAA_RBTREE’
  127 | IMPLEMENT_DPAA_RBTREE(fqtree, struct qman_fq, node, fqid);
      | ^~~~~~~~~~~~~~~~~~~~~
In function ‘__poll_portal_slow’:

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #2: Type: text/html, Size: 8378 bytes --]

                 reply	other threads:[~2023-05-16 17:52 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-1233-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.