[Bug 896] [20.11.4-rc1] net/af_xdp build failure with gcc 11 on Fedora 35

bugzilla at dpdk.org bugzilla at dpdk.org
Wed Dec 8 10:13:20 CET 2021


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

            Bug ID: 896
           Summary: [20.11.4-rc1] net/af_xdp build failure with gcc 11 on
                    Fedora 35
           Product: DPDK
           Version: 20.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ethdev
          Assignee: dev at dpdk.org
          Reporter: alialnu at nvidia.com
  Target Milestone: ---

I can reproduce the following build error on 20.11.4-rc1:

"""
$ meson --werror --buildtype=debugoptimized build && ninja-build -C build
[..]
drivers/net/af_xdp/rte_eth_af_xdp.c: In function 'load_custom_xdp_prog':
drivers/net/af_xdp/rte_eth_af_xdp.c:1065:15: error: implicit declaration of
function 'bpf_prog_load'; did you mean 'bpf_program__load'?
[-Werror=implicit-function-declaration]
 1065 |         ret = bpf_prog_load(prog_path, BPF_PROG_TYPE_XDP, &obj,
&prog_fd);
      |               ^~~~~~~~~~~~~
      |               bpf_program__load
drivers/net/af_xdp/rte_eth_af_xdp.c:1065:15: error: nested extern declaration
of 'bpf_prog_load' [-Werror=nested-externs]
cc1: all warnings being treated as errors
"""

OS: Fedora Linux 35 (Container Image)
gcc: 11.2.1 20210728 (Red Hat 11.2.1-1)

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


More information about the dev mailing list