Failed to install MLNX_OFED on Ubuntu 18.04

Hello,

I failed to install MLNX_OFED on Ubuntu 18.04 but all prerequisite packages were installed

Below are further informations

Env:

#uname -a

Linux r740 4.15.0 #1 SMP Fri Oct 11 02:32:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

the output of terminal:

./mlnxofedinstall --add-kernel-support

Note: This program will create MLNX_OFED_LINUX TGZ for ubuntu18.04 under /tmp/MLNX_OFED_LINUX-5.0-2.1.8.0-4.15.0 directory.

See log file /tmp/MLNX_OFED_LINUX-5.0-2.1.8.0-4.15.0/mlnx_iso.61958_logs/mlnx_ofed_iso.61958.log

Checking if all needed packages are installed…

Building MLNX_OFED_LINUX DEBS . Please wait…

ERROR: Failed executing “MLNX_OFED_SRC-5.0-2.1.8.0/install.pl --tmpdir /tmp/MLNX_OFED_LINUX-5.0-2.1.8.0-4.15.0/mlnx_iso.61958_logs --kernel-only --kernel 4.15.0 --kernel-sources /lib/modules/4.15.0/build --builddir /tmp/MLNX_OFED_LINUX-5.0-2.1.8.0-4.15.0/mlnx_iso.61958 --without-dkms --without-debug-symbols --build-only --distro ubuntu18.04”

ERROR: See /tmp/MLNX_OFED_LINUX-5.0-2.1.8.0-4.15.0/mlnx_iso.61958_logs/mlnx_ofed_iso.61958.log

Failed to build MLNX_OFED_LINUX for 4.15.0

And the output in mlnx_ofed_iso.61958.log:

Logs dir: /tmp/MLNX_OFED_LINUX-5.0-2.1.8.0-4.15.0/mlnx_iso.61958_logs/OFED.62161.logs

General log file: /tmp/MLNX_OFED_LINUX-5.0-2.1.8.0-4.15.0/mlnx_iso.61958_logs/OFED.62161.logs/general.log

[32m

Below is the list of OFED packages that you have chosen

(some may have been added by the installer due to package dependencies):

[0m

ofed-scripts

mlnx-ofed-kernel-utils

mlnx-ofed-kernel-modules

rshim-modules

iser-modules

isert-modules

srp-modules

mlnx-nvme-modules

mlnx-rdma-rxe-modules

kernel-mft-modules

knem-modules

Checking SW Requirements…

[31mOne or more required packages for installing OFED-internal are missing.[0m

[31mAttempting to install the following missing packages:

make build-essential quilt dh-autoreconf debhelper bzip2 pkg-config gcc[0m

This program will install the OFED package on your machine.

Note that all other Mellanox, OEM, OFED, RDMA or Distribution IB packages will be removed.

Those packages are removed due to conflicts with OFED, do not reinstall them.

Installing new packages

Building DEB for ofed-scripts-5.0 (ofed-scripts)…

Running /usr/bin/dpkg-buildpackage -us -uc

Building DEB for mlnx-ofed-kernel-utils-5.0 (mlnx-ofed-kernel)…

-W- --with-mlx5-ipsec is enabled

Running /usr/bin/dpkg-buildpackage -us -uc

[31mFailed to build mlnx-ofed-kernel DEB[0m

Collecting debug info…

[31mSee /tmp/MLNX_OFED_LINUX-5.0-2.1.8.0-4.15.0/mlnx_iso.61958_logs/OFED.62161.logs/mlnx-ofed-kernel.debbuild.log[0m

And message from mlnx-ofed-kernel.debbuild.log is attached below

Thanks for your help😁

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

From build logs,

  • lsb_release -a: No LSB modules are available.

Distributor ID: Ubuntu

Description: Ubuntu 18.04.3 LTS

Release: 18.04

Codename: bionic

As releasenote show this version ofed just support ubuntu18.04 not 18.04.3

https://docs.mellanox.com/display/OFEDDEV10/General+Support+in+MLNX_OFED#GeneralSupportinMLNX_OFED-MLNX_OFEDSupportedOperatingSystems