wrong gcc version for kernel prevents DKMS working

Bug #1866925 reported by David Hodgson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-7 (Ubuntu)
New
Undecided
Unassigned
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Fresh install of minimal LUbuntu 18.04, fully updated (with new kernel).

Install of NVIDIA graphics card drivers from NVIDIA script.

DKMS (needed for re-compile with new kernel versions) fails as the available gcc is 7.5.0 from 18.04 and the gcc used for compiling the kernel was 7.4.0 from 18.01.

The gcc for the running kernel is no longer available for installation.

This mismatch is the bug.

There are two alternative solutions:
1. ensure the gcc versions used to compile the available kernels are also available.
2. ensure the kernels are always compiled with the latest available gcc.

The former is probably a better solution as the latter may cause unnecessary kernel recompiles as the gcc versions change. The former may require multiple installed versions of gcc, one for each installed kernel version, which would need a method of picking the gcc version which matches the kernel.

It would also be useful if one of the meta-packages ensured that the installed gcc matches the installed kernel's compiler.

```
$ uname -a
Linux xxxxxx 5.3.0-40-generic #32~18.04.1-Ubuntu SMP Mon Feb 3 14:05:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
```
```
$ lsb_release -rd
Description: Ubuntu 18.04.4 LTS
Release: 18.04
```

... I'm sorry, but the DKMS make.log with the error has been deleted by a later re-run attempt for the install.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gcc 4:7.4.0-1ubuntu2.3
ProcVersionSignature: Ubuntu 5.3.0-40.32~18.04.1-generic 5.3.18
Uname: Linux 5.3.0-40-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.9
Architecture: amd64
Date: Tue Mar 10 22:40:51 2020
InstallationDate: Installed on 2020-03-10 (0 days ago)
InstallationMedia: Lubuntu 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203)
SourcePackage: gcc-defaults
UpgradeStatus: No upgrade log present (probably fresh install)
---
ProblemType: Bug
ApportVersion: 2.20.9-0ubuntu7.9
Architecture: amd64
DistroRelease: Ubuntu 18.04
InstallationDate: Installed on 2020-03-10 (1 days ago)
InstallationMedia: Lubuntu 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203)
NonfreeKernelModules: nvidia_modeset nvidia
Package: linux
PackageArchitecture: amd64
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 5.3.0-40.32~18.04.1-generic 5.3.18
Tags: bionic
Uname: Linux 5.3.0-40-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

_MarkForUpload: True

Revision history for this message
David Hodgson (jetojedno) wrote :
Revision history for this message
David Hodgson (jetojedno) wrote :

The NVIDIA driver compile script which caused the DKMS barf was: NVIDIA-Linux-x86_64-440.64.run
It's too large to upload.

Matthias Klose (doko)
affects: gcc-defaults (Ubuntu) → linux (Ubuntu)
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1866925

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: eoan
Revision history for this message
David Hodgson (jetojedno) wrote : Dependencies.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
David Hodgson (jetojedno) wrote : ProcCpuinfoMinimal.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.