Error building MLNX_OFED (CentOS7 w/ Oracle kernel)

Hello! I’m trying to build Mellanox OFED and got a lot of error regarding ‘ETHTOOL_LINK_MODE_200000baseKR4_Full_BIT’ undeclared

I attached the log

My kernel is 4.14.35-2025.401.4.el7uek.x86_64

OS Release is:

NAME=“CentOS Linux”

VERSION=“7 (Core)”

ID=“centos”

ID_LIKE=“rhel fedora”

VERSION_ID=“7”

PRETTY_NAME=“CentOS Linux 7 (Core)”

ANSI_COLOR=“0;31”

CPE_NAME=“cpe:/o:centos:centos:7”

HOME_URL=“https://www.centos.org/

BUG_REPORT_URL=“https://bugs.centos.org/

CENTOS_MANTISBT_PROJECT=“CentOS-7”

CENTOS_MANTISBT_PROJECT_VERSION=“7”

REDHAT_SUPPORT_PRODUCT=“centos”

REDHAT_SUPPORT_PRODUCT_VERSION=“7”

My hardware is ConnectX-3 EN

I tried both MLNX_OFED versions mlnx-en-4.9-0.1.7.0-ol7.8-x86_64 and

mlnx-en-4.9-0.1.7.0-rhel7.8-x86_64

Is there any way to fix this?

mlnx-ofa_kernel-4.9.rpmbuild.log (458 KB)

Tried to build on Oracle Linux 7.8 with the same kernel - got the same error

Hello Dmitry,

Thank you for posting your question on the Mellanox Community.

The version of the kernel you are using is not supported. For Oracle Linux please use the version of the kernel that is shipped with the OS. In the case of Oracle Linux 7.8: 4.14.35-1902.300.11.el7uek.x86_64

For example I recently tested with Oracle Linux 7.7 and the default kernel of 4.14.35-1902.3.2.el7uek.x86_64 and the Mellanox OFED installed as expected.

You can find a list of supported OS and kernel versions here: https://docs.mellanox.com/display/OFEDv490170/General+Support+in+MLNX_OFED

Thanks and regards,

Mellanox Technical Support