You are not logged in.
Hi all,
I have both linux and linux-lts kernels installed, linux-lts as fallback solution. During the last linux-lts update I saw this error:
...
==> dkms install nvidia/396.45 -k 4.14.60-1-lts
Error! Bad return status for module build on kernel: 4.14.60-1-lts (x86_64)
Consult /var/lib/dkms/nvidia/396.45/build/make.log for more information.
...and this the content of the make.log:
at /var/lib/dkms/nvidia/396.45/build/make.log
DKMS make.log for nvidia-396.45 for kernel 4.14.60-1-lts (x86_64)
Mon Aug 6 11:53:16 CEST 2018
make[1]: Entering directory '/usr/lib/modules/4.14.60-1-lts/build'
SYMLINK /var/lib/dkms/nvidia/396.45/build/nvidia/nv-kernel.o
SYMLINK /var/lib/dkms/nvidia/396.45/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.0 (GCC)
does not match the compiler used here:
cc (GCC) 8.1.1 20180531
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[2]: *** [/var/lib/dkms/nvidia/396.45/build/Kbuild:180: cc_version_check] Error 1
make[1]: *** [Makefile:1523: _module_/var/lib/dkms/nvidia/396.45/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/4.14.60-1-lts/build'
make: *** [Makefile:79: modules] Error 2Any ideas how can it be fixed?
Offline
"Wait" - the gcc version used to build the latest kernel is currently in testing, so either you've to add the testing repo or wait until it hits the core repo.
Offline
OK. Thanks for the quick response!
Offline