Public bug reported:

I'm trying to install OEM Linux kernel

nVidia driver is not installed, the error is

```
Error! Bad return status for module build on kernel: 5.14.0-1020-oem (x86_64)
Consult /var/lib/dkms/nvidia/460.91.03/build/make.log for more information.
```

I am attaching two log files showing compiler errors, emitted during
compilation of nVidia modules.

Output of the "apt install" follows

```
$ sudo apt install linux-oem-20.04d

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
linux-headers-5.14.0-1020-oem linux-headers-oem-20.04d 
linux-image-5.14.0-1020-oem linux-image-oem-20.04d linux-modules-5.14.0-1020-oem
linux-oem-5.14-headers-5.14.0-1020
Suggested packages:
fdutils linux-oem-5.14-tools linux-modules-extra-5.14.0-1020-oem
The following NEW packages will be installed:
linux-headers-5.14.0-1020-oem linux-headers-oem-20.04d 
linux-image-5.14.0-1020-oem linux-image-oem-20.04d 
linux-modules-5.14.0-1020-oem linux-oem-20.04d
linux-oem-5.14-headers-5.14.0-1020
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 82,3 MB of archives.
After this operation, 418 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://ru.archive.ubuntu.com/ubuntu focal-updates/main amd64 
linux-oem-5.14-headers-5.14.0-1020 all 5.14.0-1020.22 [11,8 MB]
Get:2 http://ru.archive.ubuntu.com/ubuntu focal-updates/main amd64 
linux-headers-5.14.0-1020-oem amd64 5.14.0-1020.22 [1 462 kB]
Get:3 http://ru.archive.ubuntu.com/ubuntu focal-updates/main amd64 
linux-headers-oem-20.04d amd64 5.14.0.1020.17 [2 444 B]
Get:4 http://ru.archive.ubuntu.com/ubuntu focal-updates/main amd64 
linux-modules-5.14.0-1020-oem amd64 5.14.0-1020.22 [60,3 MB]
Get:5 http://ru.archive.ubuntu.com/ubuntu focal-updates/main amd64 
linux-image-5.14.0-1020-oem amd64 5.14.0-1020.22 [8 753 kB]                     
                      
Get:6 http://ru.archive.ubuntu.com/ubuntu focal-updates/main amd64 
linux-image-oem-20.04d amd64 5.14.0.1020.17 [2 516 B]                           
                      
Get:7 http://ru.archive.ubuntu.com/ubuntu focal-updates/main amd64 
linux-oem-20.04d amd64 5.14.0.1020.17 [1 912 B]                                 
                      
Fetched 82,3 MB in 11s (7 318 kB/s)                                             
                                                                                
         
Selecting previously unselected package linux-oem-5.14-headers-5.14.0-1020.
(Reading database ... 1002229 files and directories currently installed.)
Preparing to unpack 
.../0-linux-oem-5.14-headers-5.14.0-1020_5.14.0-1020.22_all.deb ...
Unpacking linux-oem-5.14-headers-5.14.0-1020 (5.14.0-1020.22) ...
Selecting previously unselected package linux-headers-5.14.0-1020-oem.
Preparing to unpack 
.../1-linux-headers-5.14.0-1020-oem_5.14.0-1020.22_amd64.deb ...
Unpacking linux-headers-5.14.0-1020-oem (5.14.0-1020.22) ...
Selecting previously unselected package linux-headers-oem-20.04d.
Preparing to unpack .../2-linux-headers-oem-20.04d_5.14.0.1020.17_amd64.deb ...
Unpacking linux-headers-oem-20.04d (5.14.0.1020.17) ...
Selecting previously unselected package linux-modules-5.14.0-1020-oem.
Preparing to unpack 
.../3-linux-modules-5.14.0-1020-oem_5.14.0-1020.22_amd64.deb ...
Unpacking linux-modules-5.14.0-1020-oem (5.14.0-1020.22) ...
Selecting previously unselected package linux-image-5.14.0-1020-oem.
Preparing to unpack .../4-linux-image-5.14.0-1020-oem_5.14.0-1020.22_amd64.deb 
...
Unpacking linux-image-5.14.0-1020-oem (5.14.0-1020.22) ...
Selecting previously unselected package linux-image-oem-20.04d.
Preparing to unpack .../5-linux-image-oem-20.04d_5.14.0.1020.17_amd64.deb ...
Unpacking linux-image-oem-20.04d (5.14.0.1020.17) ...
Selecting previously unselected package linux-oem-20.04d.
Preparing to unpack .../6-linux-oem-20.04d_5.14.0.1020.17_amd64.deb ...
Unpacking linux-oem-20.04d (5.14.0.1020.17) ...
Setting up linux-oem-5.14-headers-5.14.0-1020 (5.14.0-1020.22) ...
Setting up linux-headers-5.14.0-1020-oem (5.14.0-1020.22) ...
/etc/kernel/header_postinst.d/dkms:
* dkms: running auto installation service for kernel 5.14.0-1020-oem

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
KVER=5.14.0-1020-oem make...
Signing module:
- 
/var/lib/dkms/fwts-efi-runtime-dkms/20.03.00/5.14.0-1020-oem/x86_64/module/efi_runtime.ko
Secure Boot not enabled on this system.
cleaning build area...

DKMS: build completed.

efi_runtime.ko:
Running module version sanity check.

Module has been obsoleted due to being included
in kernel 4.8.0.  We will avoid installing
for future kernels above 4.8.0.
You may override by specifying --force.

depmod...

DKMS: install completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j16 KERNELRELEASE=5.14.0-1020-oem -C src/ 
KERNELDIR=/lib/modules/5.14.0-1020-oem/build...
Signing module:
- /var/lib/dkms/hp-omen-wmi/0.9/5.14.0-1020-oem/x86_64/module/hp-wmi.ko
Secure Boot not enabled on this system.
cleaning build area...

DKMS: build completed.

hp-wmi.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.14.0-1020-oem/updates/dkms/

depmod...

DKMS: install completed.

Kernel preparation unnecessary for this kernel.  Skipping...
applying patch disable_fstack-clash-protection_fcf-protection.patch...patching 
file Kbuild
Hunk #1 succeeded at 82 (offset 11 lines).


Building module:
cleaning build area...
unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 
'make' -j16 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=5.14.0-1020-oem 
IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 
SYSSRC=/lib/modules/5.14.0-1020-oem/build LD=/usr/bin/ld.bfd modules......(bad 
exit status: 2)
Error! Bad return status for module build on kernel: 5.14.0-1020-oem (x86_64)
Consult /var/lib/dkms/nvidia/460.91.03/build/make.log for more information.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j16 KERNELRELEASE=5.14.0-1020-oem -C /lib/modules/5.14.0-1020-oem/build 
M=/var/lib/dkms/virtualbox/6.1.26/build.....
Signing module:
- /var/lib/dkms/virtualbox/6.1.26/5.14.0-1020-oem/x86_64/module/vboxnetadp.ko
- /var/lib/dkms/virtualbox/6.1.26/5.14.0-1020-oem/x86_64/module/vboxnetflt.ko
- /var/lib/dkms/virtualbox/6.1.26/5.14.0-1020-oem/x86_64/module/vboxdrv.ko
Secure Boot not enabled on this system.
cleaning build area...

DKMS: build completed.

vboxdrv.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.14.0-1020-oem/updates/dkms/

vboxnetadp.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.14.0-1020-oem/updates/dkms/

vboxnetflt.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.14.0-1020-oem/updates/dkms/

depmod...

DKMS: install completed.
...done.
Setting up linux-headers-oem-20.04d (5.14.0.1020.17) ...
Setting up linux-image-5.14.0-1020-oem (5.14.0-1020.22) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.13.0-27-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-5.13.0-27-generic
I: /boot/vmlinuz is now a symlink to vmlinuz-5.14.0-1020-oem
I: /boot/initrd.img is now a symlink to initrd.img-5.14.0-1020-oem
Setting up linux-modules-5.14.0-1020-oem (5.14.0-1020.22) ...
Setting up linux-image-oem-20.04d (5.14.0.1020.17) ...
Setting up linux-oem-20.04d (5.14.0.1020.17) ...
Processing triggers for linux-image-5.14.0-1020-oem (5.14.0-1020.22) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 5.14.0-1020-oem

Kernel preparation unnecessary for this kernel.  Skipping...
applying patch disable_fstack-clash-protection_fcf-protection.patch...patching 
file Kbuild
Hunk #1 succeeded at 82 (offset 11 lines).


Building module:
cleaning build area...
unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 
'make' -j16 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=5.14.0-1020-oem 
IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 
SYSSRC=/lib/modules/5.14.0-1020-oem/build LD=/usr/bin/ld.bfd modules.....(bad 
exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: 
'/var/crash/nvidia-dkms-460.0.crash'
Error! Bad return status for module build on kernel: 5.14.0-1020-oem (x86_64)
```

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: dkms nvidia

