I am trying to do a test install of the MLNX_EN drivers and keep running into the same error. error: unknown type name ‘uuid_le’ uuid_le uuid
OS: Ubuntu 22.04 and Ubuntu 24.04, both as guest VM
I do not have any Infiniband hardware installed yet.
I installed the public repo for mellanox_mlnx_en
I added the gpg for Nvidia
sudo apt update
sudo apt install mlnx-en-eth-only
Building module:
Cleaning build area...(bad exit status: 2)
./scripts/mlnx_en_patch.sh --kernel 6.6.0-14-generic --kernel-sources /lib/modules/6.6.0-14-generic/build -j2 && make -j2..........................................................................................................................................................................................(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.6.0-14-generic (x86_64)
Consult /var/lib/dkms/mlnx-en/5.8/build/make.log for more information.
Processing triggers for man-db (2.12.0-3) ...
Processing triggers for libc-bin (2.38-3ubuntu1) ...
make.log
In file included from include/linux/pci.h:27,
from /var/lib/dkms/mlnx-en/5.8/build/include/linux/pci.h:7,
from /var/lib/dkms/mlnx-en/5.8/build/compat/pci.c:2:
/var/lib/dkms/mlnx-en/5.8/build/include/linux/mod_devicetable.h:725:9: error: unknown type name ‘uuid_le’
725 | uuid_le uuid;
| ^~~~~~~
CC [M] /var/lib/dkms/mlnx-en/5.8/build/compat/mmu_notifier.o
make[4]: *** [scripts/Makefile.build:251: /var/lib/dkms/mlnx-en/5.8/build/compat/pci.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:488: /var/lib/dkms/mlnx-en/5.8/build/compat] Error 2
make[2]: *** [/usr/src/linux-headers-6.6.0-14-generic/Makefile:1917: /var/lib/dkms/mlnx-en/5.8/build] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.6.0-14-generic'
make: *** [makefile:139: kernel] Error 2
(END)
The above is the output from Ubuntu 24.04 with kernel 6.6, but Ubuntu 22.04 with the earlier 6.5 kernel produces the same results.
In file included from include/linux/pci.h:27,
from /var/lib/dkms/mlnx-en/5.8/build/include/linux/pci.h:7,
from /var/lib/dkms/mlnx-en/5.8/build/compat/pci.c:2:
/var/lib/dkms/mlnx-en/5.8/build/include/linux/mod_devicetable.h:725:9: error: unknown type name ‘uuid_le’
725 | uuid_le uuid;
| ^~~~~~~
CC [M] /var/lib/dkms/mlnx-en/5.8/build/compat/mmu_notifier.o
make[4]: *** [scripts/Makefile.build:251: /var/lib/dkms/mlnx-en/5.8/build/compat/pci.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:488: /var/lib/dkms/mlnx-en/5.8/build/compat] Error 2
make[2]: *** [/usr/src/linux-headers-6.5.0-15-generic/Makefile:2037: /var/lib/dkms/mlnx-en/5.8/build] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.5.0-15-generic'
make: *** [makefile:139: kernel] Error 2
(END)
Am I missing a package? I’ve tried installing uuid and uuid-dev, but get the same results. Is it because there is no Nvidia/Mellanox hardware present? Is it because I’m doing it in a VM?