DPDK usage discussions
 help / color / mirror / Atom feed
From: "Nélio Laranjeiro" <nelio.laranjeiro@6wind.com>
To: "Andrés Pozo Muñoz" <andres.pozom@gmail.com>
Cc: users@dpdk.org
Subject: Re: [dpdk-users] Compilation problems in Ubuntu 16.04 with MLX5 options
Date: Thu, 19 Apr 2018 10:25:55 +0200	[thread overview]
Message-ID: <20180419082555.vt5dyhvtkqzbozws@laranjeiro-vm.dev.6wind.com> (raw)
In-Reply-To: <CAPfKRs7gY3GbzmG_XMzEb_v_=shZwprMGfHAN4XggkU69BbiJg@mail.gmail.com>

On Wed, Apr 18, 2018 at 08:15:28PM +0200, Andrés Pozo Muñoz wrote:
> Hi all,
> 
> I'm trying to build DPDK (tried with 17.11 and 18.02) on Ubuntu 16.04,
> with MLX5 support and I'm getting some compilation errors.

> The sequence of commands I follow:
> 
> root@olnmalp026Bn001:/usr/src# uname -a
> Linux olnmalp026Bn001 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18
> 12:55:35 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
> root@olnmalp026Bn001:/usr/src# wget
> http://dpdk.org/browse/dpdk/snapshot/dpdk-18.02-rc4.tar.gz
> --2018-04-18 20:04:17--
> http://dpdk.org/browse/dpdk/snapshot/dpdk-18.02-rc4.tar.gz
> Resolving dpdk.org (dpdk.org)... 92.243.14.124
> Connecting to dpdk.org (dpdk.org)|92.243.14.124|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: unspecified [application/x-gzip]
> Saving to: ‘dpdk-18.02-rc4.tar.gz’
> 
> dpdk-18.02-rc4.tar.gz                           [              <=>
> 
> ]  12.45M  4.20MB/s    in 3.0s
> 
> 2018-04-18 20:04:20 (4.20 MB/s) - ‘dpdk-18.02-rc4.tar.gz’ saved [13059456]
> 
> root@olnmalp026Bn001:/usr/src# tar xvfz dpdk-18.02-rc4.tar.gz
> ....
> 
> root@olnmalp026Bn001:/usr/src# export DPDK_DIR=/usr/src/dpdk-18.02-rc4
> root@olnmalp026Bn001:/usr/src# cd $DPDK_DIR
> root@olnmalp026Bn001:/usr/src/dpdk-18.02-rc4# export
> DPDK_TARGET=x86_64-native-linuxapp-gcc
> root@olnmalp026Bn001:/usr/src/dpdk-18.02-rc4# export
> DPDK_BUILD=$DPDK_DIR/$DPDK_TARGET
> root@olnmalp026Bn001:/usr/src/dpdk-18.02-rc4# sed -i
> 's/\(CONFIG_RTE_LIBRTE_MLX5_PMD=\)n/\1y/g'
> $DPDK_DIR/config/common_base
> root@olnmalp026Bn001:/usr/src/dpdk-18.02-rc4# sed -i
> 's/\(CONFIG_RTE_LIBRTE_MLX5_DLOPEN_DEPS=\)n/\1y/g'
> $DPDK_DIR/config/common_base
> root@olnmalp026Bn001:/usr/src/dpdk-18.02-rc4# grep MLX5
> $DPDK_DIR/config/common_base
> # Compile burst-oriented Mellanox ConnectX-4 & ConnectX-5 (MLX5) PMD
> CONFIG_RTE_LIBRTE_MLX5_PMD=y
> CONFIG_RTE_LIBRTE_MLX5_DEBUG=n
> CONFIG_RTE_LIBRTE_MLX5_DLOPEN_DEPS=y
> CONFIG_RTE_LIBRTE_MLX5_TX_MP_CACHE=8
> root@olnmalp026Bn001:/usr/src/dpdk-18.02-rc4# make -j install
> T=$DPDK_TARGET DESTDIR=install
> Configuration done using x86_64-native-linuxapp-gcc
> == Build lib
> == Build lib/librte_compat
> == Build lib/librte_eal
> == Build lib/librte_cfgfile
> == Build lib/librte_eal/common
>   SYMLINK-FILE include/rte_compat.h
> In file included from /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5.c:42:0:
> /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5_glue.h:64:11: warning:
> ‘struct ibv_rwq_ind_table_init_attr’ declared inside parameter list
>     struct ibv_rwq_ind_table_init_attr *init_attr);
>[...]
> 
> 
> 
> Complete log here -> https://pastebin.com/5gSuV3PV
> 
> Is there any problem with those DPDK versions in Ubuntu 16.04?
> Has anyone experienced similar problems?
> 
> 
> Thank you very much in advance!
> Regards,
> Andrés


Hi,

Seems you do not have the 3rd party libraries installed.
Please take a look at [1] first,

Regards,

[1] https://dpdk.org/doc/guides/nics/mlx5.html

-- 
Nélio Laranjeiro
6WIND

  reply	other threads:[~2018-04-19  8:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-18 18:15 Andrés Pozo Muñoz
2018-04-19  8:25 ` Nélio Laranjeiro [this message]
2018-04-19 14:12   ` Wu, Xiaoban

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=20180419082555.vt5dyhvtkqzbozws@laranjeiro-vm.dev.6wind.com \
    --to=nelio.laranjeiro@6wind.com \
    --cc=andres.pozom@gmail.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).