MHVTL compilation issues on Alma9
When installing on CS8 I have the following compilation error:
make -C /lib/modules/4.18.0-408.el8.x86_64/build M=/usr/src/mhvtl-1.7.0 modules
make[1]: Entering directory '/usr/src/kernels/4.18.0-408.el8.x86_64'
CC [M] /usr/src/mhvtl-1.7.0/mhvtl.o
In file included from /usr/src/mhvtl-1.7.0/mhvtl.c:95:
/usr/src/mhvtl-1.7.0/backport.h:63:12: error: static declaration of ‘sysfs_emit’ follows non-static declaration
static int sysfs_emit(char *buf, const char *fmt, ...)
^~~~~~~~~~
In file included from ./include/linux/kobject.h:20,
from ./include/linux/module.h:17,
from /usr/src/mhvtl-1.7.0/mhvtl.c:45:
./include/linux/sysfs.h:336:5: note: previous declaration of ‘sysfs_emit’ was here
int sysfs_emit(char *buf, const char *fmt, ...);
^~~~~~~~~~
make[2]: *** [scripts/Makefile.build:322: /usr/src/mhvtl-1.7.0/mhvtl.o] Error 1
make[1]: *** [Makefile:1577: _module_/usr/src/mhvtl-1.7.0] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.18.0-408.el8.x86_64'
make: *** [Makefile:26: default] Error 2
Looks like CS8 kernel includes patches from kernel 5 that leads to incompatible definition of sysfs_emit
.
We may need to provide a series of patches for this kind of issues.
For now I am just creating a branch for now to rebuild the rpm with the changes I need for a CS8 minikube runner.
New target
There is no point to waste time on CS8 or CS9: I went straight to Alma 9.
As Alma 9 is running kernel 5.14 the build process is based on the latest mhvtl master branch commit 4f36ea7f8cc6a58ba1af8ba5596bc8fd24df2452.
Edited by Julien Leduc