Page 1 of 1

fault compile driver

PostPosted: May 25th, '19, 09:30
by garcente
Hello:
I am trying to compile a driver and when I run make it gives me error: the file /lib/modules/4.14.119-desktop-1.mga6/build is missing; effectively, there is no build in that file.
How can it be corrected?
Thank you

Re: fault compile driver

PostPosted: May 25th, '19, 17:00
by ITA84
I'm not really an expert on kernel module compilation, but I can see that I do have that file for my kernel: it's supposed to be a symlink to the corresponding kernel headers folder in /usr/src. It's possible you need to install the kernel headers, from the package kernel-desktop-devel-4.14.119-1.mga6; with URPMI the command to install the package (as root) would be

Code: Select all
urpmi kernel-desktop-devel-4.14.119-1.mga6


If this package is already installed, please post the full output of the compiling, as there may be more hints to what's going wrong

Re: fault compile driver

PostPosted: May 25th, '19, 20:33
by garcente
Hello:
Thank you for answering: I already have that package installed; I guess you have to know what is the file that in mageia does the same role as that build, that is to say that creates the module. Maybe it's one that has another name.
Greetings.

Re: fault compile driver

PostPosted: May 26th, '19, 08:20
by ITA84
I've just checked that it's indeed the -devel package that creates the build symlink, so if you have it installed there's something wrong. You might want to uninstall and then reinstall that package, which should create the symlink as well.

If it still doesn't work, there may be something wrong, either with the package or with the compiling (you should post the full output as I've suggested).

Re: fault compile driver

PostPosted: May 27th, '19, 00:01
by doktor5000
Please show the output of
Code: Select all
rpm -qa|grep kernel|sort