pktgen / Pktgen-DPDK

DPDK based packet generator
Other
389 stars 119 forks source link

make: *** [build] Error #166

Closed digger-yu closed 1 year ago

digger-yu commented 1 year ago
root@server:~/Pktgen-DPDK# make
>>> Use 'make help' for more commands

./tools/pktgen-build.sh build
>>  SDK Path          : /root
>>  Install Path      : /root/Pktgen-DPDK
>>  Build Directory   : /root/Pktgen-DPDK/Builddir
>>  Target Directory  : usr/local
>>  Build Path        : /root/Pktgen-DPDK/Builddir
>>  Target Path       : /root/Pktgen-DPDK/usr/local

 Build and install values:
   lua_enabled       : -Denable_lua=false
   gui_enabled       : -Denable_gui=false

>>> Ninja build in '/root/Pktgen-DPDK/Builddir' buildtype=release
meson -Dbuildtype=release -Denable_lua=false -Denable_gui=false /root/Pktgen-DPDK/Builddir
The Meson build system
Version: 1.0.0
Source dir: /root/Pktgen-DPDK
Build dir: /root/Pktgen-DPDK/Builddir
Build type: native build
Program cat found: YES (/bin/cat)
Project name: pktgen
Project version: 23.03.0
C compiler for the host machine: cc (gcc 7.5.0 "cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
C linker for the host machine: cc ld.bfd 2.30
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -mavx: YES
Compiler for C supports arguments -mavx2: YES
Compiler for C supports arguments -Wno-pedantic: YES
Compiler for C supports arguments -Wno-format-truncation: YES
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Run-time dependency libdpdk found: YES 22.11.1
Library librte_net_bond found: NO
Program python3 found: YES (/usr/bin/python3)
Library rte_net_i40e found: NO
Library rte_net_ixgbe found: NO
Library rte_net_ice found: NO
Library rte_bus_vdev found: NO
Run-time dependency threads found: YES
Library numa found: YES
Library pcap found: YES
Library dl found: YES
Library m found: YES
Program doxygen found: NO
Program sphinx-build found: NO
Build targets in project: 9

pktgen 23.03.0

  User defined options
    buildtype : release
    enable_gui: false
    enable_lua: false

Found ninja-1.11.1.git.kitware.jobserver-1 at /usr/local/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
ninja: Entering directory `/root/Pktgen-DPDK/Builddir'
[69/69] Linking target app/pktgen
FAILED: app/pktgen
cc  -o app/pktgen app/pktgen.p/cli-functions.c.o app/pktgen.p/pktgen-cmds.c.o app/pktgen.p/pktgen.c.o app/pktgen.p/pktgen-cfg.c.o app/pktgen.p/pktgen-main.c.o app/pktgen.p/pktgen-pcap.c.o app/pktgen.p/pktgen-range.c.o app/pktgen.p/pktgen-cpu.c.o app/pktgen.p/pktgen-seq.c.o app/pktgen.p/pktgen-dump.c.o app/pktgen.p/pktgen-capture.c.o app/pktgen.p/pktgen-stats.c.o app/pktgen.p/pktgen-port-cfg.c.o app/pktgen.p/pktgen-ipv6.c.o app/pktgen.p/pktgen-ipv4.c.o app/pktgen.p/pktgen-arp.c.o app/pktgen.p/pktgen-gre.c.o app/pktgen.p/pktgen-ether.c.o app/pktgen.p/pktgen-tcp.c.o app/pktgen.p/pktgen-udp.c.o app/pktgen.p/pktgen-vlan.c.o app/pktgen.p/pktgen-random.c.o app/pktgen.p/pktgen-display.c.o app/pktgen.p/pktgen-log.c.o app/pktgen.p/pktgen-gtpu.c.o app/pktgen.p/pktgen-latency.c.o app/pktgen.p/pktgen-rate.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu -Wl,-rpath-link,/root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu -Wl,--start-group lib/common/libcommon.a lib/utils/libutils.a lib/vec/libvec.a lib/plugin/libplugin.a lib/cli/libcli.a lib/lua/liblua.a -Wl,--as-needed /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_node.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_graph.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_flow_classify.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_pipeline.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_table.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_pdump.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_port.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_fib.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_ipsec.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_vhost.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_stack.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_security.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_sched.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_reorder.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_rib.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_dmadev.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_regexdev.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_rawdev.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_power.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_pcapng.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_member.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_lpm.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_latencystats.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_kni.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_jobstats.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_ip_frag.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_gso.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_gro.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_gpudev.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_eventdev.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_efd.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_distributor.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_cryptodev.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_compressdev.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_cfgfile.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_bpf.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_bitratestats.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_bbdev.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_acl.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_timer.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_hash.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_metrics.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_cmdline.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_pci.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_ethdev.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_meter.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_net.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_mbuf.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_mempool.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_rcu.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_ring.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_eal.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_telemetry.so /root/dpdk-stable-22.11.1/mydpdk/lib/x86_64-linux-gnu/librte_kvargs.so -pthread -lnuma -lpcap -ldl -lm -Wl,--end-group -Wl,--as-needed -Wl,--as-needed -Wl,--as-needed -Wl,--as-needed -Wl,--as-needed
app/pktgen.p/cli-functions.c.o:在函数‘bonding_cmd’中:
cli-functions.c:(.text+0x12ea):对‘rte_eth_bond_8023ad_conf_get’未定义的引用
cli-functions.c:(.text+0x143e):对‘rte_eth_bond_8023ad_conf_get’未定义的引用
app/pktgen.p/pktgen-cmds.c.o:在函数‘enable_bonding’中:
pktgen-cmds.c:(.text+0x87e0):对‘rte_eth_bond_8023ad_conf_get’未定义的引用
pktgen-cmds.c:(.text+0x87fe):对‘rte_eth_bond_slaves_get’未定义的引用
pktgen-cmds.c:(.text+0x881c):对‘rte_eth_bond_active_slaves_get’未定义的引用
pktgen-cmds.c:(.text+0x888f):对‘rte_eth_bond_8023ad_ext_distrib’未定义的引用
pktgen-cmds.c:(.text+0x88b7):对‘rte_eth_bond_8023ad_ext_collect’未定义的引用
pktgen-cmds.c:(.text+0x8922):对‘rte_eth_bond_8023ad_ext_distrib’未定义的引用
app/pktgen.p/pktgen-cmds.c.o:在函数‘show_bonding_mode’中:
pktgen-cmds.c:(.text+0x89cd):对‘rte_eth_bond_mode_get’未定义的引用
pktgen-cmds.c:(.text+0x8a12):对‘rte_eth_bond_slaves_get’未定义的引用
pktgen-cmds.c:(.text+0x8aa5):对‘rte_eth_bond_active_slaves_get’未定义的引用
pktgen-cmds.c:(.text+0x8c49):对‘rte_eth_bond_8023ad_slave_info’未定义的引用
pktgen-cmds.c:(.text+0x8eeb):对‘rte_eth_bond_primary_get’未定义的引用
pktgen-cmds.c:(.text+0x8f73):对‘rte_eth_bond_8023ad_agg_selection_get’未定义的引用
pktgen-cmds.c:(.text+0x900b):对‘rte_eth_bond_xmit_policy_get’未定义的引用
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Makefile:15: recipe for target 'build' failed
make: *** [build] Error 1

did 1 anything miss ?

KeithWiles commented 1 year ago

Please use the latest DPDK version 23.03.0-rc1 using 'main' branch.


./tools/pktgen-build.sh clean build
>>  SDK Path          : /work/projects/intel
>>  Install Path      : /work/projects/intel/pktgen-dpdk
>>  Build Directory   : /work/projects/intel/pktgen-dpdk/Builddir
>>  Target Directory  : usr/local
>>  Build Path        : /work/projects/intel/pktgen-dpdk/Builddir
>>  Target Path       : /work/projects/intel/pktgen-dpdk/usr/local

 Build and install values:
   lua_enabled       : -Denable_lua=false
   gui_enabled       : -Denable_gui=false

*** Removing '/work/projects/intel/pktgen-dpdk/Builddir' directory
 Build and install values:
   lua_enabled       : -Denable_lua=false
   gui_enabled       : -Denable_gui=false

>>> Ninja build in '/work/projects/intel/pktgen-dpdk/Builddir' buildtype=release
meson -Dbuildtype=release -Denable_lua=false -Denable_gui=false /work/projects/intel/pktgen-dpdk/Builddir
The Meson build system
Version: 0.63.2
Source dir: /work/projects/intel/pktgen-dpdk
Build dir: /work/projects/intel/pktgen-dpdk/Builddir
Build type: native build
Program cat found: YES (/bin/cat)
Project name: pktgen
Project version: 22.07.2
C compiler for the host machine: ccache cc (gcc 12.2.0 "cc (Ubuntu 12.2.0-3ubuntu1) 12.2.0")
C linker for the host machine: cc ld.bfd 2.39
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -mavx: YES 
Compiler for C supports arguments -mavx2: YES 
Compiler for C supports arguments -Wno-pedantic: YES 
Compiler for C supports arguments -Wno-format-truncation: YES 
Found pkg-config: /bin/pkg-config (0.29.2)
Run-time dependency libdpdk found: YES 23.03.0-rc1
Library librte_net_bond found: YES
Program python3 found: YES (/usr/bin/python3)
Library rte_net_i40e found: YES
Library rte_net_ixgbe found: YES
Library rte_net_ice found: YES
Library rte_bus_vdev found: YES
Run-time dependency threads found: YES
Library numa found: YES
Library pcap found: YES
Library dl found: YES
Library m found: YES
Program doxygen found: YES (/bin/doxygen)
Program generate_doxygen.sh found: YES (/work/projects/intel/pktgen-dpdk/doc/api/generate_doxygen.sh)
Program generate_examples.sh found: YES (/work/projects/intel/pktgen-dpdk/doc/api/generate_examples.sh)
Program doxy-html-custom.sh found: YES (/work/projects/intel/pktgen-dpdk/doc/api/doxy-html-custom.sh)
Configuring doxy-api.conf using configuration
Program sphinx-build found: YES (/bin/sphinx-build)
Build targets in project: 12
NOTICE: Future-deprecated features used:
 * 0.56.0: {'meson.build_root', 'meson.source_root'}

pktgen 22.07.2

  User defined options
    buildtype : release
    enable_gui: false
    enable_lua: false

Found ninja-1.11.0 at /bin/ninja
ninja: Entering directory `/work/projects/intel/pktgen-dpdk/Builddir'
[69/69] Linking target app/pktgen
>>> Ninja install to '/work/projects/intel/pktgen-dpdk/usr/local'
ninja: Entering directory `/work/projects/intel/pktgen-dpdk/Builddir'
[0/1] Installing files.
Installing app/pktgen to /work/projects/intel/pktgen-dpdk/usr/local/bin
Installing /work/projects/intel/pktgen-dpdk/doc/source/custom.css to /work/projects/intel/pktgen-dpdk/usr/local/share/doc/dpdk/_static/css