Ubuntu: DKMS build failing without meaningful error


I'm trying to enable a kernel module I've got from a device vendor to work with DKMS. I can successfully build the module and manually install and enable it. But when using DKMS a get an error that doesn't help me in any way:

$ sudo dkms build -m biokernbase -v    Kernel preparation unnecessary for this kernel.  Skipping...    Building module:  cleaning build area....  make KERNELRELEASE=3.13.0-123-generic all KVERSION=3.13.0-123-generic DKMS=y  ....  .ko failed for: 3.13.0-123-generic (x86_64)  Consult the make.log in the build directory  /var/lib/dkms/biokernbase/ for more information.  


DKMS make.log for biokernbase- for kernel 3.13.0-123-generic (x86_64)  Wed Dec 13 17:22:51 CET 2017  make -C /lib/modules/3.13.0-123-generic/build M=/var/lib/dkms/biokernbase/ modules  make[1]: Entering directory `/usr/src/linux-headers-3.13.0-123-generic'    CC [M]  /var/lib/dkms/biokernbase/    CC [M]  /var/lib/dkms/biokernbase/    CC [M]  /var/lib/dkms/biokernbase/    CC [M]  /var/lib/dkms/biokernbase/    CC [M]  /var/lib/dkms/biokernbase/    CC [M]  /var/lib/dkms/biokernbase/    LD [M]  /var/lib/dkms/biokernbase/    Building modules, stage 2.    MODPOST 1 modules    CC      /var/lib/dkms/biokernbase/    LD [M]  /var/lib/dkms/biokernbase/  make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-123-generic'  


PACKAGE_NAME="biokernbase"  PACKAGE_VERSION=""  CLEAN="make clean DKMS=y"  MAKE[0]="make all KVERSION=$kernelver DKMS=y"  BUILT_MODULE_NAME[0]="biokernbase"  DEST_MODULE_LOCATION[0]="/kernel/drivers/misc"  AUTOINSTALL="yes"  


DRV_NAME := biokernbase  DRV_PATH := daqnavi  KVERSION := $(shell uname -r)  KDIR     := /lib/modules/$(KVERSION)/build  BASE_DIR := /usr/lib/daqnavi    obj-m := $(DRV_NAME).o  $(DRV_NAME)-objs := main.o event.o usbreader.o memory.o misc.o isa.o    EXTRA_CFLAGS += -I$(BASE_DIR)/include -I$(BASE_DIR)/include/hw -I$(BASE_DIR)/include/linux  SYMBOL_PATH = $(BASE_DIR)/modules    all:      $(MAKE) -C $(KDIR) M=$(PWD) modules    clean:      $(MAKE) -C $(KDIR) M=$(PWD) clean      rm -f *.o *~ .depend .*.cmd *.ko *.mod.c .tmp_versions modules.order Module.symvers  

Update 1: kernel compatibility

I'm currently on Ubuntu 14.04.5 LTS with kernel 3.13.0-123-generic.

The vendor's documentation states compatibility with Ubuntu 12.04/14.04/15.10, kernel version 3.2/3.13/4.2.

When I manually copy the biokernbase.ko built by dkms to /lib/modules/3.13.0-123-generic/kernel/drivers/misc/, the kernel module seems to be loaded successfully:

$ sudo modprobe biokernbase; echo $?  0  

Any ideas or hints are highly appreciated.


Remove the manually copied biokernbase.ko from /lib/modules/3.13.0-123-generic/kernel/drivers/misc/.

Edit dkms.conf like this... (keep the original as a .bak file)...

PACKAGE_NAME="biokernbase"  PACKAGE_VERSION=""  CLEAN="make clean"  MAKE[0]="'make' all KVER=${kernelver}"  BUILT_MODULE_NAME[0]="biokernbase"  DEST_MODULE_LOCATION[0]="/updates/dkms"  AUTOINSTALL="yes"  

Perform a sudo dkms build again and see if this fixes the problem.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »