DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [Bug 841] [dpdk-21.11] DPDK build failed with EXTRA_CFLAGS='-O1' on Ubuntu20.4.3 and Redhat8.4.
@ 2021-10-27 10:53 bugzilla
  2021-11-10  6:30 ` bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2021-10-27 10:53 UTC (permalink / raw)
  To: dev

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [dpdk-dev] [Bug 841] [dpdk-21.11] DPDK build failed with EXTRA_CFLAGS='-O1' on Ubuntu20.4.3 and Redhat8.4.
  2021-10-27 10:53 [dpdk-dev] [Bug 841] [dpdk-21.11] DPDK build failed with EXTRA_CFLAGS='-O1' on Ubuntu20.4.3 and Redhat8.4 bugzilla
@ 2021-11-10  6:30 ` bugzilla
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla @ 2021-11-10  6:30 UTC (permalink / raw)
  To: dev

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

longfengx.liang@intel.com (longfengx.liang@intel.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|IN_PROGRESS                 |RESOLVED

--- Comment #3 from longfengx.liang@intel.com (longfengx.liang@intel.com) ---
The fixed patch merged to dpdk21.11-rc2, and test passed on OS Ubuntu20.4.3 and
Redhat8.4,So closed this bug.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-10  6:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-27 10:53 [dpdk-dev] [Bug 841] [dpdk-21.11] DPDK build failed with EXTRA_CFLAGS='-O1' on Ubuntu20.4.3 and Redhat8.4 bugzilla
2021-11-10  6:30 ` bugzilla

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