DPDK usage discussions
 help / color / mirror / Atom feed
From: "Lombardo, Ed" <Ed.Lombardo@netscout.com>
To: Ali Alnubani <alialnu@nvidia.com>, "users@dpdk.org" <users@dpdk.org>
Subject: RE: DPDK Mellanox mlx4 and mlx5
Date: Fri, 9 Aug 2024 17:39:50 +0000	[thread overview]
Message-ID: <CH3PR01MB8470B91E1C04E87998377EBB8FBA2@CH3PR01MB8470.prod.exchangelabs.com> (raw)
In-Reply-To: <PH7PR12MB91733362673964EA28214B50DABE2@PH7PR12MB9173.namprd12.prod.outlook.com>

Hi Ali,
Sorry for getting back to you so late.  Was pulled away for other reasons.  
I found online a way to tell meson and ninja to point to libibverbs.  Now meson and ninja are passing.  

# Define the path where libibverbs.a is located
ibverbs_lib_dir = '/root/rpmbuild/SOURCES/rdma-core-44.0/build/lib'
ibverbs_include_dir = '/root/rpmbuild/SOURCES/rdma-core-44.0/build/include'

# Create an include directory object
inc = include_directories(ibverbs_include_dir)

# Declare a dependency for libibverbs, linking statically
ibverbs_dep = declare_dependency(
  link_args: ['-L' + ibverbs_lib_dir, '-libverbs'],
  include_directories: inc
  )
# End of libibverbs


Next, I copied the DPDK include and lib files to our application build VM.  I built our application and now I see different errors during linking.

lib/dpdk-2211.2/lib/librte_net_mlx4.a(net_mlx4_mlx4_glue.c.o):mlx4_glue.c:function mlx4_glue_dv_set_context_attr: error: undefined reference to 'mlx4dv_set_context_attr'
lib/dpdk-2211.2/lib/librte_net_mlx4.a(net_mlx4_mlx4_glue.c.o):mlx4_glue.c:function mlx4_glue_dv_init_obj: error: undefined reference to 'mlx4dv_init_obj'
lib/dpdk-2211.2/lib/librte_net_mlx4.a(net_mlx4_mlx4_glue.c.o):mlx4_glue.c:function mlx4_glue_dereg_mr: error: undefined reference to 'ibv_dereg_mr'
lib/dpdk-2211.2/lib/librte_net_mlx4.a(net_mlx4_mlx4_glue.c.o):mlx4_glue.c:function mlx4_glue_reg_mr: error: undefined reference to 'ibv_reg_mr_iova2'
...

Now I need to resolve these issue related to mlx4_glue.c
If I have all the DPDK static libraries copied to my application build VM why does it complain about mlx4_glue.c functions are undefined?

Thanks,
Ed

-----Original Message-----
From: Ali Alnubani <alialnu@nvidia.com> 
Sent: Monday, August 5, 2024 2:55 AM
To: Lombardo, Ed <Ed.Lombardo@netscout.com>; users@dpdk.org
Subject: RE: DPDK Mellanox mlx4 and mlx5

External Email: This message originated outside of NETSCOUT. Do not click links or open attachments unless you recognize the sender and know the content is safe.

Hi Ed,

Maybe you didn't set PKG_CONFIG_PATH?
 
Also check "5.3.1.1. Upstream Dependencies" section in https://urldefense.com/v3/__https://doc.dpdk.org/guides/platform/mlx5.html*linux-prerequisites__;Iw!!Nzg7nt7_!AH7GKBDInkMDmwIafll16znS2hljXIeeOXYcfSKp9pAbAiVd-b6QrnHL8J_3Zz1S5ZxZSiB8qo4s2MzmyYQ$  to build rdma-core statically.
 
Regards,
Ali

  reply	other threads:[~2024-08-09 17:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-02 20:12 Lombardo, Ed
2024-08-05  6:55 ` Ali Alnubani
2024-08-09 17:39   ` Lombardo, Ed [this message]
2024-08-10 17:09     ` Bing Zhao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CH3PR01MB8470B91E1C04E87998377EBB8FBA2@CH3PR01MB8470.prod.exchangelabs.com \
    --to=ed.lombardo@netscout.com \
    --cc=alialnu@nvidia.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).