i can't install MLNX_OFEX_LINUX-5.2-2.2.0.0-4.15.0-20-generic

i’m using ubuntu18.04

and device is connectX-4 Lx

uname -r is 4.15.0-20-generic

i used sudo ./mlnxofedinstall --with-nfsrdma --with-nvmf --enable-gds --add-kernel-support

the result is

ERROR: Failed executing “MLNX_OFED_SRC-5.2-2.2.0.0/install.pl --tmpdir /tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.22959_logs --kernel-only --kernel 4.15.0-20-generic --kernel-sources /lib/modules/4.15.0-20-generic/build --builddir /tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.22959 --without-dkms --without-debug-symbols --enable-gds --build-only --distro ubuntu18.04”

ERROR: See /tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.22959_logs/mlnx_ofed_iso.22959.log

Failed to build MLNX_OFED_LINUX for 4.15.0-20-generic

and fail log like this

n file included from include/linux/printk.h:350:0,

from /tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.60350/mlnx-ofed-kernel/mlnx-ofed-kernel-5.2/include/linux/printk.h:7,

from include/linux/kernel.h:14,

from /tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.60350/mlnx-ofed-kernel/mlnx-ofed-kernel-5.2/include/linux/kernel.h:6,

from include/linux/uio.h:12,

from include/linux/socket.h:8,

from /tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.60350/mlnx-ofed-kernel/mlnx-ofed-kernel-5.2/include/linux/socket.h:4,

from ./include/uapi/linux/if.h:25,

from /tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.60350/mlnx-ofed-kernel/mlnx-ofed-kernel-5.2/include/linux/compat-2.6.h:11,

from :0:

/tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.60350/mlnx-ofed-kernel/mlnx-ofed-kernel-5.2/net/sunrpc/xprtrdma/verbs.c:1267:14: error: ‘struct rpcrdma_xprt’ has no member named ‘rx_ia’; did you mean ‘rx_ep’?

r_xprt->rx_ia.ri_id->device->name, mr->mr_sg, mr->mr_nents);

^

include/linux/dynamic_debug.h:128:10: note: in definition of macro ‘dynamic_pr_debug’

##VA_ARGS); \

^~~~~~~~~~~

/tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.60350/mlnx-ofed-kernel/mlnx-ofed-kernel-5.2/net/sunrpc/xprtrdma/verbs.c:1266:4: note: in expansion of macro ‘pr_debug’

pr_debug(“rpcrdma_nvfs_unmap_data device %s mr->mr_sg: %p , nents: %d\n”,

^

LD [M] /tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.60350/mlnx-ofed-kernel/mlnx-ofed-kernel-5.2/drivers/infiniband/hw/mlx4/mlx4_ib.o

CC [M] /tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.60350/mlnx-ofed-kernel/mlnx-ofed-kernel-5.2/drivers/infiniband/ulp/iser/iscsi_iser.o

scripts/Makefile.build:332: recipe for target ‘/tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.60350/mlnx-ofed-kernel/mlnx-ofed-kernel-5.2/net/sunrpc/xprtrdma/verbs.o’ failed

make[5]: *** [/tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.60350/mlnx-ofed-kernel/mlnx-ofed-kernel-5.2/net/sunrpc/xprtrdma/verbs.o] Error 1

make[5]: *** Waiting for unfinished jobs…

CC [M] /tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.60350/mlnx-ofed-kernel/mlnx-ofed-kernel-5.2/drivers/infiniband/hw/mlx5/cmd.o

/tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.60350/mlnx-ofed-kernel/mlnx-ofed-kernel-5.2/net/sunrpc/xprtrdma/frwr_ops.c: In function ‘frwr_mr_recycle’:

/tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.60350/mlnx-ofed-kernel/mlnx-ofed-kernel-5.2/net/sunrpc/xprtrdma/frwr_ops.c:91:39: error: ‘struct rpcrdma_xprt’ has no member named ‘rx_ia’; did you mean ‘rx_ep’?

if (rpcrdma_nvfs_unmap_data(r_xprt->rx_ia.ri_id->device->dma_device,

^~~~~

rx_ep

In file included from include/linux/printk.h:350:0,

from /tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.60350/mlnx-ofed-kernel/mlnx-ofed-kernel-5.2/include/linux/printk.h:7,

from include/linux/kernel.h:14,

from /tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.60350/mlnx-ofed-kernel/mlnx-ofed-kernel-5.2/include/linux/kernel.h:6,

from include/linux/uio.h:12,

from include/linux/socket.h:8,

from /tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.60350/mlnx-ofed-kernel/mlnx-ofed-kernel-5.2/include/linux/socket.h:4,

from ./include/uapi/linux/if.h:25,

from /tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.60350/mlnx-ofed-kernel/mlnx-ofed-kernel-5.2/include/linux/compat-2.6.h:11,

from :0:

/tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.60350/mlnx-ofed-kernel/mlnx-ofed-kernel-5.2/net/sunrpc/xprtrdma/frwr_ops.c:94:14: error: ‘struct rpcrdma_xprt’ has no member named ‘rx_ia’; did you mean ‘rx_ep’?

r_xprt->rx_ia.ri_id->device->name, mr->mr_sg, mr->mr_nents);

^

include/linux/dynamic_debug.h:128:10: note: in definition of macro ‘dynamic_pr_debug’

##VA_ARGS); \

^~~~~~~~~~~

/tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.60350/mlnx-ofed-kernel/mlnx-ofed-kernel-5.2/net/sunrpc/xprtrdma/frwr_ops.c:93:4: note: in expansion of macro ‘pr_debug’

pr_debug(“rpcrdma_nvfs_unmap_data device %s mr->mr_sg: %p , nents: %d\n”,

^

/tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.60350/mlnx-ofed-kernel/mlnx-ofed-kernel-5.2/net/sunrpc/xprtrdma/frwr_ops.c: In function ‘frwr_map’:

/tmp/MLNX_OFED_LINUX-5.2-2.2.0.0-4.15.0-20-generic/mlnx_iso.60350/mlnx-ofed-kernel/mlnx-ofed-kernel-5.2/net/sunrpc/xprtrdma/frwr_ops.c:341:36: error: ‘ia’ undeclared (first use in this function); did you mean ‘i’?

dma_nents = rpcrdma_nvfs_map_data(ia->ri_id->device->dma_device,

^~

i

what should i do…?

mlnx-ofed-kernel.debbuild.log (453 KB)

Hi,

based on my check, the OFED and your kernel versions are compatible, so you can try as following:

  1. Please make sure there is no previous OFED versions are installed, and if installed, please uninstall them prior to running the new OFED installation.

  2. Try running the installation without --add-kernel-support option

Regards,

Anatoly

your second option worked very well thanks for your help!!