Problems in MLNX_OFED_LINUX-*** installation

Background

In order to use the BlueField 3, I need to install the “MLNX_OFED_LINUX-24.07-0.6.1.0-ubuntu22.04-x86_64”.

System Info

  • Operating System: Ubuntu 22.04.3 LTS
  • Kernel: Linux 6.8.0-40-generic
  • Architecture: x86-64

Issue

./mlnxofedinstall --add-kernel-support --with-nvmf
Note: This program will create MLNX_OFED_LINUX TGZ for ubuntu22.04 under /tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-6.8.0-40-generic directory.
See log file /tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-6.8.0-40-generic/mlnx_iso.397738_logs/mlnx_ofed_iso.397738.log

Checking if all needed packages are installed…
Building MLNX_OFED_LINUX DEBS . Please wait…

ERROR: Failed executing “MLNX_OFED_SRC-24.07-0.6.1.0/install.pl --tmpdir /tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-6.8.0-40-generic/mlnx_iso.397738_logs --kernel-only --kernel 6.8.0-40-generic --kernel-sources /lib/modules/6.8.0-40-generic/build --builddir /tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-6.8.0-40-generic/mlnx_iso.397738 --without-dkms --without-debug-symbols --build-only --distro ubuntu22.04”
ERROR: See /tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-6.8.0-40-generic/mlnx_iso.397738_logs/mlnx_ofed_iso.397738.log
Failed to build MLNX_OFED_LINUX for 6.8.0-40-generic

Log

expr: syntax error: unexpected argument ‘LINUX_COMPILER’
/tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-6.8.0-40-generic/mlnx_iso.397738/knem/knem-1.1.4.90mlnx3/configure: line 5688: [: -lt: unary operator expected

dpkg-shlibdeps: error: no dependency information found for /lib/libc.so.6 (used by debian/knem/opt/knem-1.1.4.90mlnx3/bin/knem_multifd_test)
Hint: check if the library actually comes from a package.
dh_shlibdeps: error: dpkg-shlibdeps -Tdebian/knem.substvars debian/knem/opt/knem-1.1.4.90mlnx3/bin/knem_status_test debian/knem/opt/knem-1.1.4.90mlnx3/bin/knem_notify_fd_test debian/knem/opt/knem-1.1.4.90mlnx3/bin/knem_access_rights_test debian/knem/opt/knem-1.1.4.90mlnx3/bin/knem_vect_test debian/knem/opt/knem-1.1.4.90mlnx3/bin/knem_region_cost debian/knem/opt/knem-1.1.4.90mlnx3/bin/knem_cost debian/knem/opt/knem-1.1.4.90mlnx3/bin/knem_loopback debian/knem/opt/knem-1.1.4.90mlnx3/bin/knem_pingpong debian/knem/opt/knem-1.1.4.90mlnx3/bin/knem_multifd_test debian/knem/opt/knem-1.1.4.90mlnx3/bin/knem_collectives returned exit code 2
dh_shlibdeps: error: Aborting due to earlier error
make: *** [debian/rules:53: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

Could you try to install it with a lower kernel version:5.15.0-25-generic with Ubuntu 22.04?

6.8.0-40-generic is not supported officially.

OK, thank you.
I used kernel 5.15.0-25-generic with Ubuntu 22.04, there are still similar errors as above.
After updating the softlink of /lib/libc.so.6, it installed normally.
Thank you~