Compiler version check failed on kernel 4.20.13-200 module build; how can I retry kernel update?
I did an update to Fedora 29 and dkms failed to create the nvidia module due to Compiler version check failed. I was able to boot into graphical environment with kernel 4.20.10-200. Can I back out the 4.20.13-200 kernel update to try again later?
My system gcc --version returns 8.3.1 so I guess the updated kernel was compiled with 8.2.1
3 Error! Bad return status for module build on kernel: 4.20.13-200.fc29.x86_64 (x86_64)
4 Consult /var/lib/dkms/nvidia/415.27/build/make.log for more information.
[root@frankenputer log]# cat /var/lib/dkms/nvidia/415.27/build/make.log
DKMS make.log for nvidia-415.27 for kernel 4.20.13-200.fc29.x86_64 (x86_64)
Thu Mar 7 03:45:44 EST 2019
make[1]: Entering directory '/usr/src/kernels/4.20.13-200.fc29.x86_64'
make[2]: Entering directory '/usr/src/kernels/4.20.13-200.fc29.x86_64'
SYMLINK /var/lib/dkms/nvidia/415.27/build/nvidia/nv-kernel.o
SYMLINK /var/lib/dkms/nvidia/415.27/build/nvidia-modeset/nv-modeset-kernel.o
Compiler version check failed:
The major and minor number of the compiler used to compile the kernel:
gcc version 8.2.1 20181215 (Red Hat 8.2.1-6) (GCC)
does not match the compiler used here:
cc (GCC) 8.3.1 20190223 (Red Hat 8.3.1-2) Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
It is recommended to set the CC environment variable to the compiler that was used to compile the kernel.
The compiler version check can be disabled by setting the IGNORE_CC_MISMATCH environment variable to "1". However, mixing compiler versions between the kernel and kernel modules can result in subtle bugs that are difficult to diagnose.
*** Failed CC version check. Bailing out! ***
make[3]: *** [/var/lib/dkms/nvidia/415.27/build/Kbuild:181: cc_version_check] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/src/kernels/4.20.13-200.fc29.x86_64/Makefile:1566: _module_/var/lib/dkms/nvidia/415.27/build] Error 2
make[2]: Leaving directory '/usr/src/kernels/4.20.13-200.fc29.x86_64'
make[1]: *** [Makefile:152: sub-make] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.20.13-200.fc29.x86_64'
make: *** [Makefile:79: modules] Error 2