Unfortunately Nvidia 340.108 patched by ppa:kelebek333/nvidia-legacy does NOT compile on new kernel 5.18 (even if it is patched for that).
Here is terminal output during compilation:
Building module:
cleaning build area...
[ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; make -k module KERNDIR=/lib/modules/5.18-051800-generic IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/5.18-051800-generic/build LD=/usr/bin/ld.bfd; make -C uvm module KERNEL_UNAME=5.18-051800-generic KBUILD_EXTMOD=/var/lib/dkms/nvidia-340/340.108/build/uvm...................(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-5.18-051800-generic is not supported
Error! Bad return status for module build on kernel: 5.18-051800-generic (x86_64)
Consult /var/lib/dkms/nvidia-340/340.108/build/make.log for more information.
You may find a make.log file attached to find more details..
Just to inform you that updated patches for Nvidia 340.108 and kernel 5.18 are available here:
minimyth2/script/nvidia/nvidia-340.108/files at master · warpme/minimyth2 (github.com)
Patched Nvidia 340.108 drivers supplied by Butterfly (kelebek333) at https:/ /launchpad. net/~kelebek333 /+archive/ ubuntu/ nvidia- legacy used to work very well till kernel 5.17.x.
Unfortunately Nvidia 340.108 patched by ppa:kelebek333/ nvidia- legacy does NOT compile on new kernel 5.18 (even if it is patched for that).
Here is terminal output during compilation:
Building module: /lib/modules/ 5.18-051800- generic IGNORE_ XEN_PRESENCE= 1 IGNORE_ CC_MISMATCH= 1 SYSSRC= /lib/modules/ 5.18-051800- generic/ build LD=/usr/bin/ld.bfd; make -C uvm module KERNEL_ UNAME=5. 18-051800- generic KBUILD_ EXTMOD= /var/lib/ dkms/nvidia- 340/340. 108/build/ uvm.... ....... ....... .(bad exit status: 2) 5.18-051800- generic is not supported dkms/nvidia- 340/340. 108/build/ make.log for more information.
cleaning build area...
[ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; make -k module KERNDIR=
ERROR (dkms apport): kernel package linux-headers-
Error! Bad return status for module build on kernel: 5.18-051800-generic (x86_64)
Consult /var/lib/
You may find a make.log file attached to find more details..
Just to inform you that updated patches for Nvidia 340.108 and kernel 5.18 are available here: script/ nvidia/ nvidia- 340.108/ files at master · warpme/minimyth2 (github.com)
minimyth2/
The site https:/ /nvidia. if-not- true-then- false.com/ patcher/ NVIDIA- 340xx/ also updated the patches.
Thanks in advance to a willing developer who will endeavor to compile a new working driver...