[dpdk-dev] [Bug 690] tap build failures on Fedora 35 with gcc 11

bugzilla at dpdk.org bugzilla at dpdk.org
Mon Apr 26 17:37:27 CEST 2021


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

            Bug ID: 690
           Summary: tap build failures on Fedora 35 with gcc 11
           Product: DPDK
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ethdev
          Assignee: dev at dpdk.org
          Reporter: alialnu at nvidia.com
  Target Milestone: ---

"""
$ meson --werror --buildtype=debugoptimized -Ddisable_drivers=net/ice build &&
ninja -C build
...
...
[1803/2603] Compiling C object
drivers/libtmp_rte_net_tap.a.p/net_tap_tap_flow.c.o
FAILED: drivers/libtmp_rte_net_tap.a.p/net_tap_tap_flow.c.o
ccache cc -Idrivers/libtmp_rte_net_tap.a.p -Idrivers -I../drivers
-Idrivers/net/tap -I../drivers/net/tap -Idrivers/bus/vdev -I../drivers/bus/vdev
-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/gso -I../lib/gso -Ilib/ethdev
-I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool
-I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Ilib/hash
-I../lib/hash -Ilib/rcu -I../lib/rcu -fdiagnostics-color=always -pipe
-D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O2 -g -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 -DTAP_MAX_QUEUES=16 -MD -MQ
drivers/libtmp_rte_net_tap.a.p/net_tap_tap_flow.c.o -MF
drivers/libtmp_rte_net_tap.a.p/net_tap_tap_flow.c.o.d -o
drivers/libtmp_rte_net_tap.a.p/net_tap_tap_flow.c.o -c
../drivers/net/tap/tap_flow.c
In file included from ../drivers/net/tap/tap_flow.c:13:
In function 'rte_jhash_2hashes',
    inlined from 'rte_jhash' at ../lib/hash/rte_jhash.h:284:2,
    inlined from 'tap_flow_set_handle' at
../drivers/net/tap/tap_flow.c:1306:12,
    inlined from 'rss_enable' at ../drivers/net/tap/tap_flow.c:1909:3,
    inlined from 'priv_flow_process' at ../drivers/net/tap/tap_flow.c:1228:11:
../lib/hash/rte_jhash.h:238:9: error: 'flow' may be used uninitialized
[-Werror=maybe-uninitialized]
  238 |         __rte_jhash_2hashes(key, length, pc, pb, 1);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/tap/tap_flow.c: In function 'priv_flow_process':
../lib/hash/rte_jhash.h:81:1: note: by argument 1 of type 'const void *' to
'__rte_jhash_2hashes.constprop' declared here
   81 | __rte_jhash_2hashes(const void *key, uint32_t length, uint32_t *pc,
      | ^~~~~~~~~~~~~~~~~~~
../drivers/net/tap/tap_flow.c:1028:1: note: 'flow' declared here
 1028 | priv_flow_process(struct pmd_internals *pmd,
      | ^~~~~~~~~~~~~~~~~
In file included from ../drivers/net/tap/tap_flow.c:13:
In function 'rte_jhash_2hashes',
    inlined from 'rte_jhash' at ../lib/hash/rte_jhash.h:284:2,
    inlined from 'tap_flow_set_handle' at
../drivers/net/tap/tap_flow.c:1306:12,
    inlined from 'tap_flow_create' at ../drivers/net/tap/tap_flow.c:1393:2:
../lib/hash/rte_jhash.h:238:9: error: 'flow' may be used uninitialized
[-Werror=maybe-uninitialized]
  238 |         __rte_jhash_2hashes(key, length, pc, pb, 1);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/tap/tap_flow.c: In function 'tap_flow_create':
../lib/hash/rte_jhash.h:81:1: note: by argument 1 of type 'const void *' to
'__rte_jhash_2hashes.constprop' declared here
   81 | __rte_jhash_2hashes(const void *key, uint32_t length, uint32_t *pc,
      | ^~~~~~~~~~~~~~~~~~~
../drivers/net/tap/tap_flow.c:1354:1: note: 'flow' declared here
 1354 | tap_flow_create(struct rte_eth_dev *dev,
      | ^~~~~~~~~~~~~~~
In file included from ../drivers/net/tap/tap_flow.c:13:
In function 'rte_jhash_2hashes',
    inlined from 'rte_jhash' at ../lib/hash/rte_jhash.h:284:2,
    inlined from 'tap_flow_set_handle' at
../drivers/net/tap/tap_flow.c:1306:12,
    inlined from 'tap_flow_create' at ../drivers/net/tap/tap_flow.c:1432:3:
../lib/hash/rte_jhash.h:238:9: error: 'flow' may be used uninitialized
[-Werror=maybe-uninitialized]
  238 |         __rte_jhash_2hashes(key, length, pc, pb, 1);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/tap/tap_flow.c: In function 'tap_flow_create':
../lib/hash/rte_jhash.h:81:1: note: by argument 1 of type 'const void *' to
'__rte_jhash_2hashes.constprop' declared here
   81 | __rte_jhash_2hashes(const void *key, uint32_t length, uint32_t *pc,
      | ^~~~~~~~~~~~~~~~~~~
../drivers/net/tap/tap_flow.c:1354:1: note: 'flow' declared here
 1354 | tap_flow_create(struct rte_eth_dev *dev,
      | ^~~~~~~~~~~~~~~
In file included from ../drivers/net/tap/tap_flow.c:13:
In function 'rte_jhash_2hashes',
    inlined from 'rte_jhash' at ../lib/hash/rte_jhash.h:284:2,
    inlined from 'tap_flow_set_handle' at
../drivers/net/tap/tap_flow.c:1306:12,
    inlined from 'tap_flow_implicit_create' at
../drivers/net/tap/tap_flow.c:1736:3:
../lib/hash/rte_jhash.h:238:9: error: 'flow' may be used uninitialized
[-Werror=maybe-uninitialized]
  238 |         __rte_jhash_2hashes(key, length, pc, pb, 1);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/tap/tap_flow.c: In function 'tap_flow_implicit_create':
../lib/hash/rte_jhash.h:81:1: note: by argument 1 of type 'const void *' to
'__rte_jhash_2hashes.constprop' declared here
   81 | __rte_jhash_2hashes(const void *key, uint32_t length, uint32_t *pc,
      | ^~~~~~~~~~~~~~~~~~~
../drivers/net/tap/tap_flow.c:1668:5: note: 'flow' declared here
 1668 | int tap_flow_implicit_create(struct pmd_internals *pmd,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1836/2603] Generating rte_common_sfc_efx.sym_chk with a custom command
(wrapped by meson to capture output)
ninja: build stopped: subcommand failed.
"""

Reproduces on v21.05-rc1. Note:
The following patch applied to resolve a build failure in acl:
https://patches.dpdk.org/project/dpdk/patch/20210426133519.4777-1-konstantin.ananyev@intel.com/
ice/net is disabled in my command due to #678.

OS: Fedora release 35 (Rawhide)
gcc: 11.0.1
meson: 0.57.1
ninja-build: 1.10.2

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


More information about the dev mailing list