A new rt kernel, such as 5.10.140-rt73, tried to be compiled from source code. At the compile stage, I meet a compile error, while nvidia-dkms can be installed on current os (kernel 5.15.0-48-generic).
The compilation error says:
Building module:
cleaning build area…(bad exit status: 2)
unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 ‘make’ -j16 NV_EXCLUDE_BUILD_MODULES=‘’ KERNEL_UNAME=5.10.140-rt73 IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/5.10.140-rt73/build LD=/usr/bin/ld.bfd modules…(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-5.10.140-rt73 is not supported
Error! Bad return status for module build on kernel: 5.10.140-rt73 (x86_64)
Consult /var/lib/dkms/nvidia/510.85.02/build/make.log for more information.
And file /var/lib/dkms/nvidia/510.85.02/build/make.log reads:
Makefile:18: /Kbuild: No such file or directory
make[3]: *** No rule to make target ‘/Kbuild’. Stop.
Some my computer/os information:
Linux ascend-GE76-Raider-11UH 5.15.0-48-generic #54~20.04.1-Ubuntu SMP Thu Sep 1 16:17:26 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal
nvidia-dkms-510:
Installed: 510.85.02-0ubuntu0.20.04.1
Candidate: 510.85.02-0ubuntu0.20.04.1
Version table:
*** 510.85.02-0ubuntu0.20.04.1 500
500 Index of /ubuntu/ focal-updates/restricted amd64 Packages
500 Index of /ubuntu/ focal-security/restricted amd64 Packages
100 /var/lib/dpkg/status
nvidia-dkms-515:
Installed: (none)
Candidate: 515.76-0ubuntu0.20.04.1
Version table:
515.76-0ubuntu0.20.04.1 500
500 Index of /ubuntu/ focal-proposed/restricted amd64 Packages
515.65.01-0ubuntu0.20.04.1 500
500 Index of /ubuntu/ focal-updates/restricted amd64 Packages
500 Index of /ubuntu/ focal-security/restricted amd64 Packages
100 /var/lib/dpkg/status