Skip to contentSkip to conversation

DPDK build failed with EXTRA_CFLAGS='-O1' on Ubuntu20.4.3 and Redhat8.4.

dpdk-dev [email protected] 1 participant 2 messages Oct 27, 2021 – Nov 10, 2021

lore
Share & tools
lore

[email protected]

author Acked-by Haiyue Wang Acked-by Akhil Goyal
#0 lore 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: [email protected]
          Reporter: [email protected]

Target Milestone: ---

1.DPDK version:
commit 783a1952f816131a3be8545daf53bd7546ac15c8 (HEAD -> main, origin/main, origin/for-next-net, origin/HEAD)

Author: Dapeng Yu <[email protected]>
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")

2.issue bad commit:
commit d85f9749f915302d1c26564578809ec27ebaf2ed (HEAD)

Author: Tejasree Kondoj <[email protected]>
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.

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.
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

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

[email protected] ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|IN_PROGRESS                 |RESOLVED

--- Comment #3 from [email protected] ([email protected]) --- The fixed patch merged to dpdk21.11-rc2, and test passed on OS Ubuntu20.4.3 and Redhat8.4,So closed this bug.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.