From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A860C433F5 for ; Tue, 29 Mar 2022 14:40:38 +0000 (UTC) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 98F3F40691; Tue, 29 Mar 2022 16:40:37 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id E653440141 for ; Tue, 29 Mar 2022 16:40:36 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id C3F73A0508; Tue, 29 Mar 2022 16:40:36 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 985] [20.11] librte_eal build error with gcc 12 Date: Tue, 29 Mar 2022 14:40:36 +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: 20.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alialnu@nvidia.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: 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 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 https://bugs.dpdk.org/show_bug.cgi?id=3D985 Bug ID: 985 Summary: [20.11] librte_eal build error with gcc 12 Product: DPDK Version: 20.11 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: other Assignee: dev@dpdk.org Reporter: alialnu@nvidia.com Target Milestone: --- """ $ meson --werror build && ninja-build -C build [108/1974] Compiling C object lib/librte_eal.a.p/librte_eal_linux_eal_eal_memory.c.o FAILED: lib/librte_eal.a.p/librte_eal_linux_eal_eal_memory.c.o gcc -Ilib/librte_eal.a.p -Ilib -I../../root/dpdk/lib -I. -I../../root/dpdk -Iconfig -I../../root/dpdk/config -Ilib/librte_eal/common/include -I../../root/dpdk/lib/librte_eal/common/include -I../../root/dpdk/lib/librte_eal/linux/eal/include -Ilib/librte_eal/common -I../../root/dpdk/lib/librte_eal/common -Ilib/librte_eal/common/include/arch/x86 -I../../root/dpdk/lib/librte_eal/common/include/arch/x86 -Ilib/librte_eal -I../../root/dpdk/lib/librte_eal -Ilib/librte_kvargs -I../../root/dpdk/lib/librte_kvargs -fdiagnostics-color=3Dalways -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-exte= rns -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-align= ed -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=3Dnative -Wno-format-truncation -DRTE_LIBEAL_USE_GETENTROPY -DALLOW_EXPERIMENTAL_API -MD -MQ lib/librte_eal.a.p/librte_eal_linux_eal_eal_memory.c.o -MF lib/librte_eal.a.p/librte_eal_linux_eal_eal_memory.c.o.d -o lib/librte_eal.a.p/librte_eal_linux_eal_eal_memory.c.o -c ../../root/dpdk/lib/librte_eal/linux/eal/eal_memory.c In function 'eal_get_hugepage_mem_size', inlined from 'eal_legacy_hugepage_init' at ../../root/dpdk/lib/librte_eal/linux/eal/eal_memory.c:1566:28: ../../root/dpdk/lib/librte_eal/linux/eal/eal_memory.c:1272:21: error: 'strn= len' specified bound 4096 exceeds source size 136 [-Werror=3Dstringop-overread] 1272 | if (strnlen(hpi->hugedir, sizeof(hpi->hugedir)) != =3D 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../../root/dpdk/lib/librte_eal/linux/eal/eal_memory.c= :49: ../../root/dpdk/lib/librte_eal/common/eal_internal_cfg.h: In function 'eal_legacy_hugepage_init': ../../root/dpdk/lib/librte_eal/common/eal_internal_cfg.h:86:31: note: source object allocated here 86 | extern struct internal_config internal_config; /**< Global EAL configuration. */ | ^~~~~~~~~~~~~~~ cc1: all warnings being treated as errors [109/1974] Generating lib/timer_def with a custom command """ OS: Fedora Linux 37 gcc: 12.0.1 20220308 (Red Hat 12.0.1-0) --=20 You are receiving this mail because: You are the assignee for the bug.=