[CentOS] Update to Centos 7.7 / Arch ppc64le / Problem with nvidia driver

Wed Sep 25 08:30:08 UTC 2019
Ralf Aumüller <Ralf.Aumueller at informatik.uni-stuttgart.de>

Hello,

today I updated a CentOS 7.6 ppc64le machine to CentOS 7.7. After reboot to the 
new kernel (4.18.0-80.7.2.el7.ppc64le) dkms could not build the nvidia-module.

Error-message from dkms:

Compiler version check failed:

The major and minor number of the compiler used to
compile the kernel:

gcc version 8.3.1 20190311 (Red Hat 8.3.1-3) (GCC)

does not match the compiler used here:

cc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)


Output of /proc/version with new kernel running is:
Linux version 4.18.0-80.7.2.el7.ppc64le (mockbuild at ppc64le-01.bsys.centos.org) 
(gcc version 8.3.1 20190311 (Red Hat 8.3.1-3) (GCC)) #1 SMP Thu Sep 12 15:45:05 
UTC 2019

Problem seams to be:

The kernel was compiled with gcc-version 8.3.1 and installed is gcc 4.8.5. All 
previous kernels were compiled with gcc 4.8.5. See:

#cat /usr/src/kernels/*/include/generated/compile.h |grep LINUX_COMPILER
define LINUX_COMPILER "gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)"
define LINUX_COMPILER "gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)"
define LINUX_COMPILER "gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)"
define LINUX_COMPILER "gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)"
define LINUX_COMPILER "gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)"
define LINUX_COMPILER "gcc version 8.3.1 20190311 (Red Hat 8.3.1-3) (GCC)"
define LINUX_COMPILER "gcc version 8.3.1 20190311 (Red Hat 8.3.1-3) (GCC)"

Any comments?

Best regards,
Ralf