DPDK patches and discussions
 help / color / mirror / Atom feed
* Error while compiling DPDK with VPP 23.02
@ 2023-04-26  8:03 Chinmaya Agarwal
  2023-04-26 23:33 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Chinmaya Agarwal @ 2023-04-26  8:03 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 2000 bytes --]

Hi,

While compiling DPDK for VPP v23.02 on Centos 8, we saw below compilation error:-

In file included from ../src-dpdk/drivers/common/mlx5/mlx5_common_mr.c:14:
../src-dpdk/drivers/common/mlx5/linux/mlx5_glue.h:15:10: fatal error: infiniband/mlx5dv.h: No such file or directory
 #include <infiniband/mlx5dv.h>
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Could not rebuild .
make[3]: *** [packages/dpdk.mk:218: /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.whpNsT (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.whpNsT (%install)
make[2]: *** [Makefile:113: vpp-ext-deps-23.02-8.x86_64.rpm] Error 1
make[2]: Leaving directory '/opt/vpp/build/external'
make[1]: *** [Makefile:125: install-rpm] Error 2
make[1]: Leaving directory '/opt/vpp/build/external'
make: *** [Makefile:627: install-ext-deps] Error 2

It is not able to find "infiniband/mlx5dv.h".

What could be the reason for this error? Any package that might be missing and needs to install or are we missing something here?

Thanks and Regards,
Chinmaya Agarwal.
DISCLAIMER: This electronic message and all of its contents, contains information which is privileged, confidential or otherwise protected from disclosure. The information contained in this electronic mail transmission is intended for use only by the individual or entity to which it is addressed. If you are not the intended recipient or may have received this electronic mail transmission in error, please notify the sender immediately and delete / destroy all copies of this electronic mail transmission without disclosing, copying, distributing, forwarding, printing or retaining any part of it. Hughes Systique accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus.

[-- Attachment #2: Type: text/html, Size: 3406 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Error while compiling DPDK with VPP 23.02
  2023-04-26  8:03 Error while compiling DPDK with VPP 23.02 Chinmaya Agarwal
@ 2023-04-26 23:33 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2023-04-26 23:33 UTC (permalink / raw)
  To: Chinmaya Agarwal; +Cc: dev

On Wed, 26 Apr 2023 08:03:43 +0000
Chinmaya Agarwal <Chinmaya.Agarwal@hsc.com> wrote:

> Hi,
> 
> While compiling DPDK for VPP v23.02 on Centos 8, we saw below compilation error:-
> 
> In file included from ../src-dpdk/drivers/common/mlx5/mlx5_common_mr.c:14:
> ../src-dpdk/drivers/common/mlx5/linux/mlx5_glue.h:15:10: fatal error: infiniband/mlx5dv.h: No such file or directory
>  #include <infiniband/mlx5dv.h>
>           ^~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> ninja: build stopped: subcommand failed.
> Could not rebuild .
> make[3]: *** [packages/dpdk.mk:218: /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.whpNsT (%install)
> 
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.whpNsT (%install)
> make[2]: *** [Makefile:113: vpp-ext-deps-23.02-8.x86_64.rpm] Error 1
> make[2]: Leaving directory '/opt/vpp/build/external'
> make[1]: *** [Makefile:125: install-rpm] Error 2
> make[1]: Leaving directory '/opt/vpp/build/external'
> make: *** [Makefile:627: install-ext-deps] Error 2
> 
> It is not able to find "infiniband/mlx5dv.h".
> 
> What could be the reason for this error? Any package that might be missing and needs to install or are we missing something here?
> 
Probably same package requirements as normal DPDK support for Mellanox.

https://doc.dpdk.org/guides/platform/mlx5.html#mlx5-common-compilation

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-26 23:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-26  8:03 Error while compiling DPDK with VPP 23.02 Chinmaya Agarwal
2023-04-26 23:33 ` Stephen Hemminger

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).