Hi Mohammed,

I tried to compile vpp from the latest master branch on Cento8.2 machine , but 
the compilation is failing now when I am trying to build the external 
dependencies using the following command:
make install-ext-deps

Following are the error logs:
[1056/1917] Linking target lib/librte_cmdline.so.21.0
[1057/1917] Linking target drivers/librte_common_mlx5.so.21.0
FAILED: drivers/librte_common_mlx5.so.21.0
cc  -o drivers/librte_common_mlx5.so.21.0 
'drivers/a715181@@rte_common_mlx5@sha/meson-generated_.._rte_common_mlx5.pmd.c.o'
 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_devx_cmds.c.o' 
'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_common.c.o' 
'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_common_mp.c.o' 
'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_common_mr.c.o' 
'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_malloc.c.o' 
'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_common_pci.c.o' 
'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_nl.c.o' 
'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_common_os.c.o' 
'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_common_verbs.c.o'
 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o' 
-Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group 
-Wl,-soname,librte_common_mlx5.so.21 -Wl,--no-as-needed -pthread -lm -ldl 
-lnuma lib/librte_hash.so.21.0 lib/librte_eal.so.21.0 lib/librte_kvargs.so.21.0 
lib/librte_telemetry.so.21.0 lib/librte_ring.so.21.0 lib/librte_rcu.so.21.0 
lib/librte_pci.so.21.0 drivers/librte_bus_pci.so.21.0 lib/librte_net.so.21.0 
lib/librte_mbuf.so.21.0 lib/librte_mempool.so.21.0 
-Wl,--version-script=/opt/vpp/build/external/rpm/tmp/src-dpdk/drivers/common/mlx5/version.map
 -lpthread 
-L/opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-0.x86_64/opt/vpp/external/x86_64/lib64
 -l:libbnxt_re-rdmav25.a -l:libcxgb4-rdmav25.a -l:libefa.a -l:libhns-rdmav25.a 
