LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-19-2018, 06:31 AM   #1
Crounus
LQ Newbie
 
Registered: Jan 2012
Distribution: openSUSE 12.1
Posts: 5

Rep: Reputation: Disabled
dkms fails to build even the build process is successful?


Hi there,

I want to build a kernel module with the help of dkms. On the machine where the kernel module is going to be built everything which is needed is installed (kernel headers, build-essentials and dkms ofc). However, dkms fails to build the module but actually (if you look up the log file) it succeeded. A .ko file is created as well. The output of the dkms build command is the following:

Quote:
dkms build -m mbgtools-lx-dev -v 2017-02-17

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
'make'...........
Error! Build of mbgclock.ko failed for: 4.9.0-6-amd64 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/mbgtools-lx-dev/2017-02-17/build/ for more information.
the return code in this case is 7.

I'm now in that loop where I'm unable to install the driver with dkms (because it always want to rebuild the module) but the result is always the same: build process is successful but dkms yells that the process failed and cancels. The return code after the make process is 0.

You can find my dkms.conf for the kernel module on pastebin.org. I've also uploaded the make.log which is generated by dkms.

Thanks in advance
Crounus
 
Old 04-26-2018, 04:52 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,676

Rep: Reputation: 218Reputation: 218Reputation: 218
It seems that it has built correctly, but maybe there was an error later. Could you check all the log files for errors? For example, maybe the module didn't load.
 
  


Reply

Tags
compiling, dkms, kernel, module


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dkms don't auto build/install replica9000 Linux - Software 4 09-22-2016 04:16 AM
LXer: How to build a kernel module with DKMS on Linux LXer Syndicated Linux News 0 04-08-2016 06:32 AM
SBCL build from slack builds fails to build - failed contribs sb-bsd-sockets sunlight Slackware 3 11-07-2015 04:31 PM
self build rpm fails with missing dependencies on build host zhjim Linux - Software 1 09-24-2009 08:47 AM
LXer: Add an Auto-Incrementing Build-Number to Your Build Process LXer Syndicated Linux News 0 07-09-2008 01:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration