Bug 1689592

Summary: Kernel compiled with gcc version lower than that of gcc package (now on F28)
Product: [Fedora] Fedora Reporter: Michael Riss <Michael.Riss>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 28CC: airlied, bskeggs, hdegoede, ichavero, itamar, jarodwilson, jeremy, jglisse, john.j5live, jonathan, josef, kernel-maint, labbott, linville, mchehab, mjg59, steved
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-18 17:26:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Kernel logs as requested in Point 7. none

Description Michael Riss 2019-03-16 20:57:46 UTC
Created attachment 1544880 [details]
Kernel logs as requested in Point 7.

1. Please describe the problem:

The current kernel 4.20.15-100.fc28.x86_64 has been compiled with an older
compiler (gcc 8.2.1) than the currently installed compiler on the system (gcc 8.3.1). This causes problems when compiling custom kernel modules as then kernel and kernel modules are compiled with different compiler versions. This is discouraged or even blocked. In my case the nvidia dkms module refuses to compile.
I suggest to recompile the kernel with the new compiler and ship it as a new rpm analog to https://bugzilla.redhat.com/show_bug.cgi?id=1684833.


2. What is the Version-Release number of the kernel:

4.20.15-100.fc28.x86_64


3. Did it work previously in Fedora? If so, what kernel version did the issue
   *first* appear?  Old kernels are available for download at
   https://koji.fedoraproject.org/koji/packageinfo?packageID=8 :

Yes, as long as the kernel is compiled with the same compiler that is installed on the system, it works. The problem appeared rather with the rpm that contained the new compiler version than with a specific kernel rpm.

4. Can you reproduce this issue? If so, please provide the steps to reproduce
   the issue below:

Install 
- kernel 4.20.15-100.fc28.x86_64
- gcc-8.3.1-2.fc28

and then try to install NVIDIA-Linux-x86_64-418.43.run selecting dkms kernel driver installation in the installer.
It will fail with the error message in 
/var/lib/dkms/nvidia/418.43/build/make.log
pointing to the version mismatch.


5. Does this problem occur with the latest Rawhide kernel? To install the
   Rawhide kernel, run ``sudo dnf install fedora-repos-rawhide`` followed by
   ``sudo dnf update --enablerepo=rawhide kernel``:

I didn't test, as this is not really a kernel problem and rather a kernel/compiler interaction problem. Also, this problem is a repetition of 
https://bugzilla.redhat.com/show_bug.cgi?id=1684833
just now on Fedora 28 instead of Fedora 29, and back then recompiling the 
kernel solved the problem.


6. Are you running any modules that not shipped with directly Fedora's kernel?:

Yes, in this case the problem arises when compiling the nvidia kernel driver
(418.43). But it may very well also affect other 3rd party (dkms) kernel drivers.


7. Please attach the kernel logs. You can get the complete kernel log
   for a boot with ``journalctl --no-hostname -k > dmesg.txt``. If the
   issue occurred on a previous boot, use the journalctl ``-b`` flag.

I'm not sure that this kernel log will add valuable information, but here you go.

Comment 1 Laura Abbott 2019-03-18 17:26:43 UTC

*** This bug has been marked as a duplicate of bug 1684833 ***