DPDK patches and discussions
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <bug-977-3@http.bugs.dpdk.org/> (raw)

https://bugs.dpdk.org/show_bug.cgi?id=977

            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=x86_64-native-linuxapp-gcc
export RTE_SDK=`pwd`

echo "CONFIG_RTE_EAL_IGB_UIO=y" >> config/common_base
echo "CONFIG_RTE_LIBRTE_BNX2X_PMD=y" >> config/common_base
echo "CONFIG_RTE_LIBRTE_PMD_PCAP=y" >> config/common_base
echo "CONFIG_RTE_LIBRTE_PMD_QAT=y" >> config/common_base
echo "CONFIG_RTE_LIBRTE_PMD_QAT_SYM=y" >> config/common_base
echo "CONFIG_RTE_LIBRTE_PMD_AESNI_MB=y" >> config/common_base
echo "CONFIG_RTE_LIBRTE_PMD_OPENSSL=y" >> config/common_base

make -j 20 install T=x86_64-native-linuxapp-gcc

[Meson Test setup]
CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all
--default-library=static x86_64-native-linuxapp-gcc
ninja -j 10 -C x86_64-native-linuxapp-gcc

[UB2110 Make log as below]
In function ‘snprintf’,
    inlined from ‘rte_strlcpy’ 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 ‘bnxt_dev_xstats_get_names_op’ 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: ‘__builtin_memcpy’
offset [0, 12] is out of the bounds [0, 0] [-Werror=array-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/20220323141024/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/20220323141024/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/20220323141024/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/20220323141024/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/20220323141024/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/20220323141024/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/20220323141024/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 ‘rte_strlcpy’,
    inlined from ‘bnxt_dev_xstats_get_names_op’ 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: ‘__builtin_memcpy’ offset [0, 12] is out of the bounds [0, 0]
[-Werror=array-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 <kalesh-anakkur.purayil@broadcom.com>
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 <lance.richardson@broadcom.com>
    Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
    Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>

-- 
You are receiving this mail because:
You are the assignee for the bug.

                 reply	other threads:[~2022-03-24  1:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-977-3@http.bugs.dpdk.org/ \
    --to=bugzilla@dpdk.org \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).