From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f48.google.com (mail-it0-f48.google.com [209.85.214.48]) by dpdk.org (Postfix) with ESMTP id B96117286 for ; Wed, 18 Apr 2018 20:15:50 +0200 (CEST) Received: by mail-it0-f48.google.com with SMTP id t192-v6so18347287itc.1 for ; Wed, 18 Apr 2018 11:15:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=hn3d/HxuEKpPxfk1zIbx0cdM+wEuCC0Pm6zf5omm1Es=; b=nJMjQEix0w99pIkK+9C+lwkS3wZhcabttScPk9hT6T1Y97ZdUZYW8bFDQWPsEslFR3 mXJazuXp4kQuwvLB0nVe9wRTAU9pf62q9dZKD04uZ1ccfZERkvuXGeHpEI9vyAcXypzY RNRGBRRvYj3u8+3R81vPeW2527hfkPg/4JXIXd2G1OeovirTyn58ny2AfRTmK8cMrJJT dhMbeQm/+IGygJ6A/AbCaCbVn1ktras3FEsUi4fU/Oba1KhpetVcuvppJ9eo/liROEtD e7RYghkHbtqPd7XC53Y2mRVTUUi8OxY7Nhc42n9Df1In4Z1MhLR+mJ+/c2po6hlyPc+y 2grA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=hn3d/HxuEKpPxfk1zIbx0cdM+wEuCC0Pm6zf5omm1Es=; b=Wk/gPS5qhudArxXop3hTJk8H7F3SvIj9xB/nTq86G1EUtd0zLs6dqxF9Qj6nHDewzr baVUDzBlYnq/5tcQS8vzpAXOTdKjH9ZQfcJ0hQ0PZGW198vLq22o8OFIE7MUtMRjE3gt 7ExPDpRaFGmBFcTtR0s8QwqWJN2PO0C8XkFibsPZfeteD253mDPb9DEGfiI07J7cLI9/ lGQD/m1V+x0QC0d19poS+hUA0jTLxFnav0+t8agRHUmt0W5cpGdTEt5uZjef0bG1gavv 2Vp+rSdgH6d0HzmznhPuxy9idoO6frqu1fAjSxPHkdVOzXZ+dvNOXTRk+BywisxZNSB2 eScg== X-Gm-Message-State: ALQs6tAfqpdBud+JmidbxcyIKFdtWq9wrQ+qV/K9G/umMwkjpceLiDeM fu8Mna6MDRQiLb2xIoPZZCJDaGrqWXe+PMR3j5z0Q6vT X-Google-Smtp-Source: AIpwx4/ZIjYZeOxvmV2gMOt6vJzIB23C43ah0twIO3hBSfrk60gEGa42ZPhPcSJdOOKf5GhCd4IL+DuwIYOMSYPDeCY= X-Received: by 2002:a24:1685:: with SMTP id a127-v6mr3359980ita.143.1524075349443; Wed, 18 Apr 2018 11:15:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.144.136 with HTTP; Wed, 18 Apr 2018 11:15:28 -0700 (PDT) From: =?UTF-8?Q?Andr=C3=A9s_Pozo_Mu=C3=B1oz?= Date: Wed, 18 Apr 2018 20:15:28 +0200 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Thu, 19 Apr 2018 10:00:29 +0200 Subject: [dpdk-users] Compilation problems in Ubuntu 16.04 with MLX5 options X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Apr 2018 18:15:51 -0000 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: =E2=80=98dpdk-18.02-rc4.tar.gz=E2=80=99 dpdk-18.02-rc4.tar.gz [ <=3D> ] 12.45M 4.20MB/s in 3.0s 2018-04-18 20:04:20 (4.20 MB/s) - =E2=80=98dpdk-18.02-rc4.tar.gz=E2=80=99 s= aved [13059456] root@olnmalp026Bn001:/usr/src# tar xvfz dpdk-18.02-rc4.tar.gz .... root@olnmalp026Bn001:/usr/src# export DPDK_DIR=3D/usr/src/dpdk-18.02-rc4 root@olnmalp026Bn001:/usr/src# cd $DPDK_DIR root@olnmalp026Bn001:/usr/src/dpdk-18.02-rc4# export DPDK_TARGET=3Dx86_64-native-linuxapp-gcc root@olnmalp026Bn001:/usr/src/dpdk-18.02-rc4# export DPDK_BUILD=3D$DPDK_DIR/$DPDK_TARGET root@olnmalp026Bn001:/usr/src/dpdk-18.02-rc4# sed -i 's/\(CONFIG_RTE_LIBRTE_MLX5_PMD=3D\)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=3D\)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=3Dy CONFIG_RTE_LIBRTE_MLX5_DEBUG=3Dn CONFIG_RTE_LIBRTE_MLX5_DLOPEN_DEPS=3Dy CONFIG_RTE_LIBRTE_MLX5_TX_MP_CACHE=3D8 root@olnmalp026Bn001:/usr/src/dpdk-18.02-rc4# make -j install T=3D$DPDK_TARGET DESTDIR=3Dinstall Configuration done using x86_64-native-linuxapp-gcc =3D=3D Build lib =3D=3D Build lib/librte_compat =3D=3D Build lib/librte_eal =3D=3D Build lib/librte_cfgfile =3D=3D 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: =E2=80=98struct ibv_rwq_ind_table_init_attr=E2=80=99 declared inside parame= ter list struct ibv_rwq_ind_table_init_attr *init_attr); ^ /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5_glue.h:64:11: warning: its scope is only this definition or declaration, which is probably not what you want /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5_glue.h:67:16: warning: =E2=80=98struct ibv_wq_init_attr=E2=80=99 declared inside parameter list struct ibv_wq_init_attr *wq_init_attr); ^ /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5_glue.h:69:45: warning: =E2=80=98struct ibv_wq_attr=E2=80=99 declared inside parameter list int (*modify_wq)(struct ibv_wq *wq, struct ibv_wq_attr *wq_attr); ^ /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5_glue.h:98:39: warning: =E2=80=98struct ibv_cq_ex=E2=80=99 declared inside parameter list struct ibv_cq *(*cq_ex_to_cq)(struct ibv_cq_ex *cq); ^ /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5_glue.h:102:11: warning: =E2=80=98struct mlx5dv_cq_init_attr=E2=80=99 declared inside parameter list struct mlx5dv_cq_init_attr *mlx5_cq_attr); ^ /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5_glue.h:102:11: warning: =E2=80=98struct ibv_cq_init_attr_ex=E2=80=99 declared inside parameter list /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5_glue.h:107:8: warning: =E2=80=98enum mlx5dv_set_ctx_attr_type=E2=80=99 declared inside parameter l= ist void *attr); ^ AR librte_pmd_ring.a LD rte_eth_vhost.o LD cxgbe_ethdev.o /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5.c: In function =E2=80=98mlx5_= pci_probe=E2=80=99: /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5.c:836:37: error: =E2=80=98str= uct ibv_device_attr_ex=E2=80=99 has no member named =E2=80=98device_cap_flags_e= x=E2=80=99 config.hw_csum =3D !!(device_attr_ex.device_cap_flags_ex & ^ /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5.c:837:9: error: =E2=80=98IBV_DEVICE_RAW_IP_CSUM=E2=80=99 undeclared (first use in this func= tion) IBV_DEVICE_RAW_IP_CSUM); ^ /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5.c:837:9: note: each undeclared identifier is reported only once for each function it appears in /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5.c:857:18: error: =E2=80=98str= uct ibv_device_attr_ex=E2=80=99 has no member named =E2=80=98rss_caps=E2=80=99 device_attr_ex.rss_caps.max_rwq_indirection_table_size; ^ /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5.c:865:43: error: =E2=80=98str= uct ibv_device_attr_ex=E2=80=99 has no member named =E2=80=98raw_packet_caps=E2= =80=99 config.hw_vlan_strip =3D !!(device_attr_ex.raw_packet_caps & ^ /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5.c:866:7: error: =E2=80=98IBV_RAW_PACKET_CAP_CVLAN_STRIPPING=E2=80=99 undeclared (first use = in this function) IBV_RAW_PACKET_CAP_CVLAN_STRIPPING); ^ /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5.c:870:42: error: =E2=80=98str= uct ibv_device_attr_ex=E2=80=99 has no member named =E2=80=98raw_packet_caps=E2= =80=99 config.hw_fcs_strip =3D !!(device_attr_ex.raw_packet_caps & ^ /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5.c:871:7: error: =E2=80=98IBV_RAW_PACKET_CAP_SCATTER_FCS=E2=80=99 undeclared (first use in t= his function) IBV_RAW_PACKET_CAP_SCATTER_FCS); ^ /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5.c:883:32: error: =E2=80=98str= uct ibv_device_attr_ex=E2=80=99 has no member named =E2=80=98tso_caps=E2=80=99 config.tso =3D ((device_attr_ex.tso_caps.max_tso > 0) && ^ /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5.c:884:25: error: =E2=80=98str= uct ibv_device_attr_ex=E2=80=99 has no member named =E2=80=98tso_caps=E2=80=99 (device_attr_ex.tso_caps.supported_qpts & ^ /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5.c:888:20: error: =E2=80=98str= uct ibv_device_attr_ex=E2=80=99 has no member named =E2=80=98tso_caps=E2=80=99 device_attr_ex.tso_caps.max_tso; ^ /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5.c:956:10: error: variable =E2=80=98alctr=E2=80=99 has initializer but incomplete type struct mlx5dv_ctx_allocators alctr =3D { ^ /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5.c:957:4: error: unknown field =E2=80=98alloc=E2=80=99 specified in initializer .alloc =3D &mlx5_alloc_verbs_buf, ^ /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5.c:957:13: warning: excess elements in struct initializer .alloc =3D &mlx5_alloc_verbs_buf, ^ /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5.c:957:13: note: (near initialization for =E2=80=98alctr=E2=80=99) /usr/src/dpdk-18.02-rc4/drivers/net/mlx5/mlx5.c:958:4: error: unknown field =E2=80=98free=E2=80=99 specified in initializer .free =3D &mlx5_free_verbs_buf, 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=C3=A9s