-l:libi40iw-rdmav25.a -l:libmlx4.a -l:libmlx5.a -l:libmthca-rdmav25.a 
-l:libocrdma-rdmav25.a -l:libqedr-rdmav25.a -l:libvmw_pvrdma-rdmav25.a 
-l:libhfi1verbs-rdmav25.a -l:libipathverbs-rdmav25.a -l:librxe-rdmav25.a 
-l:libsiw-rdmav25.a -l:libibverbs.a -l:librdma_util.a -l:libccan.a 
-Wl,--end-group '-Wl,-rpath,$ORIGIN/../lib:$ORIGIN/' 
-Wl,-rpath-link,/opt/vpp/build/external/rpm/tmp/build-dpdk/lib 
-Wl,-rpath-link,/opt/vpp/build/external/rpm/tmp/build-dpdk/drivers
/usr/bin/ld: cannot find -l:libbnxt_re-rdmav25.a
/usr/bin/ld: cannot find -l:libcxgb4-rdmav25.a
/usr/bin/ld: cannot find -l:libefa.a
/usr/bin/ld: cannot find -l:libhns-rdmav25.a
/usr/bin/ld: cannot find -l:libi40iw-rdmav25.a
/usr/bin/ld: cannot find -l:libmthca-rdmav25.a
/usr/bin/ld: cannot find -l:libocrdma-rdmav25.a
/usr/bin/ld: cannot find -l:libqedr-rdmav25.a
/usr/bin/ld: cannot find -l:libvmw_pvrdma-rdmav25.a
/usr/bin/ld: cannot find -l:libhfi1verbs-rdmav25.a
/usr/bin/ld: cannot find -l:libipathverbs-rdmav25.a
/usr/bin/ld: cannot find -l:libsiw-rdmav25.a
/usr/bin/ld: cannot find -l:librdma_util.a
/usr/bin/ld: cannot find -l:libccan.a
collect2: error: ld returned 1 exit status
[1058/1917] Generating symbol file 
'lib/76b5a35@@rte_reorder@sha/librte_reorder.so.21.0.symbols'
[1059/1917] Linking target lib/librte_security.so.21.0
[1060/1917] Linking target drivers/librte_common_cpt.so.21.0
[1061/1917] Linking target drivers/librte_common_qat.so.21.0
[1062/1917] Generating symbol file 
'lib/76b5a35@@rte_regexdev@sha/librte_regexdev.so.21.0.symbols'
[1063/1917] Generating symbol file 
'lib/76b5a35@@rte_sched@sha/librte_sched.so.21.0.symbols'
[1064/1917] Compiling C object 
'drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_i40e_tm.c.o'
[1065/1917] Generating symbol file 
'drivers/a715181@@rte_mempool_octeontx@sha/librte_mempool_octeontx.so.21.0.symbols'
[1066/1917] Compiling C object 
'drivers/net/i40e/base/3c1f984@@i40e_base@sta/i40e_adminq.c.o'
[1067/1917] Generating symbol file 
'lib/76b5a35@@rte_ethdev@sha/librte_ethdev.so.21.0.symbols'
[1068/1917] Compiling C object 
'drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_i40e_pf.c.o'
[1069/1917] Compiling C object 
'drivers/net/i40e/1b39a87@@i40e_avx2_lib@sta/i40e_rxtx_vec_avx2.c.o'
[1070/1917] Compiling C object 
'drivers/a715181@@tmp_rte_net_fm10k@sta/net_fm10k_fm10k_rxtx.c.o'
[1071/1917] Compiling C object 
'drivers/a715181@@tmp_rte_net_fm10k@sta/net_fm10k_fm10k_ethdev.c.o'
[1072/1917] Compiling C object 
'drivers/a715181@@tmp_rte_net_fm10k@sta/net_fm10k_fm10k_rxtx_vec.c.o'
[1073/1917] Compiling C object 
'drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_i40e_ethdev_vf.c.o'
[1074/1917] Compiling C object 
'drivers/net/i40e/base/3c1f984@@i40e_base@sta/i40e_nvm.c.o'
[1075/1917] Generating rte_common_sfc_efx.sym_chk with a meson_exe.py custom 
command
[1076/1917] Compiling C object 
'drivers/net/i40e/base/3c1f984@@i40e_base@sta/i40e_common.c.o'
[1077/1917] Compiling C object 
'drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_i40e_fdir.c.o'
[1078/1917] Compiling C object 
'drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_i40e_rxtx_vec_sse.c.o'
[1079/1917] Compiling C object 
'drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_i40e_flow.c.o'
[1080/1917] Compiling C object 
'drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_rte_pmd_i40e.c.o'
[1081/1917] Compiling C object 
'drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_i40e_rxtx.c.o'
[1082/1917] Compiling C object 
'drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_i40e_ethdev.c.o'
ninja: build stopped: subcommand failed.
Found runner: ninja
--- installing dpdk 20.11 - log: 
/opt/vpp/build/external/rpm/tmp/dpdk.install.log
cd /opt/vpp/build/external/rpm/tmp/build-dpdk && source 
../dpdk-meson-venv/bin/activate && meson install && cd 
/opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-0.x86_64/opt/vpp/external/x86_64/lib
 && echo "GROUP ( $(ls librte*.a ) )" > libdpdk.a && rm -rf librte*.so 
