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 724D042B27; Tue, 16 May 2023 19:52:19 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 279C0406B6; Tue, 16 May 2023 19:52:19 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 63BD94003C for ; Tue, 16 May 2023 19:52:17 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 4D36942B29; Tue, 16 May 2023 19:52:17 +0200 (CEST) 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 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: other X-Bugzilla-Version: 23.07 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jerinjacobk@gmail.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: multipart/alternative; boundary=16842595371.1e5FFE7b.3623916 Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 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 --16842595371.1e5FFE7b.3623916 Date: Tue, 16 May 2023 19:52:17 +0200 MIME-Version: 1.0 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 https://bugs.dpdk.org/show_bug.cgi?id=3D1233 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=3D'-DRTE_ENABLE_ASSERT' -Denable_docs=3Dtrue build ninja -C build [dpdk-next-net-mrvl] $ gcc -v Using built-in specs. COLLECT_GCC=3D/usr/bin/cc COLLECT_LTO_WRAPPER=3D/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=3Dada,c,c++,d,fortran,go,lto,objc,obj-c++ --enable-boots= trap --prefix=3D/usr --libdir=3D/usr/lib --libexecdir=3D/usr/lib --mandir=3D/usr= /share/man --infodir=3D/usr/share/info --with-bugur l=3Dhttps://bugs.archlinux.org/ --with-build-config=3Dbootstrap-lto --with-linker-hash-style=3Dgnu --with-system-zlib --enable-__cxa_atexit --enable-cet=3Dauto --enable-checking=3Drelease --enable-clocale=3Dgnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-libstdcxx-backtrace --enable-link-serialization=3D1 --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=3Dposix --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/r= ing -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=3Dalways -D_FILE_OFFSET_BITS=3D64 -W= all -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=3Dnative -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-fo rmat-truncation -Wno-cast-qual -Wno-pointer-arith -DRTE_LOG_DEFAULT_LOGTYPE=3Dbus.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 =E2=80=98rte_spinlock_lock=E2=80=99, inlined from =E2=80=98fq_state_change=E2=80=99 at ../drivers/bus/dpaa/base/qbman/qman.c:767:2, inlined from =E2=80=98__poll_portal_slow=E2=80=99 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 =E2=80=98rte_spinlock_t[0]=E2=80=99 [-Werror=3Darray-bounds= =3D] 33 | #define asm __asm__ | ^~~~~~~ ../lib/eal/x86/include/rte_spinlock.h:29:9: note: in expansion of macro =E2= =80=98asm=E2=80=99 29 | asm volatile ( | ^~~ In function =E2=80=98__poll_portal_slow=E2=80=99: 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 =E2=80=98fqtree_del=E2=80=99, inlined from =E2=80=98table_del_fq=E2=80=99 at ../drivers/bus/dpaa/base= /qbman/qman.c:145:2, inlined from =E2=80=98fq_state_change=E2=80=99 at ../drivers/bus/dpaa/base/qbman/qman.c:772:3, inlined from =E2=80=98__poll_portal_slow=E2=80=99 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 =E2=80=98struct rb_node[0]=E2=80=99 [-Werror=3Darra= y-bounds=3D] 94 | tree->tail =3D tree->tail->prev; \ | ~~~~~~~~~~^~~~~~ ../drivers/bus/dpaa/base/qbman/qman.c:127:1: note: in expansion of macro =E2=80=98IMPLEMENT_DPAA_RBTREE=E2=80=99 127 | IMPLEMENT_DPAA_RBTREE(fqtree, struct qman_fq, node, fqid); | ^~~~~~~~~~~~~~~~~~~~~ In function =E2=80=98__poll_portal_slow=E2=80=99: cc1: note: source object is likely at address zero In function =E2=80=98fqtree_del=E2=80=99, inlined from =E2=80=98table_del_fq=E2=80=99 at ../drivers/bus/dpaa/base= /qbman/qman.c:145:2, inlined from =E2=80=98fq_state_change=E2=80=99 at ../drivers/bus/dpaa/base/qbman/qman.c:772:3, inlined from =E2=80=98__poll_portal_slow=E2=80=99 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 =E2=80=98struct rb_node[0]=E2=80=99 [-Werror=3Darra= y-bounds=3D] 88 | tree->head =3D tree->head->next; \ | ~~~~~~~~~~^~~~~~ ../drivers/bus/dpaa/base/qbman/qman.c:127:1: note: in expansion of macro =E2=80=98IMPLEMENT_DPAA_RBTREE=E2=80=99 127 | IMPLEMENT_DPAA_RBTREE(fqtree, struct qman_fq, node, fqid); | ^~~~~~~~~~~~~~~~~~~~~ In function =E2=80=98__poll_portal_slow=E2=80=99: --=20 You are receiving this mail because: You are the assignee for the bug.= --16842595371.1e5FFE7b.3623916 Date: Tue, 16 May 2023 19:52:17 +0200 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All
Bug ID 1233
Summary GCC 13 build errors in drivers/bus/dpaa in DRTE_ENABLE_ASSER= T 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=3D'-DRTE_ENABLE_ASSERT'  -Denable_docs=3Dtrue build
ninja -C build


