<html>
<head>
<base href="https://bugs.dpdk.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8" class="bz_new_table">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - GCC 13 build errors in drivers/bus/dpaa in DRTE_ENABLE_ASSERT mode"
href="https://bugs.dpdk.org/show_bug.cgi?id=1233">1233</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>GCC 13 build errors in drivers/bus/dpaa in DRTE_ENABLE_ASSERT mode
</td>
</tr>
<tr>
<th>Product</th>
<td>DPDK
</td>
</tr>
<tr>
<th>Version</th>
<td>23.07
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>Normal
</td>
</tr>
<tr>
<th>Component</th>
<td>other
</td>
</tr>
<tr>
<th>Assignee</th>
<td>dev@dpdk.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jerinjacobk@gmail.com
</td>
</tr>
<tr>
<th>Target Milestone</th>
<td>---
</td>
</tr></table>
<p>
<div class="bz_comment_block">
<pre class="bz_comment_text">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=<a href="https://bugs.archlinux.org/">https://bugs.archlinux.org/</a> --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’:
</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://bugs.dpdk.org/show_bug.cgi?id=1233">
<meta itemprop="name" content="View bug">
</div>
<meta itemprop="description" content="Bugzilla bug update notification">
</div>
</body>
</html>