nvidia-dkms-390 fails to build on unstable / 5.10

Bug #1908099 reported by Andrea Righi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-390 (Ubuntu)
Won't Fix
Undecided
Unassigned
Hirsute
Won't Fix
Undecided
Unassigned

Bug Description

[Impact]

nvidia-graphics-drivers-390 fails to build against linux 5.10:

ERROR (dkms apport): kernel package linux-headers-5.10.0-6-generic is not supported
Error! Bad return status for module build on kernel: 5.10.0-6-generic (x86_64)
Consult /var/lib/dkms/nvidia/390.138/build/make.log for more information.
dpkg: error processing package nvidia-dkms-390 (--configure):
 installed nvidia-dkms-390 package post-installation script subprocess returned error exit status 10
Processing triggers for initramfs-tools (0.137ubuntu12) ...
update-initramfs: Generating /boot/initrd.img-5.10.0-6-generic
Errors were encountered while processing:
 nvidia-dkms-390
E: Sub-process /usr/bin/dpkg returned an error code (1)

[Test case]

sudo apt install nvidia-dkms-390

[Fix]

Fix build errors adding the proper #ifdef to support the new 5.10 includes, function prototypes and data structs.

[Regression potential]

All the new code is conditional (#ifdef) and it's applied only with 5.10, so there is no risk to break the other kernels (5.8). Moreover, it's worth considering that hirsute should move soon to 5.10.

Tags: patch
Revision history for this message
Andrea Righi (arighi) wrote :

make.log in attach.

Revision history for this message
Andrea Righi (arighi) wrote :

debdiff that fixes the 5.10 build errors reported in attach.

tags: added: patch
Revision history for this message
Andrea Righi (arighi) wrote :

New debdiff that prevents building UVM w/ Linux 5.10 (thanks @albertomilone) and with a refreshed version of buildfix_kernel_5.10.patch that should prevent a potential memory leak due to the missing .gem_free_object in 5.10.

Revision history for this message
Andrea Righi (arighi) wrote :

Sorry, I posted the wrong file in comment #3, this is the right one.

Changed in nvidia-graphics-drivers-390 (Ubuntu):
status: New → Won't Fix
Changed in nvidia-graphics-drivers-390 (Ubuntu Hirsute):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.