-- 
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/1958702

Title:
  nVidia driver version 460 doesn't build with kernel version 5.14

Status in linux package in Ubuntu:
  New

Bug description:
  I'm trying to install OEM Linux kernel

  nVidia driver is not installed, the error is

  ```
  Error! Bad return status for module build on kernel: 5.14.0-1020-oem (x86_64)
  Consult /var/lib/dkms/nvidia/460.91.03/build/make.log for more information.
  ```

  I am attaching two log files showing compiler errors, emitted during
  compilation of nVidia modules.

  Output of the "apt install" follows

  ```
  $ sudo apt install linux-oem-20.04d

  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  The following additional packages will be installed:
  linux-headers-5.14.0-1020-oem linux-headers-oem-20.04d 
linux-image-5.14.0-1020-oem linux-image-oem-20.04d linux-modules-5.14.0-1020-oem
  linux-oem-5.14-headers-5.14.0-1020
  Suggested packages:
  fdutils linux-oem-5.14-tools linux-modules-extra-5.14.0-1020-oem
  The following NEW packages will be installed:
  linux-headers-5.14.0-1020-oem linux-headers-oem-20.04d 
linux-image-5.14.0-1020-oem linux-image-oem-20.04d 
linux-modules-5.14.0-1020-oem linux-oem-20.04d
  linux-oem-5.14-headers-5.14.0-1020
  0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
  Need to get 82,3 MB of archives.
  After this operation, 418 MB of additional disk space will be used.
  Do you want to continue? [Y/n] 
  Get:1 http://ru.archive.ubuntu.com/ubuntu focal-updates/main amd64 
linux-oem-5.14-headers-5.14.0-1020 all 5.14.0-1020.22 [11,8 MB]
  Get:2 http://ru.archive.ubuntu.com/ubuntu focal-updates/main amd64 
linux-headers-5.14.0-1020-oem amd64 5.14.0-1020.22 [1 462 kB]
  Get:3 http://ru.archive.ubuntu.com/ubuntu focal-updates/main amd64 
linux-headers-oem-20.04d amd64 5.14.0.1020.17 [2 444 B]
  Get:4 http://ru.archive.ubuntu.com/ubuntu focal-updates/main amd64 
linux-modules-5.14.0-1020-oem amd64 5.14.0-1020.22 [60,3 MB]
  Get:5 http://ru.archive.ubuntu.com/ubuntu focal-updates/main amd64 
linux-image-5.14.0-1020-oem amd64 5.14.0-1020.22 [8 753 kB]                     
                      
  Get:6 http://ru.archive.ubuntu.com/ubuntu focal-updates/main amd64 
linux-image-oem-20.04d amd64 5.14.0.1020.17 [2 516 B]                           
                      
  Get:7 http://ru.archive.ubuntu.com/ubuntu focal-updates/main amd64 
linux-oem-20.04d amd64 5.14.0.1020.17 [1 912 B]                                 
                      
  Fetched 82,3 MB in 11s (7 318 kB/s)                                           
                                                                                
           
  Selecting previously unselected package linux-oem-5.14-headers-5.14.0-1020.
  (Reading database ... 1002229 files and directories currently installed.)
  Preparing to unpack 
.../0-linux-oem-5.14-headers-5.14.0-1020_5.14.0-1020.22_all.deb ...
  Unpacking linux-oem-5.14-headers-5.14.0-1020 (5.14.0-1020.22) ...
  Selecting previously unselected package linux-headers-5.14.0-1020-oem.
  Preparing to unpack 
.../1-linux-headers-5.14.0-1020-oem_5.14.0-1020.22_amd64.deb ...
  Unpacking linux-headers-5.14.0-1020-oem (5.14.0-1020.22) ...
  Selecting previously unselected package linux-headers-oem-20.04d.
  Preparing to unpack .../2-linux-headers-oem-20.04d_5.14.0.1020.17_amd64.deb 
...
  Unpacking linux-headers-oem-20.04d (5.14.0.1020.17) ...
  Selecting previously unselected package linux-modules-5.14.0-1020-oem.
  Preparing to unpack 
.../3-linux-modules-5.14.0-1020-oem_5.14.0-1020.22_amd64.deb ...
  Unpacking linux-modules-5.14.0-1020-oem (5.14.0-1020.22) ...
  Selecting previously unselected package linux-image-5.14.0-1020-oem.
  Preparing to unpack 
.../4-linux-image-5.14.0-1020-oem_5.14.0-1020.22_amd64.deb ...
  Unpacking linux-image-5.14.0-1020-oem (5.14.0-1020.22) ...
  Selecting previously unselected package linux-image-oem-20.04d.
  Preparing to unpack .../5-linux-image-oem-20.04d_5.14.0.1020.17_amd64.deb ...
  Unpacking linux-image-oem-20.04d (5.14.0.1020.17) ...
  Selecting previously unselected package linux-oem-20.04d.
  Preparing to unpack .../6-linux-oem-20.04d_5.14.0.1020.17_amd64.deb ...
  Unpacking linux-oem-20.04d (5.14.0.1020.17) ...
  Setting up linux-oem-5.14-headers-5.14.0-1020 (5.14.0-1020.22) ...
  Setting up linux-headers-5.14.0-1020-oem (5.14.0-1020.22) ...
  /etc/kernel/header_postinst.d/dkms:
  * dkms: running auto installation service for kernel 5.14.0-1020-oem

  Kernel preparation unnecessary for this kernel.  Skipping...

  Building module:
  cleaning build area...
  KVER=5.14.0-1020-oem make...
  Signing module:
  - 
/var/lib/dkms/fwts-efi-runtime-dkms/20.03.00/5.14.0-1020-oem/x86_64/module/efi_runtime.ko
  Secure Boot not enabled on this system.
  cleaning build area...

  DKMS: build completed.

  efi_runtime.ko:
  Running module version sanity check.

  Module has been obsoleted due to being included
  in kernel 4.8.0.  We will avoid installing
  for future kernels above 4.8.0.
  You may override by specifying --force.

  depmod...

  DKMS: install completed.

  Kernel preparation unnecessary for this kernel.  Skipping...

  Building module:
  cleaning build area...
  make -j16 KERNELRELEASE=5.14.0-1020-oem -C src/ 
KERNELDIR=/lib/modules/5.14.0-1020-oem/build...
  Signing module:
  - /var/lib/dkms/hp-omen-wmi/0.9/5.14.0-1020-oem/x86_64/module/hp-wmi.ko
  Secure Boot not enabled on this system.
  cleaning build area...

  DKMS: build completed.

  hp-wmi.ko:
  Running module version sanity check.
  - Original module
  - No original module exists within this kernel
  - Installation
  - Installing to /lib/modules/5.14.0-1020-oem/updates/dkms/

  depmod...

  DKMS: install completed.

  Kernel preparation unnecessary for this kernel.  Skipping...
  applying patch 
disable_fstack-clash-protection_fcf-protection.patch...patching file Kbuild
  Hunk #1 succeeded at 82 (offset 11 lines).

  
  Building module:
  cleaning build area...
  unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 
'make' -j16 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=5.14.0-1020-oem 
IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 
SYSSRC=/lib/modules/5.14.0-1020-oem/build LD=/usr/bin/ld.bfd modules......(bad 
exit status: 2)
  Error! Bad return status for module build on kernel: 5.14.0-1020-oem (x86_64)
  Consult /var/lib/dkms/nvidia/460.91.03/build/make.log for more information.

  Kernel preparation unnecessary for this kernel.  Skipping...

  Building module:
  cleaning build area...
  make -j16 KERNELRELEASE=5.14.0-1020-oem -C /lib/modules/5.14.0-1020-oem/build 
M=/var/lib/dkms/virtualbox/6.1.26/build.....
  Signing module:
  - /var/lib/dkms/virtualbox/6.1.26/5.14.0-1020-oem/x86_64/module/vboxnetadp.ko
  - /var/lib/dkms/virtualbox/6.1.26/5.14.0-1020-oem/x86_64/module/vboxnetflt.ko
  - /var/lib/dkms/virtualbox/6.1.26/5.14.0-1020-oem/x86_64/module/vboxdrv.ko
  Secure Boot not enabled on this system.
  cleaning build area...

  DKMS: build completed.

  vboxdrv.ko:
  Running module version sanity check.
  - Original module
  - No original module exists within this kernel
  - Installation
  - Installing to /lib/modules/5.14.0-1020-oem/updates/dkms/

  vboxnetadp.ko:
  Running module version sanity check.
  - Original module
  - No original module exists within this kernel
  - Installation
  - Installing to /lib/modules/5.14.0-1020-oem/updates/dkms/

  vboxnetflt.ko:
  Running module version sanity check.
  - Original module
  - No original module exists within this kernel
  - Installation
  - Installing to /lib/modules/5.14.0-1020-oem/updates/dkms/

  depmod...

  DKMS: install completed.
  ...done.
  Setting up linux-headers-oem-20.04d (5.14.0.1020.17) ...
  Setting up linux-image-5.14.0-1020-oem (5.14.0-1020.22) ...
  I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.13.0-27-generic
  I: /boot/initrd.img.old is now a symlink to initrd.img-5.13.0-27-generic
  I: /boot/vmlinuz is now a symlink to vmlinuz-5.14.0-1020-oem
  I: /boot/initrd.img is now a symlink to initrd.img-5.14.0-1020-oem
  Setting up linux-modules-5.14.0-1020-oem (5.14.0-1020.22) ...
  Setting up linux-image-oem-20.04d (5.14.0.1020.17) ...
  Setting up linux-oem-20.04d (5.14.0.1020.17) ...
  Processing triggers for linux-image-5.14.0-1020-oem (5.14.0-1020.22) ...
  /etc/kernel/postinst.d/dkms:
  * dkms: running auto installation service for kernel 5.14.0-1020-oem

  Kernel preparation unnecessary for this kernel.  Skipping...
  applying patch 
disable_fstack-clash-protection_fcf-protection.patch...patching file Kbuild
  Hunk #1 succeeded at 82 (offset 11 lines).

  
  Building module:
  cleaning build area...
  unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 
'make' -j16 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=5.14.0-1020-oem 
IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 
SYSSRC=/lib/modules/5.14.0-1020-oem/build LD=/usr/bin/ld.bfd modules.....(bad 
exit status: 2)
  ERROR: Cannot create report: [Errno 17] File exists: 
'/var/crash/nvidia-dkms-460.0.crash'
  Error! Bad return status for module build on kernel: 5.14.0-1020-oem (x86_64)
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1958702/+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

Reply via email to