> > Hi, > > I can't compile dpdk-stable-20.11.1 on openSUSE Leap 15.3. > > kernel: 5.3.18-59.5-default > > Configuration options: > Message: > ================= > Libraries Enabled > ================= > > libs: > kvargs, telemetry, eal, ring, rcu, mempool, mbuf, net, > meter, ethdev, pci, cmdline, metrics, hash, timer, acl, > bbdev, bitratestats, cfgfile, compressdev, cryptodev, distributor, > efd, eventdev, > gro, gso, ip_frag, jobstats, kni, latencystats, lpm, member, > power, pdump, rawdev, regexdev, rib, reorder, sched, security, > stack, vhost, ipsec, fib, port, table, pipeline, flow_classify, > bpf, graph, node, > > Message: > =============== > Drivers Enabled > =============== > > common: > cpt, dpaax, iavf, octeontx, octeontx2, sfc_efx, mlx5, qat, > > bus: > dpaa, fslmc, ifpga, pci, vdev, vmbus, > mempool: > bucket, dpaa, dpaa2, octeontx, octeontx2, ring, stack, > net: > af_packet, af_xdp, ark, atlantic, avp, axgbe, bond, bnx2x, > bnxt, cxgbe, dpaa, dpaa2, e1000, ena, enetc, enic, > failsafe, fm10k, i40e, hinic, hns3, iavf, ice, igc, > ixgbe, kni, liquidio, memif, mlx4, mlx5, netvsc, nfp, > null, octeontx, octeontx2, pcap, pfe, qede, ring, sfc, > softnic, tap, thunderx, txgbe, vdev_netvsc, vhost, virtio, vmxnet3, > > raw: > dpaa2_cmdif, dpaa2_qdma, ioat, ntb, octeontx2_dma, octeontx2_ep, > skeleton, > crypto: > bcmfs, caam_jr, ccp, dpaa_sec, dpaa2_sec, nitrox, null, octeontx, > octeontx2, openssl, scheduler, virtio, > compress: > octeontx, zlib, > regex: > mlx5, octeontx2, > vdpa: > ifc, mlx5, > event: > dlb, dlb2, dpaa, dpaa2, octeontx2, opdl, skeleton, sw, > dsw, octeontx, > baseband: > null, turbo_sw, fpga_lte_fec, fpga_5gnr_fec, acc100, > > Message: > ================= > Content Skipped > ================= > > libs: > > drivers: > common/mvep: missing dependency, "libmusdk" > net/ipn3ke: missing dependency, "libfdt" > net/mvneta: missing dependency, "libmusdk" > net/mvpp2: missing dependency, "libmusdk" > net/nfb: missing dependency, "libnfb" > net/szedata2: missing dependency, "libsze2" > raw/ifpga: missing dependency, "libfdt" > crypto/aesni_gcm: missing dependency, "libIPSec_MB" > crypto/aesni_mb: missing dependency, "libIPSec_MB" > crypto/armv8: missing dependency, "libAArch64crypto" > crypto/kasumi: missing dependency, "libIPSec_MB" > crypto/mvsam: missing dependency, "libmusdk" > crypto/snow3g: missing dependency, "libIPSec_MB" > crypto/zuc: missing dependency, "libIPSec_MB" > compress/isal: missing dependency, "libisal" > > > Build targets in project: 1116 > > Found ninja-1.10.0 at /usr/bin/ninja > > The ninja build fails: > ninja: Entering directory `build' > [896/2816] Compiling C object > 'drivers/a715181@@tmp_rte_net_af_xdp@sta > /net_af_xdp_rte_eth_af_xdp.c.o' > FAILED: > drivers/a715181@@tmp_rte_net_af_xdp@sta/net_af_xdp_rte_eth_af_xdp > .c.o > > cc -Idrivers/a715181@@tmp_rte_net_af_xdp@sta -Idrivers -I../drivers > -Idrivers/net/af_xdp -I../drivers/net/af_xdp -Ilib/librte_ethdev > -I../lib/librte_ethdev -I. -I.. -Iconfig -I../config > -Ilib/librte_eal/include -I../lib/librte_eal/include > -Ilib/librte_eal/linux/include -I../lib/librte_eal/linux/include > -Ilib/librte_eal/x86/include -I../lib/librte_eal/x86/include > -Ilib/librte_eal/common -I../lib/librte_eal/common -Ilib/librte_eal > -I../lib/librte_eal -Ilib/librte_kvargs -I../lib/librte_kvargs > -Ilib/librte_metrics -I../lib/librte_metrics -Ilib/librte_telemetry > -I../lib/librte_telemetry -Ilib/librte_net -I../lib/librte_net > -Ilib/librte_mbuf -I../lib/librte_mbuf -Ilib/librte_mempool > -I../lib/librte_mempool -Ilib/librte_ring -I../lib/librte_ring > -Ilib/librte_meter -I../lib/librte_meter -Idrivers/bus/pci > -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/librte_pci > -I../lib/librte_pci -Idrivers/bus/vdev -I../drivers/bus/vdev > -I/usr/local/include -fdiagnostics-color=always -pipe > -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -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-missing-field-initializers > -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API > -DALLOW_INTERNAL_API -Wno-format-truncation -MD -MQ > 'drivers/a715181@ > @tmp_rte_net_af_xdp@sta/net_af_xdp_rte_eth_af_xdp.c.o' -MF > 'drivers/a715181@ > @tmp_rte_net_af_xdp@sta/net_af_xdp_rte_eth_af_xdp.c.o.d' -o > 'drivers/a715181@@tmp_rte_net_af_xdp@sta/net_af_xdp_rte_eth_af_xd > p.c.o' -c > ../drivers/net/af_xdp/rte_eth_af_xdp.c > In file included from ../drivers/net/af_xdp/rte_eth_af_xdp.c:19:0: > /usr/local/include/bpf/xsk.h: In function ‘xsk_ring_prod__needs_wakeup’: > /usr/local/include/bpf/xsk.h:148:21: error: ‘XDP_RING_NEED_WAKEUP’ > undeclared (first use in this function) > return *r->flags & XDP_RING_NEED_WAKEUP; > ^~~~~~~~~~~~~~~~~~~~ > /usr/local/include/bpf/xsk.h:148:21: note: each undeclared identifier is > reported only once for each function it appears in > /usr/local/include/bpf/xsk.h: In function ‘xsk_umem__extract_addr’: > /usr/local/include/bpf/xsk.h:235:16: error: > ‘XSK_UNALIGNED_BUF_ADDR_MASK’ > undeclared (first use in this function) > return addr & XSK_UNALIGNED_BUF_ADDR_MASK; > ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/local/include/bpf/xsk.h: In function ‘xsk_umem__extract_offset’: > /usr/local/include/bpf/xsk.h:240:17: error: > ‘XSK_UNALIGNED_BUF_OFFSET_SHIFT’ undeclared (first use in this function) > return addr >> XSK_UNALIGNED_BUF_OFFSET_SHIFT; > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > [901/2816] Compiling C object 'lib/76b5a35@@rte_pipeline@sta > /librte_pipeline_rte_table_action.c.o' > ninja: build stopped: subcommand failed. > > Please help.
Hi, What version of libbpf are you using? You can check using: $ pkg-config libbpf --modversion Can you try with a newer version? Thanks, Ciara