On 25/09/2019 10:30, Ralf Aumüller wrote:
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@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?
Well, if you use that kernel, that means you're on Power9 variant, and that architecture doesn't exist anymore upstream (so no RHEL 7.7 for Power9). As almost all packages are just ppc64le (which still exist upstream), the decision was to still provide 7.7.1908 for Power9 users, but using the kernel from CentOS 8, rebuilt for CentOS 7. (same is also true for aarch64)
For that kernel to be built, we had to use newer gcc, that you can find/use through devtoolset-8 : http://mirror.centos.org/altarch/7/sclo/ppc64le/rh/devtoolset-8/
Curious : which kind of machine do you have that has both a Power9 and nvidia ? that seems to *not* be an IBM node, but a kind of openpower workstation ?
PS : worth knowing that ppc64le arch itself (supporting up to Power8) is still using the standard .el7 rebuilt kernel.
PS2 : worth creating a bug report on https://bugs.centos.org for easier tracking and also indexing, so that other people in your situation would follow the bug report (index by crawlers) and eventually discussion can happen there.