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 D640642800; Tue, 21 Mar 2023 23:37:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7181640A7F; Tue, 21 Mar 2023 23:37:11 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 06EAD40A7A for ; Tue, 21 Mar 2023 23:37:10 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id E3E4742801; Tue, 21 Mar 2023 23:37:09 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1195] Building DPDK with gcc 12 Generates stringop-overflow warnings on RHEL 8.7 Date: Tue, 21 Mar 2023 22:37:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: core X-Bugzilla-Version: 23.03 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: drc@linux.vnet.ibm.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=16794382290.D7078.1577838 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 --16794382290.D7078.1577838 Date: Tue, 21 Mar 2023 23:37:09 +0100 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=3D1195 Bug ID: 1195 Summary: Building DPDK with gcc 12 Generates stringop-overflow warnings on RHEL 8.7 Product: DPDK Version: 23.03 Hardware: POWER OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: core Assignee: dev@dpdk.org Reporter: drc@linux.vnet.ibm.com Target Milestone: --- Building DPDK 23.03-rc3 on ppc64le systems with RHEL 8.7 and gcc-toolset-12 (gcc v12.2.1) generates stringop-overflow overflow warnings: [1641/2397] Compiling C object drivers/libtmp_rte_net_tap.a.p/net_tap_rte_eth_tap.c.o In function =E2=80=98parse_user_mac=E2=80=99, inlined from =E2=80=98set_mac_type=E2=80=99 at ../drivers/net/tap/rte_e= th_tap.c:2314:6: ../drivers/net/tap/rte_eth_tap.c:2286:47: warning: writing 1 byte into a re= gion of size 0 [-Wstringop-overflow=3D] 2286 | user_mac->addr_bytes[index++] =3D strtoul(mac_byte,= NULL, 16); |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../lib/ethdev/rte_eth_ctrl.h:10, from ../lib/ethdev/rte_ethdev.h:1421, from ../lib/ethdev/ethdev_driver.h:24, from ../drivers/net/tap/rte_eth_tap.c:10: ../lib/net/rte_ether.h: In function =E2=80=98set_mac_type=E2=80=99: ../lib/net/rte_ether.h:61:17: note: at offset 6 into destination object =E2=80=98addr_bytes=E2=80=99 of size 6 61 | uint8_t addr_bytes[RTE_ETHER_ADDR_LEN]; /**< Addr bytes in = tx order */ | ^~~~~~~~~~ Warning is not observed when building on an x86_64 system with RHEL 8.7 and gcc-toolset-12. --=20 You are receiving this mail because: You are the assignee for the bug.= --16794382290.D7078.1577838 Date: Tue, 21 Mar 2023 23:37:09 +0100 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 1195
Summary Building DPDK with gcc 12 Generates stringop-overflow warning= s on RHEL 8.7
Product DPDK
Version 23.03
Hardware POWER
OS Linux
Status UNCONFIRMED
Severity normal
Priority Normal
Component core
Assignee dev@dpdk.org
Reporter drc@linux.vnet.ibm.com
Target Milestone ---

Building DPDK 23.03-rc3 on ppc64le=
 systems with RHEL 8.7 and gcc-toolset-12
(gcc v12.2.1) generates stringop-overflow overflow warnings:

[1641/2397] Compiling C object
drivers/libtmp_rte_net_tap.a.p/net_tap_rte_eth_tap.c.o
In function =E2=80=98parse_user_mac=E2=80=99,
    inlined from =E2=80=98set_mac_type=E2=80=99 at ../drivers/net/tap/rte_e=
th_tap.c:2314:6:
../drivers/net/tap/rte_eth_tap.c:2286:47: warning: writing 1 byte into a re=
gion
of size 0 [-Wstringop-overflow=3D]
 2286 |                 user_mac->addr_bytes[index++] =3D strtoul(mac_by=
te, NULL,
16);
      |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../lib/ethdev/rte_eth_ctrl.h:10,
                 from ../lib/ethdev/rte_ethdev.h:1421,
                 from ../lib/ethdev/ethdev_driver.h:24,
                 from ../drivers/net/tap/rte_eth_tap.c:10:
../lib/net/rte_ether.h: In function =E2=80=98set_mac_type=E2=80=99:
../lib/net/rte_ether.h:61:17: note: at offset 6 into destination object
=E2=80=98addr_bytes=E2=80=99 of size 6
   61 |         uint8_t addr_bytes[RTE_ETHER_ADDR_LEN]; /**< Addr bytes =
in tx
order */
      |                 ^~~~~~~~~~

Warning is not observed when building on an x86_64 system with RHEL 8.7 and
gcc-toolset-12.
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --16794382290.D7078.1577838--