dkms uses wrong gcc version

Bug #1008805 reported by Pavel Boldin
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
dkms (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

DKMS seems to use default (/usr/bin/gcc) GCC binary to build kernel modules, without checking either it pointing to version of gcc used to build kernel or not.

This can be problem when one uses update-alternatives to change default GCC path to another GCC version. This causes modules to be built with wrong gcc version, possibly crashing them and kernel itself (it was a case with bbswitch module on my system).

Not only DKMS uses wrong GCC version, system also allowed to insert modules compiled with wrong version of gcc.

davinchi@nirvana:~$ lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04
# actually I updated from 11.10 to 12.04
davinchi@nirvana:~$ sudo apt-cache policy dkms
dkms:
  Installed: 2.2.0.3-1ubuntu3
  Candidate: 2.2.0.3-1ubuntu3
  Version table:
 *** 2.2.0.3-1ubuntu3 0
        500 http://ru.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dkms (Ubuntu):
status: New → 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.