Ask Your Question

Compiler version check failed on kernel 4.20.13-200 module build; how can I retry kernel update?

asked 2019-03-07 09:28:17 -0500

jeffo gravatar image

updated 2019-03-07 11:00:17 -0500

hhlp gravatar image

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
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2019-03-08 06:52:36 -0500

jeffo gravatar image

sudo dnf remove kernel-core-4.20.13

edit flag offensive delete link more

answered 2019-03-10 14:54:52 -0500

loboedu gravatar image

I had the some issue with this new kernel. I use Nvidia 390.87 and by updating to the 4.20.13 kernel, the system wouldn't boot the graphical interface. So, I uninstalled and re-installed the driver just to come up with this very same message. Checking back again If-not-true-then-falseguide to Nvidia drivers installation ( ), I noticed that that driver (390.87) wasn't there anymore. So checking the Nvidia website for drivers ( ) I noticed, too, that there has been an update to the drivers' versions.

I recommed that you visit both these websites and get the apropriate driver for your hardware compatible with this kernel version.

Hope it helps!

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-03-07 09:28:17 -0500

Seen: 328 times

Last updated: Mar 10 '19