Workaround is proposed here: https://forums.developer.nvidia.com/t/objtool-naked-return-found-in-mitigation-rethunk-build-with-pre-compiled-blobs-on-kernel-6-19/360610
Workaround Adding the following to kernel-open/Kbuild and kernel/Kbuild skips objtool on composite module objects containing the blobs: $(obj)/nvidia.o: private objtool := true $(obj)/nvidia-modeset.o: private objtool := true -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2141316 Title: Nvidia-dkms fails to build with kernel 6.19: 'naked' return found in MITIGATION_RETHUNK build To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-580/+bug/2141316/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
