Hi,
I am trying to install MLNX_OFED but failed.
Env:
# uname -a
Linux edci-rdma-server 5.3.0-51-generic #44~18.04.2-Ubuntu SMP Thu Apr 23 14:27:18 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Below are the messages I got from the terminal.
# ./mlnxofedinstall --add-kernel-support --with-nvmf
Note: This program will create MLNX_OFED_LINUX TGZ for ubuntu18.04 under /tmp/MLNX_OFED_LINUX-5.0-2.1.8.0-5.3.0-51-generic directory.
See log file /tmp/MLNX_OFED_LINUX-5.0-2.1.8.0-5.3.0-51-generic/mlnx_iso.5169_logs/mlnx_ofed_iso.5169.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-5.3.0-51-generic/mlnx_iso.5169_logs --kernel-only --kernel 5.3.0-51-generic --kernel-sources /lib/modules/5.3.0-51-generic/build --builddir /tmp/MLNX_OFED_LINUX-5.0-2.1.8.0-5.3.0-51-generic/mlnx_iso.5169 --without-dkms --without-debug-symbols --build-only --distro ubuntu18.04"
ERROR: See /tmp/MLNX_OFED_LINUX-5.0-2.1.8.0-5.3.0-51-generic/mlnx_iso.5169_logs/mlnx_ofed_iso.5169.log
Failed to build MLNX_OFED_LINUX for 5.3.0-51-generic
And here is the content of log file( /tmp/MLNX_OFED_LINUX-5.0-2.1.8.0-5.3.0-51-generic/mlnx_iso.5169_logs/mlnx_ofed_iso.5169.log):
# cat /tmp/MLNX_OFED_LINUX-5.0-2.1.8.0-5.3.0-51-generic/mlnx_iso.5169_logs/mlnx_ofed_iso.5169.log
Logs dir: /tmp/MLNX_OFED_LINUX-5.0-2.1.8.0-5.3.0-51-generic/mlnx_iso.5169_logs/OFED.5404.logs
General log file: /tmp/MLNX_OFED_LINUX-5.0-2.1.8.0-5.3.0-51-generic/mlnx_iso.5169_logs/OFED.5404.logs/general.log
Below is the list of OFED packages that you have chosen
(some may have been added by the installer due to package dependencies):
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…
One or more required packages for installing OFED-internal are missing.
Attempting to install the following missing packages:
bzip2 debhelper dh-autoreconf quilt gcc pkg-config build-essential make
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
Failed to build mlnx-ofed-kernel DEB
Collecting debug info…
See /tmp/MLNX_OFED_LINUX-5.0-2.1.8.0-5.3.0-51-generic/mlnx_iso.5169_logs/OFED.5404.logs/mlnx-ofed-kernel.debbuild.log
I also tried to install the packages that was mentioned in the log, and below are the messages I got. I found that the all the packages has already installed.
# apt-get install bzip2 debhelper dh-autoreconf quilt gcc pkg-config build-essential make
Reading package lists… Done
Building dependency tree
Reading state information… Done
build-essential is already the newest version (12.4ubuntu1).
dh-autoreconf is already the newest version (17).
make is already the newest version (4.1-9.1ubuntu1).
pkg-config is already the newest version (0.29.1-0ubuntu2).
quilt is already the newest version (0.63-8.2).
bzip2 is already the newest version (1.0.6-8.1ubuntu0.2).
debhelper is already the newest version (11.1.6ubuntu2).
gcc is already the newest version (4:7.4.0-1ubuntu2.3).
0 upgraded, 0 newly installed, 0 to remove and 164 not upgraded.