Kbuild error when trying to compile Linux Kernel 5.1.0-rc6. I am able to get to the login screen but I am never able to log into the desktop. I tried recompiling the kernel and saw the following error in make.log file:
DKMS make.log for nvidia-384-384.130 for kernel 5.1.0-rc6+ (x86_64)
Mon Apr 29 23:57:48 PDT 2019
Makefile:19: /Kbuild: No such file or directory
make[3]: *** No rule to make target ‘/Kbuild’. Stop.
I found this error when trying to do sudo make modules_install install
ERROR (dkms apport): kernel package linux-headers-5.1.0-rc6+ is not supported
Error! Bad return status for module build on kernel: 5.1.0-rc6+ (x86_64)
Consult /var/lib/dkms/nvidia-384/384.130/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.1.0-rc6+ /boot/vmlinuz-5.1.0-rc6+
Here is my lspci output:
lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:01.1 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x8 Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d5)
00:1c.3 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 (rev d5)
00:1c.4 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #5 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM87 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation GM204M [GeForce GTX 970M] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GM204 High Definition Audio Controller (rev a1)
02:00.0 VGA compatible controller: NVIDIA Corporation GM204M [GeForce GTX 970M] (rev a1)
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411 PCI Express Card Reader (rev 01)
04:00.2 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0a)
05:00.0 Network controller: Intel Corporation Wireless 7260 (rev bb)
When I boot into my regular kernel 4.4.0-140-generic seems to work fine. I believe it is the nvidia driver that is causing the issue.