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 3658CA0507; Thu, 24 Mar 2022 02:59:12 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E06B541151; Thu, 24 Mar 2022 02:59:11 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 53146410FC for ; Thu, 24 Mar 2022 02:59:11 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 35FEBA0508; Thu, 24 Mar 2022 02:59:11 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 977] [dpdk-19.11.12-rc1] meson and make build Error on Fedora35-64 and Ubuntu2110-64 with gcc11.2.1 and gcc11.2.0 Date: Thu, 24 Mar 2022 01:59:11 +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: 19.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: daxuex.gao@intel.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=3D977 Bug ID: 977 Summary: [dpdk-19.11.12-rc1] meson and make build Error on Fedora35-64 and Ubuntu2110-64 with gcc11.2.1 and gcc11.2.0 Product: DPDK Version: 19.11 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: core Assignee: dev@dpdk.org Reporter: daxuex.gao@intel.com Target Milestone: --- [DPDK version]: c511bb7787 (HEAD, tag: v19.11.12-rc1, origin/19.11) [OS version]: Fedora 35-64/5.14.16-301.fc35.x86_64 GCC Version: 11.2.1 20210728 (Red Hat 11.2.1-1) UB2110-64 /5.13.0-19-generic GCC Version: gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0 [Make Test Setup]: export RTE_TARGET=3Dx86_64-native-linuxapp-gcc export RTE_SDK=3D`pwd` echo "CONFIG_RTE_EAL_IGB_UIO=3Dy" >> config/common_base echo "CONFIG_RTE_LIBRTE_BNX2X_PMD=3Dy" >> config/common_base echo "CONFIG_RTE_LIBRTE_PMD_PCAP=3Dy" >> config/common_base echo "CONFIG_RTE_LIBRTE_PMD_QAT=3Dy" >> config/common_base echo "CONFIG_RTE_LIBRTE_PMD_QAT_SYM=3Dy" >> config/common_base echo "CONFIG_RTE_LIBRTE_PMD_AESNI_MB=3Dy" >> config/common_base echo "CONFIG_RTE_LIBRTE_PMD_OPENSSL=3Dy" >> config/common_base make -j 20 install T=3Dx86_64-native-linuxapp-gcc [Meson Test setup] CC=3Dgcc meson --werror -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dexamples=3Da= ll --default-library=3Dstatic x86_64-native-linuxapp-gcc ninja -j 10 -C x86_64-native-linuxapp-gcc [UB2110 Make log as below] In function =E2=80=98snprintf=E2=80=99, inlined from =E2=80=98rte_strlcpy=E2=80=99 at /root/UB2110-64_K5.13.0_GCC11.2.0/x86_64-native-linuxapp-gcc/20220323141024= /dpdk/x86_64-native-linuxapp-gcc/include/rte_string_fns.h:61:17, inlined from =E2=80=98bnxt_dev_xstats_get_names_op=E2=80=99 at /root/UB2110-64_K5.13.0_GCC11.2.0/x86_64-native-linuxapp-gcc/20220323141024= /dpdk/drivers/net/bnxt/bnxt_stats.c:632:2: /usr/include/x86_64-linux-gnu/bits/stdio2.h:71:10: error: =E2=80=98__builti= n_memcpy=E2=80=99 offset [0, 12] is out of the bounds [0, 0] [-Werror=3Darray-bounds] 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - = 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~ 72 | __glibc_objsize (__s), __fmt, -- 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[6]: *** [/root/UB2110-64_K5.13.0_GCC11.2.0/x86_64-native-linuxapp-gcc/2022032314102= 4/dpdk/mk/internal/rte.compile-pre.mk:116: bnxt_stats.o] Error 1 make[6]: *** Waiting for unfinished jobs.... CC tap_flow.o make[5]: *** [/root/UB2110-64_K5.13.0_GCC11.2.0/x86_64-native-linuxapp-gcc/2022032314102= 4/dpdk/mk/rte.subdir.mk:35: bnxt] Error 2 make[5]: *** Waiting for unfinished jobs.... CC sfc_flow.o CC ixgbe_rxtx_vec_sse.o -- CC medford2_nic.o AR librte_pmd_sfc_efx.a INSTALL-LIB librte_pmd_sfc_efx.a make[4]: *** [/root/UB2110-64_K5.13.0_GCC11.2.0/x86_64-native-linuxapp-gcc/2022032314102= 4/dpdk/mk/rte.subdir.mk:35: net] Error 2 make[3]: *** [/root/UB2110-64_K5.13.0_GCC11.2.0/x86_64-native-linuxapp-gcc/2022032314102= 4/dpdk/mk/rte.sdkbuild.mk:46: drivers] Error 2 make[2]: *** [/root/UB2110-64_K5.13.0_GCC11.2.0/x86_64-native-linuxapp-gcc/2022032314102= 4/dpdk/mk/rte.sdkroot.mk:99: all] Error 2 make[1]: *** [/root/UB2110-64_K5.13.0_GCC11.2.0/x86_64-native-linuxapp-gcc/2022032314102= 4/dpdk/mk/rte.sdkinstall.mk:61: pre_install] Error 2 make: *** [/root/UB2110-64_K5.13.0_GCC11.2.0/x86_64-native-linuxapp-gcc/2022032314102= 4/dpdk/mk/rte.sdkroot.mk:77: install] Error 2 DPDK STV team [Fedora Make log as below] In file included from /root/FC35-64_K5.14.16_GCC11.2.1/x86_64-native-linuxapp-gcc/20220323141024/= dpdk/drivers/net/bnxt/bnxt_stats.c:8: In function =E2=80=98rte_strlcpy=E2=80=99, inlined from =E2=80=98bnxt_dev_xstats_get_names_op=E2=80=99 at /root/FC35-64_K5.14.16_GCC11.2.1/x86_64-native-linuxapp-gcc/20220323141024/= dpdk/drivers/net/bnxt/bnxt_stats.c:632:2: /root/FC35-64_K5.14.16_GCC11.2.1/x86_64-native-linuxapp-gcc/20220323141024/= dpdk/x86_64-native-linuxapp-gcc/include/rte_string_fns.h:61:24: error: =E2=80=98__builtin_memcpy=E2=80=99 offset [0, 12] is out of the boun= ds [0, 0] [-Werror=3Darray-bounds] 61 | return (size_t)snprintf(dst, size, "%s", src); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[6]: *** [/root/FC35-64_K5.14.16_GCC11.2.1/x86_64-native-linuxapp-gcc/20220323141024= /dpdk/mk/internal/rte.compile-pre.mk:116: bnxt_stats.o] Error 1 make[5]: *** [/root/FC35-64_K5.14.16_GCC11.2.1/x86_64-native-linuxapp-gcc/20220323141024= /dpdk/mk/rte.subdir.mk:35: bnxt] Error 2 make[5]: *** Waiting for unfinished jobs.... CC otx2_mcast.o PMDINFO rte_eth_kni.o.pmd.c -- CC medford2_nic.o AR librte_pmd_sfc_efx.a INSTALL-LIB librte_pmd_sfc_efx.a make[4]: *** [/root/FC35-64_K5.14.16_GCC11.2.1/x86_64-native-linuxapp-gcc/20220323141024= /dpdk/mk/rte.subdir.mk:35: net] Error 2 make[3]: *** [/root/FC35-64_K5.14.16_GCC11.2.1/x86_64-native-linuxapp-gcc/20220323141024= /dpdk/mk/rte.sdkbuild.mk:46: drivers] Error 2 make[2]: *** [/root/FC35-64_K5.14.16_GCC11.2.1/x86_64-native-linuxapp-gcc/20220323141024= /dpdk/mk/rte.sdkroot.mk:99: all] Error 2 make[1]: *** [/root/FC35-64_K5.14.16_GCC11.2.1/x86_64-native-linuxapp-gcc/20220323141024= /dpdk/mk/rte.sdkinstall.mk:61: pre_install] Error 2 make: *** [/root/FC35-64_K5.14.16_GCC11.2.1/x86_64-native-linuxapp-gcc/20220323141024= /dpdk/mk/rte.sdkroot.mk:77: install] Error 2 [Bad commit] commit a9b0d056440cd0f52de752e49e45e2d3255c5aca Author: Kalesh AP Date: Mon Mar 7 20:40:36 2022 +0530 net/bnxt: fix xstats names query overrun [ upstream commit 8dcee14fbfca8c90cd09c88e0fda65819d82ded6 ] When the xstats_names parameter to rte_eth_xstats_get_names() is non-NULL and the size parameter is less than the required number of entries, the driver must return the required size without modifying (and over-running) the caller's xstats_names array. Update bnxt_dev_xstats_get_names_op() in accordance with this requirement. Fixes: bfb9c2260be2 ("net/bnxt: support xstats get/reset") Signed-off-by: Lance Richardson Signed-off-by: Kalesh AP Acked-by: Ajit Khaparde --=20 You are receiving this mail because: You are the assignee for the bug.=