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 0DE13A0C4D; Wed, 16 Jun 2021 19:17:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A12DA40683; Wed, 16 Jun 2021 19:17:39 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id C201D4067A for ; Wed, 16 Jun 2021 19:17:38 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id A9B86A0C4E; Wed, 16 Jun 2021 19:17:38 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Wed, 16 Jun 2021 17:17:38 +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: unspecified 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 attachments.created Message-ID: 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 MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 739] Building DPDK with gcc 10.2.1 Generates Multiple Warning Messages 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 Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D739 Bug ID: 739 Summary: Building DPDK with gcc 10.2.1 Generates Multiple Warning Messages Product: DPDK Version: unspecified Hardware: POWER OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: other Assignee: dev@dpdk.org Reporter: drc@linux.vnet.ibm.com Target Milestone: --- Created attachment 162 --> https://bugs.dpdk.org/attachment.cgi?id=3D162&action=3Dedit Full Build Output Including Warnings Building DPDK 21.08-rc0 with gcc 10.2.1 on RHEL 8.3 generates multiple warnings, though the final executables appear to work correctly. Examples of such warnings include: [115/2415] Compiling C object 'lib/76b5a35@@rte_eal@sta/eal_common_eal_common_trace_utils.c.o'. ../lib/eal/common/eal_common_trace_utils.c: In function =E2=80=98trace_epoch_time_save=E2=80=99: ../lib/eal/common/eal_common_trace_utils.c:284:22: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5 284 | trace->uptime_ticks =3D avg; | ~~~~~~~~~~~~~~~~~~~~^~~~~ [225/2415] Compiling C object 'lib/76b5a35@@rte_acl@sta/acl_acl_gen.c.o'. ../lib/acl/acl_gen.c: In function =E2=80=98acl_count_trie_types.constprop= =E2=80=99: ../lib/acl/acl_gen.c:220:1: note: the layout of aggregates containing vecto= rs with 4-byte alignment has changed in GCC 5 220 | acl_count_trie_types(struct acl_node_counters *counts, | ^~~~~~~~~~~~~~~~~~~~ ... [320/2415] Compiling C object 'lib/76b5a35@@rte_hash@sta/hash_rte_thash.c.o= '. In file included from ../lib/mempool/rte_mempool.h:51, from ../lib/mbuf/rte_mbuf.h:38, from ../lib/net/rte_ip.h:31, from ../lib/hash/rte_thash.h:29, from ../lib/hash/rte_thash.c:5: In function =E2=80=98rte_memcpy_func=E2=80=99, inlined from =E2=80=98rte_thash_init_ctx=E2=80=99 at ../lib/hash/rte_th= ash.c:232:3: ../lib/eal/ppc/include/rte_memcpy.h:50:2: warning: writing 16 bytes into a region of size 0 [-Wstringop-overflow=3D] 50 | vec_vsx_st(vec_vsx_ld(0, src), 0, dst); | ^~~~~~~~~~ ... [323/2415] Compiling C object 'lib/76b5a35@@rte_lpm@sta/lpm_rte_lpm.c.o'. ../lib/lpm/rte_lpm.c: In function =E2=80=98rte_lpm_create=E2=80=99: ../lib/lpm/rte_lpm.c:240:19: note: the layout of aggregates containing vect= ors with 8-byte alignment has changed in GCC 5 240 | i_lpm->max_rules =3D config->max_rules; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ [328/2415] Compiling C object 'drivers/a715181@@tmp_rte_net_bnxt@sta/net_bnxt_tf_ulp_bnxt_ulp_flow.c.o'. ../drivers/net/bnxt/tf_ulp/bnxt_ulp_flow.c: In function =E2=80=98bnxt_ulp_init_mapper_params=E2=80=99: ../drivers/net/bnxt/tf_ulp/bnxt_ulp_flow.c:78:1: note: the layout of aggreg= ates containing vectors with 8-byte alignment has changed in GCC 5 78 | bnxt_ulp_init_mapper_params(struct bnxt_ulp_mapper_create_parms *mapper_cparms, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ... [1153/2415] Compiling C object 'drivers/a715181@@tmp_rte_net_ena@sta/net_ena_ena_ethdev.c.o'. In file included from ../lib/net/rte_ether.h:21, from ../drivers/net/ena/ena_ethdev.c:7: ../drivers/net/ena/ena_ethdev.c: In function =E2=80=98ena_rss_key_fill=E2= =80=99: ../lib/eal/ppc/include/rte_memcpy.h:53:2: warning: array subscript 3 is out= side array bounds of =E2=80=98uint8_t[40]=E2=80=99 {aka =E2=80=98unsigned char[4= 0]=E2=80=99} [-Warray-bounds] 53 | vec_vsx_st(vec_vsx_ld(48, src), 48, dst); | ^~~~~~~~~~ ../drivers/net/ena/ena_ethdev.c:277:17: note: while referencing =E2=80=98de= fault_key=E2=80=99 277 | static uint8_t default_key[ENA_HASH_KEY_SIZE]; | ^~~~~~~~~~~ In file included from ../lib/net/rte_ether.h:21, from ../drivers/net/ena/ena_ethdev.c:7: ../lib/eal/ppc/include/rte_memcpy.h:53:2: warning: array subscript [3, 7] is outside array bounds of =E2=80=98uint8_t[40]=E2=80=99 {aka =E2=80=98unsigne= d char[40]=E2=80=99} [-Warray-bounds] 53 | vec_vsx_st(vec_vsx_ld(48, src), 48, dst); | ^~~~~~~~~~ ../drivers/net/ena/ena_ethdev.c:277:17: note: while referencing =E2=80=98de= fault_key=E2=80=99 277 | static uint8_t default_key[ENA_HASH_KEY_SIZE]; | ^~~~~~~~~~~ --=20 You are receiving this mail because: You are the assignee for the bug.=