I download source from: https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable/+/linux-4.8.y/drivers/gpu/drm/bochs into /usr/src/bochs-drm-4.8.0 I run: dkms build -m bochs-drm -v 4.8.0 Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area.... make KERNELRELEASE=4.8.0-26-generic -C /lib/modules/4.8.0-26-generic/build M=/var/lib/dkms/bochs-drm/4.8.0/build.... Error! Build of bochs-drm.ko failed for: 4.8.0-26-generic (x86_64) Consult the make.log in the build directory /var/lib/dkms/bochs-drm/4.8.0/build/ for more information in make.log: DKMS make.log for bochs-drm-4.8.0 for kernel 4.8.0-26-generic (x86_64) Thu Nov 3 11:27:20 CET 2016 make: Entering directory '/usr/src/linux-headers-4.8.0-26-generic' LD /var/lib/dkms/bochs-drm/4.8.0/build/built-in.o Building modules, stage 2. MODPOST 0 modules make: Leaving directory '/usr/src/linux-headers-4.8.0-26-generic' in dkms.conf: PACKAGE_NAME="bochs-drm" PACKAGE_VERSION="4.8.0" BUILT_MODULE_NAME[0]="bochs-drm" DEST_MODULE_LOCATION[0]="/kernel/drivers/gpu/drm/bochs/" AUTOINSTALL="yes"