I just noticed this error I'm getting net_mlx4: cannot load glue library: /home/chopps/w/vpp/build-root/install-vpp-native/external/lib/dpdk/pmds-20.0.3-glue/librte_pmd_mlx4_glue.so.18.02.0: cannot open shared object file: No such file or directory net_mlx4: cannot initialize PMD due to missing run-time dependency on rdma-core libraries (libibverbs, libmlx4) common_mlx5: Cannot load glue library: /home/chopps/w/vpp/build-root/install-vpp-native/external/lib/dpdk/pmds-20.0.3-glue/librte_pmd_mlx5_glue.so.20.02.0: cannot open shared object file: No such file or directory common_mlx5: Cannot initialize MLX5 common due to missing run-time dependency on rdma-core libraries (libibverbs, libmlx5)
And: (default) [17:50:17 ...]$ find ../build-root/*-vpp-native/external -name '*glue*' ../build-root/build-vpp-native/external/src-dpdk/drivers/common/mlx5/linux/mlx5_glue.c ../build-root/build-vpp-native/external/src-dpdk/drivers/common/mlx5/linux/mlx5_glue.h ../build-root/build-vpp-native/external/src-dpdk/drivers/net/mlx4/mlx4_glue.c ../build-root/build-vpp-native/external/src-dpdk/drivers/net/mlx4/mlx4_glue.h ../build-root/build-vpp-native/external/build-dpdk/drivers/common/mlx5/linux/librte_pmd_mlx5_glue.so ../build-root/build-vpp-native/external/build-dpdk/drivers/common/mlx5/linux/b7c1ada@@rte_pmd_mlx5_glue@sha ../build-root/build-vpp-native/external/build-dpdk/drivers/common/mlx5/linux/b7c1ada@@rte_pmd_mlx5_glue@sha/mlx5_glue.c.o ../build-root/build-vpp-native/external/build-dpdk/drivers/common/mlx5/linux/librte_pmd_mlx5_glue.so.20.02.0 ../build-root/build-vpp-native/external/build-dpdk/drivers/net/mlx4/librte_pmd_mlx4_glue.so ../build-root/build-vpp-native/external/build-dpdk/drivers/net/mlx4/8672f8e@@rte_pmd_mlx4_glue@sha ../build-root/build-vpp-native/external/build-dpdk/drivers/net/mlx4/8672f8e@@rte_pmd_mlx4_glue@sha/mlx4_glue.c.o ../build-root/build-vpp-native/external/build-dpdk/drivers/net/mlx4/librte_pmd_mlx4_glue.so.18.02.0 ../build-root/install-vpp-native/external/lib/dpdk/pmds-20.0.3-glue (default) [17:50:24 ...] So it looks like the glue is being built but not installed? Thanks, Chris. > On Oct 2, 2020, at 12:21 PM, Matthew Smith <mgsm...@netgate.com> wrote: > > Hi Mohammed, > > I think it will only affect builds where DPDK_MLX5_PMD=y is set, but I cannot > say for sure. The scripts/configurations I build with always set that flag, > so I have not tried to generate a build without it set recently. > > -Matt > > > On Fri, Oct 2, 2020 at 12:57 AM Mohammed HAWARI <momohaw...@gmail.com > <mailto:momohaw...@gmail.com>> wrote: > Hello Chris, Matthew, > > Thanks for raising that issue. Just to be clear and better understand, does > the problem occur with the default config, i.e., without trying to compile > any MLX driver in DPDK? Or does it only appear when setting DPDK_MLX5_PMD=y ? > Thanks > Best regards > Mohammed >> On 1 Oct 2020, at 22:33, Matthew Smith via lists.fd.io <http://lists.fd.io/> >> <mgsmith=netgate....@lists.fd.io <mailto:mgsmith=netgate....@lists.fd.io>> >> wrote: >> >> Hi Chris, >> >> I did this in my local build: >> >> diff --git a/build/external/packages/dpdk.mk <http://dpdk.mk/> >> b/build/external/packages/dpdk.mk <http://dpdk.mk/> >> index 49761cd56..a30ffd2ac 100644 >> --- a/build/external/packages/dpdk.mk <http://dpdk.mk/> >> +++ b/build/external/packages/dpdk.mk <http://dpdk.mk/> >> @@ -139,6 +139,7 @@ DPDK_MESON_ARGS = \ >> -Dtests=false \ >> "-Ddisable_drivers=$(DPDK_DRIVERS_DISABLED)" \ >> "-Ddisable_libs=$(DPDK_LIBS_DISABLED)" \ >> + -Dibverbs_link=dlopen \ >> -Db_pie=true \ >> -Dmachine=$(DPDK_MACHINE) \ >> --buildtype=$(DPDK_BUILD_TYPE) >> >> If I try to submit it upstream, I would probably do something nicer using a >> DPDK_<something> environment variable, but for the moment this got me past >> that error. I have not actually tested with an mlx5 device yet, so I don't >> know if something additional will be required in order to forward packets >> via an mlx5 NIC, but it did fix the error you pasted and allow >> dpdk_plugin.so to be loaded. >> >> -Matt >> >> >> On Thu, Oct 1, 2020 at 2:10 PM Christian Hopps <cho...@chopps.org >> <mailto:cho...@chopps.org>> wrote: >> I've rebased my local branch on the latest master and dpdk is failing to >> load now b/c >> >> 2020/10/01 18:31:54:514 err plugin/load >> /home/chopps/w/vpp/build-root/install-vpp-native/vpp/lib/vpp_plugins/dpdk_plugin.so: >> undefined symbol: ibv_fork_init >> >> I noticed that the dpdk build system has been changed is there something I >> need to do to get it to link properly with the required libraries now? >> >> I did change "n" in >> >> DPDK_MLX5_PMD ?= n >> DPDK_MLX5_COMMON_PMD ?= n >> >> to "y" to try and get MLX5 PMD to build. >> >> I also added >> >> vpp_uses_dpdk_mlx5_pmd = yes >> >> to build-data/platforms/vpp.mk <http://vpp.mk/> >> >> I also tried adding: >> >> vpp_uses_dpdk_ibverbs_link_dlopen = yes >> >> which didn't fix the problem. >> >> Any suggestions on how to fix this? >> >> Thanks, >> Chris. >> >> >> >> >>
signature.asc
Description: Message signed with OpenPGP
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#17634): https://lists.fd.io/g/vpp-dev/message/17634 Mute This Topic: https://lists.fd.io/mt/77247865/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-