Thank you for posting your query on our community. From the output provided, it is unclear as to why the installation failed. To further debug the issue, we would need to review the OFED installation log which is located under /tmp/MLNX_OFED_LINUX-XXX/mlnx_iso.xxx_logs/OFED.xxx.logs/mlnx-ofed-kernel.debbuild.log. This log will contain further information as to why the installation failed.
Please keep in mind that it may not be feasible to recompile the driver with a non-default kernel, if the kernel is significantly newer than the version of MLNX_OFED you intend to install.
You can also run the ‘mlnx_add_kernel_support.sh’ script manually, by pointing towards the correct kernel source. Hope this helps.
Hi, I encountered the same issue. I am trying to install the mlnx ofed 24.07 driver in kata container. The container has a customized kernel of linux 5.15 and I have set up IB card pass through by vfio.
Here is the log info:
CC [M] /tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-5.15.0/mlnx_iso.3790/mlnx-ofed-kernel/mlnx-ofed-kernel-24.07.OFED.24.07.0.6.1.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/vlan.o
CC [M] /tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-5.15.0/mlnx_iso.3790/mlnx-ofed-kernel/mlnx-ofed-kernel-24.07.OFED.24.07.0.6.1.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/vlan_mangle.o
CC [M] /tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-5.15.0/mlnx_iso.3790/mlnx-ofed-kernel/mlnx-ofed-kernel-24.07.OFED.24.07.0.6.1.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/mpls.o
CC [M] /tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-5.15.0/mlnx_iso.3790/mlnx-ofed-kernel/mlnx-ofed-kernel-24.07.OFED.24.07.0.6.1.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/mirred.o
/tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-5.15.0/mlnx_iso.3790/mlnx-ofed-kernel/mlnx-ofed-kernel-24.07.OFED.24.07.0.6.1.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act_stats.c: In function ‘mlx5e_tc_act_stats_fill_stats’:
/tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-5.15.0/mlnx_iso.3790/mlnx-ofed-kernel/mlnx-ofed-kernel-24.07.OFED.24.07.0.6.1.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act_stats.c:213:3: error: implicit declaration of function ‘tcf_action_update_stats’ [-Werror=implicit-function-declaration]
213 | tcf_action_update_stats(a, bytes - item->lastbytes, pkts - item->lastpackets,
| ^~~~~~~~~~~~~~~~~~~~~~~
CC [M] /tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-5.15.0/mlnx_iso.3790/mlnx-ofed-kernel/mlnx-ofed-kernel-24.07.OFED.24.07.0.6.1.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/mirred_nic.o
cc1: some warnings being treated as errors
make[5]: *** [scripts/Makefile.build:278: /tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-5.15.0/mlnx_iso.3790/mlnx-ofed-kernel/mlnx-ofed-kernel-24.07.OFED.24.07.0.6.1.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act_stats.o] Error 1
make[5]: *** Waiting for unfinished jobs…
make[4]: *** [scripts/Makefile.build:540: /tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-5.15.0/mlnx_iso.3790/mlnx-ofed-kernel/mlnx-ofed-kernel-24.07.OFED.24.07.0.6.1.1/drivers/net/ethernet/mellanox/mlx5/core] Error 2
make[3]: *** [Makefile:1868: /tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-5.15.0/mlnx_iso.3790/mlnx-ofed-kernel/mlnx-ofed-kernel-24.07.OFED.24.07.0.6.1.1] Error 2
make[3]: Leaving directory ‘/usr/src/linux-headers-5.15.0’
make[2]: *** [makefile:165: kernel] Error 2
make[2]: Leaving directory ‘/tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-5.15.0/mlnx_iso.3790/mlnx-ofed-kernel/mlnx-ofed-kernel-24.07.OFED.24.07.0.6.1.1’
make[1]: *** [debian/rules:79: override_dh_auto_build] Error 2
make[1]: Leaving directory ‘/tmp/MLNX_OFED_LINUX-24.07-0.6.1.0-5.15.0/mlnx_iso.3790/mlnx-ofed-kernel/mlnx-ofed-kernel-24.07.OFED.24.07.0.6.1.1’
make: *** [debian/rules:59: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2