Upgrading virtualbox with wrong gcc version

Bug #1420206 reported by flg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
virtualbox (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I have several versions of gcc installed (4.4, 4.7 and 4.9). gcc links to 4.4 (it's my default). When upgrading the kernel (with apt upgrade), the dependency system correctly computes that it has to rebuild the virtualbox driver (vboxdrv). But doing so, it uses gcc 4.4. The compiled driver is incompatible with the kernel (as the kernel is compiled with gcc 4.9).

I had this error in dmesg: vboxdrv: Unknown symbol mcount (err 0)

So the update process fails (and correctly indicates that it has failed).

To fix the issues, I did this:
sudo sudo update-alternatives --config gcc
and selected gcc-4.9.

sudo apt remove virtualbox
sudo apt install virtualbox

And the problem was solved.

I guess the compilation of vboxdrv must check if it uses the same version of gcc that was used to build the kernel.

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: virtualbox 4.3.18-dfsg-2ubuntu1
ProcVersionSignature: Ubuntu 3.16.0-30.40-generic 3.16.7-ckt3
Uname: Linux 3.16.0-30-generic x86_64
ApportVersion: 2.14.7-0ubuntu8.1
Architecture: amd64
CurrentDesktop: XFCE
Date: Tue Feb 10 10:55:36 2015
InstallationDate: Installed on 2012-04-16 (1029 days ago)
InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: virtualbox
UpgradeStatus: Upgraded to utopic on 2014-11-14 (87 days ago)

Revision history for this message
flg (flg) wrote :
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

this might have happened with some old compilers, I guess now this isn't the case anymore (at least I never experienced this with gcc >= 4.8)

Changed in virtualbox (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for virtualbox (Ubuntu) because there has been no activity for 60 days.]

Changed in virtualbox (Ubuntu):
status: Incomplete → Expired
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.