librte*.so.* dpdk/*/librte*.so dpdk/*/librte*.so.* && deactivate
ninja: Entering directory `.'
[1/836] Linking target drivers/librte_common_mlx5.so.21.0
FAILED: drivers/librte_common_mlx5.so.21.0
cc  -o drivers/librte_common_mlx5.so.21.0 
'drivers/a715181@@rte_common_mlx5@sha/meson-generated_.._rte_common_mlx5.pmd.c.o'
 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_devx_cmds.c.o' 
'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_common.c.o' 
'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_common_mp.c.o' 
'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_common_mr.c.o' 
'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_malloc.c.o' 
'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_common_pci.c.o' 
'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_nl.c.o' 
'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_common_os.c.o' 
'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_common_verbs.c.o'
 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o' 
-Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group 
-Wl,-soname,librte_common_mlx5.so.21 -Wl,--no-as-needed -pthread -lm -ldl 
-lnuma lib/librte_hash.so.21.0 lib/librte_eal.so.21.0 lib/librte_kvargs.so.21.0 
lib/librte_telemetry.so.21.0 lib/librte_ring.so.21.0 lib/librte_rcu.so.21.0 
lib/librte_pci.so.21.0 drivers/librte_bus_pci.so.21.0 lib/librte_net.so.21.0 
lib/librte_mbuf.so.21.0 lib/librte_mempool.so.21.0 
-Wl,--version-script=/opt/vpp/build/external/rpm/tmp/src-dpdk/drivers/common/mlx5/version.map
 -lpthread 
-L/opt/vpp/build/external/rpm/BUILDROOT/vpp-ext-deps-21.06-0.x86_64/opt/vpp/external/x86_64/lib64
 -l:libbnxt_re-rdmav25.a -l:libcxgb4-rdmav25.a -l:libefa.a -l:libhns-rdmav25.a 
-l:libi40iw-rdmav25.a -l:libmlx4.a -l:libmlx5.a -l:libmthca-rdmav25.a 
-l:libocrdma-rdmav25.a -l:libqedr-rdmav25.a -l:libvmw_pvrdma-rdmav25.a 
-l:libhfi1verbs-rdmav25.a -l:libipathverbs-rdmav25.a -l:librxe-rdmav25.a 
-l:libsiw-rdmav25.a -l:libibverbs.a -l:librdma_util.a -l:libccan.a 
-Wl,--end-group '-Wl,-rpath,$ORIGIN/../lib:$ORIGIN/' 
-Wl,-rpath-link,/opt/vpp/build/external/rpm/tmp/build-dpdk/lib 
-Wl,-rpath-link,/opt/vpp/build/external/rpm/tmp/build-dpdk/drivers
/usr/bin/ld: cannot find -l:libbnxt_re-rdmav25.a
/usr/bin/ld: cannot find -l:libcxgb4-rdmav25.a
/usr/bin/ld: cannot find -l:libefa.a
/usr/bin/ld: cannot find -l:libhns-rdmav25.a
/usr/bin/ld: cannot find -l:libi40iw-rdmav25.a
/usr/bin/ld: cannot find -l:libmthca-rdmav25.a
/usr/bin/ld: cannot find -l:libocrdma-rdmav25.a
/usr/bin/ld: cannot find -l:libqedr-rdmav25.a
/usr/bin/ld: cannot find -l:libvmw_pvrdma-rdmav25.a
/usr/bin/ld: cannot find -l:libhfi1verbs-rdmav25.a
/usr/bin/ld: cannot find -l:libipathverbs-rdmav25.a
/usr/bin/ld: cannot find -l:libsiw-rdmav25.a
/usr/bin/ld: cannot find -l:librdma_util.a
/usr/bin/ld: cannot find -l:libccan.a
collect2: error: ld returned 1 exit status
[26/836] Generating symbol file 
'drivers/a715181@@rte_common_cpt@sha/librte_common_cpt.so.21.0.symbols'
ninja: build stopped: subcommand failed.
Could not rebuild .
make[3]: *** [packages/dpdk.mk:202: 
/opt/vpp/build/external/rpm/tmp/.dpdk.install.ok] Error 255
make[3]: Leaving directory '/opt/vpp/build/external'
error: Bad exit status from /var/tmp/rpm-tmp.e82X7I (%install)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.e82X7I (%install)
make[2]: *** [Makefile:114: vpp-ext-deps-21.06-0.x86_64.rpm] Error 1
make[2]: Leaving directory '/opt/vpp/build/external'
make[1]: *** [Makefile:126: install-rpm] Error 2
make[1]: Leaving directory '/opt/vpp/build/external'
make: *** [Makefile:584: install-ext-deps] Error 2

What can I do to compile vpp correctly now ?

Thanks and Regards
Ashish
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18490): https://lists.fd.io/g/vpp-dev/message/18490
Mute This Topic: https://lists.fd.io/mt/78363477/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to