From: Bing Zhao <bingz@nvidia.com>
To: "Lombardo, Ed" <Ed.Lombardo@netscout.com>,
Ali Alnubani <alialnu@nvidia.com>,
"users@dpdk.org" <users@dpdk.org>
Subject: RE: DPDK Mellanox mlx4 and mlx5
Date: Sat, 10 Aug 2024 17:09:41 +0000 [thread overview]
Message-ID: <PH7PR12MB690536ADE7FD71FBF3205415D0BB2@PH7PR12MB6905.namprd12.prod.outlook.com> (raw)
In-Reply-To: <CH3PR01MB8470B91E1C04E87998377EBB8FBA2@CH3PR01MB8470.prod.exchangelabs.com>
Have you installed the libs and headers in a standard CMAKE way?
> -----Original Message-----
> From: Lombardo, Ed <Ed.Lombardo@netscout.com>
> Sent: Saturday, August 10, 2024 1:40 AM
> To: Ali Alnubani <alialnu@nvidia.com>; users@dpdk.org
> Subject: RE: DPDK Mellanox mlx4 and mlx5
>
> External email: Use caution opening links or attachments
>
>
> 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_!AH7GKBDInkMDmwIafll16znS2hljXIeeOXYcfSKp9pAbA
> iVd-b6QrnHL8J_3Zz1S5ZxZSiB8qo4s2MzmyYQ$ to build rdma-core statically.
>
> Regards,
> Ali
prev parent reply other threads:[~2024-08-10 17:09 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
2024-08-10 17:09 ` Bing Zhao [this message]
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=PH7PR12MB690536ADE7FD71FBF3205415D0BB2@PH7PR12MB6905.namprd12.prod.outlook.com \
--to=bingz@nvidia.com \
--cc=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).