Public bug reported:

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

** Affects: dkms (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1008805

Title:
  dkms uses wrong gcc version

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/1008805/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to