[dpdk-next-net-mrvl] $ gcc -v
Using built-in specs.
COLLECT_GCC=3D/usr/bin/cc
COLLECT_LTO_WRAPPER=3D/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=3Dada,c,c++,d,fortran,go,lto,objc,obj-c++ --enable-boots=
trap
--prefix=3D/usr --libdir=3D/usr/lib --libexecdir=3D/usr/lib --mandir=3D/usr=
/share/man
--infodir=3D/usr/share/info --with-bugur
l=3Dhttps://bugs.archlinux.org/=
 --with-build-config=3Dbootstrap-lto
--with-linker-hash-style=3Dgnu --with-system-zlib --enable-__cxa_atexit
--enable-cet=3Dauto --enable-checking=3Drelease --enable-clocale=3Dgnu
--enable-default-pie --enable-default-ssp
 --enable-gnu-indirect-function --enable-gnu-unique-object
--enable-libstdcxx-backtrace --enable-link-serialization=3D1
--enable-linker-build-id --enable-lto --enable-multilib --enable-plugin
--enable-shared --enable-threads=3Dposix --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/r=
ing
-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=3Dalways -D_FILE_OFFSET_BITS=3D64 -W=
all
-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=3Dnative -DALLOW_EXPERIMENTAL_API
-DALLOW_INTERNAL_API -Wno-fo
rmat-truncation -Wno-cast-qual -Wno-pointer-arith
-DRTE_LOG_DEFAULT_LOGTYPE=3Dbus.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 =E2=80=98rte_spinlock_lock=E2=80=99,
    inlined from =E2=80=98fq_state_change=E2=80=99 at
../drivers/bus/dpaa/base/qbman/qman.c:767:2,
    inlined from =E2=80=98__poll_portal_slow=E2=80=99 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 =E2=80=98rte_spinlock_t[0]=E2=80=99 [-Werror=3Darray-bounds=
=3D]
   33 | #define asm __asm__
      |             ^~~~~~~
../lib/eal/x86/include/rte_spinlock.h:29:9: note: in expansion of macro =E2=
=80=98asm=E2=80=99
   29 |         asm volatile (
      |         ^~~
In function =E2=80=98__poll_portal_slow=E2=80=99:
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 =E2=80=98fqtree_del=E2=80=99,
    inlined from =E2=80=98table_del_fq=E2=80=99 at ../drivers/bus/dpaa/base=
/qbman/qman.c:145:2,
    inlined from =E2=80=98fq_state_change=E2=80=99 at
../drivers/bus/dpaa/base/qbman/qman.c:772:3,
    inlined from =E2=80=98__poll_portal_slow=E2=80=99 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 =E2=80=98struct rb_node[0]=E2=80=99 [-Werror=3Darra=
y-bounds=3D]
   94 |                         tree->tail =3D tree->tail->prev; \
      |                                      ~~~~~~~~~~^~~~~~
../drivers/bus/dpaa/base/qbman/qman.c:127:1: note: in expansion of macro
=E2=80=98IMPLEMENT_DPAA_RBTREE=E2=80=99
  127 | IMPLEMENT_DPAA_RBTREE(fqtree, struct qman_fq, node, fqid);
      | ^~~~~~~~~~~~~~~~~~~~~
In function =E2=80=98__poll_portal_slow=E2=80=99:
cc1: note: source object is likely at address zero
In function =E2=80=98fqtree_del=E2=80=99,
    inlined from =E2=80=98table_del_fq=E2=80=99 at ../drivers/bus/dpaa/base=
/qbman/qman.c:145:2,
    inlined from =E2=80=98fq_state_change=E2=80=99 at
../drivers/bus/dpaa/base/qbman/qman.c:772:3,
    inlined from =E2=80=98__poll_portal_slow=E2=80=99 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 =E2=80=98struct rb_node[0]=E2=80=99 [-Werror=3Darra=
y-bounds=3D]
   88 |                         tree->head =3D tree->head->next; \
      |                                      ~~~~~~~~~~^~~~~~
../drivers/bus/dpaa/base/qbman/qman.c:127:1: note: in expansion of macro
=E2=80=98IMPLEMENT_DPAA_RBTREE=E2=80=99
  127 | IMPLEMENT_DPAA_RBTREE(fqtree, struct qman_fq, node, fqid);
      | ^~~~~~~~~~~~~~~~~~~~~
In function =E2=80=98__poll_portal_slow=E2=80=99:
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --16842595371.1e5FFE7b.3623916--