DPDK patches and discussions
 help / color / mirror / Atom feed
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [dpdk-dev] [Bug 841] [dpdk-21.11] DPDK build failed with EXTRA_CFLAGS='-O1' on Ubuntu20.4.3 and Redhat8.4.
Date: Wed, 27 Oct 2021 10:53:27 +0000	[thread overview]
Message-ID: <bug-841-3@http.bugs.dpdk.org/> (raw)

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

            Bug ID: 841
           Summary: [dpdk-21.11] DPDK build failed with EXTRA_CFLAGS='-O1'
                    on Ubuntu20.4.3 and Redhat8.4.
           Product: DPDK
           Version: 21.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: meson
          Assignee: dev@dpdk.org
          Reporter: longfengx.liang@intel.com
  Target Milestone: ---

1.DPDK version:
commit 783a1952f816131a3be8545daf53bd7546ac15c8 (HEAD -> main, origin/main,
origin/for-next-net, origin/HEAD)
Author: Dapeng Yu <dapengx.yu@intel.com>
Date:   Tue Oct 26 09:55:42 2021 +0800

    net/ice: fix function pointer in multi-process

    This patch uses the index value to call the function, instead of the
    function pointer assignment to save the selection of Receive Flex
    Descriptor profile ID.

    Otherwise the secondary process will run with wrong function address
    from primary process.

    Fixes: 7a340b0b4e03 ("net/ice: refactor Rx FlexiMD handling")
    Cc: stable@dpdk.org

    Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
    Acked-by: Haiyue Wang <haiyue.wang@intel.com>

2.issue bad commit:
commit d85f9749f915302d1c26564578809ec27ebaf2ed (HEAD)
Author: Tejasree Kondoj <ktejasree@marvell.com>
Date:   Wed Sep 1 15:49:23 2021 +0530

    common/cnxk: add hash generation API

    Adding functions for hash generation that can be used
    in hmac opad/ipad calculation.

    Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
    Acked-by: Akhil Goyal <gakhil@marvell.com>


3.OS version:
  1)Ubuntu 20.4.3/kernel 5.8.0-48-generic
  gcc version: gcc (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0


  2)Red Hat Enterprise Linux 8.4/kernel 4.18.0-305.19.1.el8_4.x86_64
  gcc version: gcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1)


4.Test Setup:

build cmd:
CC=gcc meson --optimization=1 --werror -Denable_kmods=True -Dlibdir=lib
--default-library=static x86_64-native-linuxapp-gcc
ninja -C x86_64-native-linuxapp-gcc/

5.Ubuntu 20.04.3 build failed log,same to Redhat8.4:
root@dpdk-xuemin4x-ub2004-gcc:~/dpdk# ninja -C x86_64-native-linuxapp-gcc/
ninja: Entering directory `x86_64-native-linuxapp-gcc/'
[614/2865] Compiling C object
drivers/libtmp_rte_common_cnxk.a.p/common_cnxk_roc_hash.c.o
FAILED: drivers/libtmp_rte_common_cnxk.a.p/common_cnxk_roc_hash.c.o
gcc -Idrivers/libtmp_rte_common_cnxk.a.p -Idrivers -I../drivers
-Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/bus/pci
-I../drivers/bus/pci -Ilib/net -I../lib/net -I. -I.. -Iconfig -I../config
-Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include
-I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include
-Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs
-I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry
-I../lib/telemetry -Ilib/pci -I../lib/pci -I../drivers/bus/pci/linux -Ilib/mbuf
-I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring
-Ilib/security -I../lib/security -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu
-I../lib/rcu -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall
-Winvalid-pch -Werror -O1 -include rte_config.h -Wextra -Wcast-qual
-Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs
-Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes
-Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned
-Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC
-march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API
-Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=pmd.common.cnxk -MD -MQ
drivers/libtmp_rte_common_cnxk.a.p/common_cnxk_roc_hash.c.o -MF
drivers/libtmp_rte_common_cnxk.a.p/common_cnxk_roc_hash.c.o.d -o
drivers/libtmp_rte_common_cnxk.a.p/common_cnxk_roc_hash.c.o -c
../drivers/common/cnxk/roc_hash.c
../drivers/common/cnxk/roc_hash.c: In function ‘roc_hash_sha1_gen’:
../drivers/common/cnxk/roc_hash.c:55:8: error: ‘temp’ may be used uninitialized
in this function [-Werror=maybe-uninitialized]
   55 |   temp = lrot32(5, A) + temp + E + W[i];
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[631/2865] Generating eal.sym_chk with a meson_exe.py custom command
ninja: build stopped: subcommand failed.

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

             reply	other threads:[~2021-10-27 10:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-27 10:53 bugzilla [this message]
2021-11-10  6:30 ` bugzilla

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-841-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).