I can build the mainline 4.20.3 kernel locally if I set "do_dkms_nvidia = false" in its 0001-base-packaging.patch.
Why would we even want to build the nvidia driver for recent kernels? Even the most up-to-date nvidia drivers rarely compile for -rc kernels, and ubuntu typically has an older version of the nvidia driver anyway (currently nvidia-390 from last August), so kernel build failure seems highly likely to occur if it relies on the nvidia driver building successfully. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1811721 Title: Mainline Kernel Builds Failing for > v4.20 for amd64 on kernel.ubuntu.com Status in linux package in Ubuntu: Confirmed Bug description: It appears that mainline kernel builds (on kernel.ubuntu.com) have been failing for amd64 since v4.20.1. Interestingly enough v4.20 was able to build successfully. Note: this also includes 5.0rc builds as well. You can see the build logs here: https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20.1/BUILD.LOG.amd64 https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20.2/BUILD.LOG.amd64 Looking at the build logs it appears that the kernel and all the in- tree modules build successfully, but the build fails when trying to build the proprietary nvidia kernel modules. With v4.20 building these modules does not appear in the log. Perhaps this build step was added more recently? Here are the relevant lines from the end of the build log for v4.20.2 (which I've also attached): ------------------------------------------------------------------------------------------------- 2019-01-10 03:38:12 (105 MB/s) - 'nvidia-kernel-source- 390_390.87-0ubuntu4_amd64.deb' saved [8433608/8433608] II: dkms-build downloading nvidia-390 (nvidia-dkms-390_390.87-0ubuntu4_amd64.deb) --2019-01-10 03:38:13-- http://us.archive.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-390/nvidia-dkms-390_390.87-0ubuntu4_amd64.deb Resolving us.archive.ubuntu.com (us.archive.ubuntu.com)... 91.189.91.26, 91.189.91.23, 2001:67c:1562::16, ... Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 27288 (27K) [application/x-debian-package] Saving to: 'nvidia-dkms-390_390.87-0ubuntu4_amd64.deb' 0K .......... .......... ...... 100% 9.46M=0.003s 2019-01-10 03:38:13 (9.46 MB/s) - 'nvidia-dkms- 390_390.87-0ubuntu4_amd64.deb' saved [27288/27288] linux:BuiltUsing=nvidia-kernel-source-390 (= 390.87-0ubuntu4), II: dkms-build building nvidia-390 Creating symlink /home/kernel/COD/linux/debian/build/build-generic/______________________________________________dkms/build/nvidia/390.87/source -> /home/kernel/COD/linux/debian/build/build-generic/______________________________________________dkms/source/nvidia-390.87 DKMS: add completed. applying patch buildfix_kernel_4.18.patch...patching file conftest.sh patching file nvidia-drm/nvidia-drm-connector.c patching file nvidia-drm/nvidia-drm-encoder.c patching file nvidia-drm/nvidia-drm-helper.h patching file nvidia-drm/nvidia-drm.Kbuild Building module: cleaning build area...(bad exit status: 2) unset ARCH; env NV_VERBOSE=1 'make' -j16 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=4.20.1-042001-generic IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/home/kernel/COD/linux/debian/build/build-generic/______________________________________________dkms/headers/linux-headers-4.20.1-042001-generic LD=/usr/bin/ld.bfd modules.....(bad exit status: 2) Error! Bad return status for module build on kernel: 4.20.1-042001-generic (x86_64) Consult /home/kernel/COD/linux/debian/build/build-generic/______________________________________________dkms/build/nvidia/390.87/build/make.log for more information. debian/scripts/dkms-build: line 121: /home/kernel/COD/linux/debian/build/build-generic/______________________________________________dkms/build/nvidia/390.87/4.20.1-042001-generic/*/log/make.log: No such file or directory make: *** [debian/rules.d/2-binary-arch.mk:201: install-generic] Error 1 Thanks! Rob To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1811721/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp