[dpdk-users] Compilation problems in Ubuntu 16.04 with MLX5 options

Nélio Laranjeiro nelio.laranjeiro at 6wind.com
Thu Apr 19 10:25:55 CEST 2018


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 at 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 at 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 at olnmalp026Bn001:/usr/src# tar xvfz dpdk-18.02-rc4.tar.gz
> ....
> 
> root at olnmalp026Bn001:/usr/src# export DPDK_DIR=/usr/src/dpdk-18.02-rc4
> root at olnmalp026Bn001:/usr/src# cd $DPDK_DIR
> root at olnmalp026Bn001:/usr/src/dpdk-18.02-rc4# export
> DPDK_TARGET=x86_64-native-linuxapp-gcc
> root at olnmalp026Bn001:/usr/src/dpdk-18.02-rc4# export
> DPDK_BUILD=$DPDK_DIR/$DPDK_TARGET
> root at olnmalp026Bn001:/usr/src/dpdk-18.02-rc4# sed -i
> 's/\(CONFIG_RTE_LIBRTE_MLX5_PMD=\)n/\1y/g'
> $DPDK_DIR/config/common_base
> root at 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 at 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 at 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


More information about the users mailing list