Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
3
-
9223372036854775807
Description
For build step, OFED detection is based on header path detection from the locally installed packages.
Building with multiple OFED headers installed (for different kernels by example) is broken since v2_15_63-60-g0e9708016b (and I don't see how that could have ever worked).
For example:
- Detection for mlnx-ofed-kernel-dkms package on Ubuntu was:
/usr/src/ofa_kernel/ + $KERNEL_VERSION
But the actual path is
/usr/src/ofa_kernel/$ARCH/$KERNEL_VERSION
- Detection for mlnx-ofa_kernel-devel package on EL8 is
/usr/src/ofa_kernel/x86_64/4.18.0-477.27.1.el8.x86_64 + $KERNEL_VERSION
But this is already the right path, so appending the kernel version won't work.
This is working OK for now as there is a fallback step. But the fallback is only working if there is no multiple devel packages for MOFED being installed.
Nowadays, path should always be:
/usr/src/ofa_kernel/$ARCH/${LINUXRELEASE}
and we could clean all the detection complexity but I don't know how far we should be retro-compatible and I don't have access to all the supported platforms, to confirm that.