fault compile driver

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

fault compile driver

Postby garcente » May 25th, '19, 09:30

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
garcente
 
Posts: 4
Joined: Apr 12th, '14, 13:56

Re: fault compile driver

Postby ITA84 » May 25th, '19, 17:00

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
ITA84
 
Posts: 199
Joined: Mar 5th, '13, 18:15

Re: fault compile driver

Postby garcente » May 25th, '19, 20:33

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.
garcente
 
Posts: 4
Joined: Apr 12th, '14, 13:56

Re: fault compile driver

Postby ITA84 » May 26th, '19, 08:20

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).
ITA84
 
Posts: 199
Joined: Mar 5th, '13, 18:15

Re: fault compile driver

Postby doktor5000 » May 27th, '19, 00:01

Please show the output of
Code: Select all
rpm -qa|grep kernel|sort
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest