From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla@dpdk.org
Subject: [Bug 27] Can't build mlx5 from 18.02 on CentOS Linux
release 7.4.1708 with kernel 3.10.0-693.11.1.el7.x86_64
Date: Fri, 20 Apr 2018 13:58:38 +0000
Message-ID:
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
To: dev@dpdk.org
Return-path:
List-Id: DPDK patches and discussions
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: dev-bounces@dpdk.org
Sender: "dev"
https://dpdk.org/tracker/show_bug.cgi?id=3D27
Bug ID: 27
Summary: Can't build mlx5 from 18.02 on CentOS Linux release
7.4.1708 with kernel 3.10.0-693.11.1.el7.x86_64
Product: DPDK
Version: 18.02
Hardware: x86
OS: Linux
Status: CONFIRMED
Severity: major
Priority: Normal
Component: core
Assignee: dev@dpdk.org
Reporter: bearrailgun@gmail.com
Target Milestone: ---
Release notes for 18.02 say it was tested on Red Hat Enterprise Linux Server
release 7.4 with MLNX_OFED: 4.3-0.1.6.0.
I installed mellanox ofed 4.3-1.0.1.0 ( a little bit newer but still).
Building 18.02 release with CONFIG_RTE_BUILD_SHARED_LIB=3Dy,
CONFIG_RTE_LIBRTE_MLX5_PMD=3Dy, CONFIG_RTE_LIBRTE_MLX5_DLOPEN_DEPS=3Dy.
Other options left as default.
Anyway, when its going to compile drivers/net/mlx5 I have next errors:
=3D=3D Build drivers/net/mlx5
CC mlx5.o
In file included from /root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:42:0:
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5_glue.h:64:11: warning: =E2=80=
=98struct
ibv_rwq_ind_table_init_attr=E2=80=99 declared inside parameter list [enable=
d by
default]
struct ibv_rwq_ind_table_init_attr *init_attr);
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5_glue.h:64:11: warning: its scop=
e is
only this definition or declaration, which is probably not what you want
[enabled by default]
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5_glue.h:67:16: warning: =E2=80=
=98struct
ibv_wq_init_attr=E2=80=99 declared inside parameter list [enabled by defaul=
t]
struct ibv_wq_init_attr *wq_init_attr);
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5_glue.h:69:45: warning: =E2=80=
=98struct
ibv_wq_attr=E2=80=99 declared inside parameter list [enabled by default]
int (*modify_wq)(struct ibv_wq *wq, struct ibv_wq_attr *wq_attr);
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5_glue.h:98:39: warning: =E2=80=
=98struct
ibv_cq_ex=E2=80=99 declared inside parameter list [enabled by default]
struct ibv_cq *(*cq_ex_to_cq)(struct ibv_cq_ex *cq);
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5_glue.h:102:11: warning: =E2=80=
=98struct
mlx5dv_cq_init_attr=E2=80=99 declared inside parameter list [enabled by def=
ault]
struct mlx5dv_cq_init_attr *mlx5_cq_attr);
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5_glue.h:102:11: warning: =E2=80=
=98struct
ibv_cq_init_attr_ex=E2=80=99 declared inside parameter list [enabled by def=
ault]
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5_glue.h:107:8: warning: =E2=80=
=98enum
mlx5dv_set_ctx_attr_type=E2=80=99 declared inside parameter list [enabled b=
y default]
void *attr);
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c: In function =E2=80=98mlx5_pc=
i_probe=E2=80=99:
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:837:37: error: =E2=80=98struct
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 &
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:838:9: error:
=E2=80=98IBV_DEVICE_RAW_IP_CSUM=E2=80=99 undeclared (first use in this func=
tion)
IBV_DEVICE_RAW_IP_CSUM);
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:838:9: note: each undeclared
identifier is reported only once for each function it appears in
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:858:18: error: =E2=80=98struct
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;
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:866:43: error: =E2=80=98struct
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 &
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:867: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);
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:871:42: error: =E2=80=98struct
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 &
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:872: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);
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:884:32: error: =E2=80=98struct
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) &&
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:885:25: error: =E2=80=98struct
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 &
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:889:20: error: =E2=80=98struct
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;
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:957:10: error: variable =E2=
=80=98alctr=E2=80=99
has initializer but incomplete type
struct mlx5dv_ctx_allocators alctr =3D {
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:958:4: error: unknown field
=E2=80=98alloc=E2=80=99 specified in initializer
.alloc =3D &mlx5_alloc_verbs_buf,
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:958:4: warning: excess elemen=
ts
in struct initializer [enabled by default]
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:958:4: warning: (near
initialization for =E2=80=98alctr=E2=80=99) [enabled by default]
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:959:4: error: unknown field
=E2=80=98free=E2=80=99 specified in initializer
.free =3D &mlx5_free_verbs_buf,
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:959:4: warning: excess elemen=
ts
in struct initializer [enabled by default]
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:959:4: warning: (near
initialization for =E2=80=98alctr=E2=80=99) [enabled by default]
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:960:4: error: unknown field
=E2=80=98data=E2=80=99 specified in initializer
.data =3D priv,
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:960:4: warning: excess elemen=
ts
in struct initializer [enabled by default]
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:960:4: warning: (near
initialization for =E2=80=98alctr=E2=80=99) [enabled by default]
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:957:32: error: storage size of
=E2=80=98alctr=E2=80=99 isn=E2=80=99t known
struct mlx5dv_ctx_allocators alctr =3D {
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:963:13: error:
=E2=80=98MLX5DV_CTX_ATTR_BUF_ALLOCATORS=E2=80=99 undeclared (first use in t=
his function)
MLX5DV_CTX_ATTR_BUF_ALLOCATORS,
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:964:13: error: type of formal
parameter 2 is incomplete
(void *)((uintptr_t)&alctr));
^
/root/dpdk/dpdk-18.02/drivers/net/mlx5/mlx5.c:957:32: warning: unused varia=
ble
=E2=80=98alctr=E2=80=99 [-Wunused-variable]
struct mlx5dv_ctx_allocators alctr =3D {
^
make[6]: *** [mlx5.o] Error 1
make[5]: *** [mlx5] Error 2
make[4]: *** [net] Error 2
make[3]: *** [drivers] Error 2
make[2]: *** [all] Error 2
make[1]: *** [pre_install] Error 2
make: *** [install] Error 2
kernel version is 3.10.0-693.11.1.el7.x86_64
what is wrong?
--=20
You are receiving this mail because:
You are the assignee for the bug.=