ccache causes DKMS builds to fail

Bug #444290 reported by urho
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dkms (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Binary package hint: virtualbox-ose

installation failed, this crash is related to this bug: https://bugs.launchpad.net/ubuntu/+source/make-dfsg/+bug/444289

ProblemType: Package
Architecture: i386
Date: Tue Oct 6 09:06:36 2009
DistroRelease: Ubuntu 9.10
ErrorMessage: subprocess installed post-installation script returned error exit status 10
Package: virtualbox-ose-source 3.0.6-dfsg-1ubuntu1
PackageArchitecture: all
ProcVersionSignature: Ubuntu 2.6.31-11.38-generic
SourcePackage: virtualbox-ose
Title: package virtualbox-ose-source 3.0.6-dfsg-1ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 10
Uname: Linux 2.6.31-11-generic i686
VirtualBoxOse.DpkgList:
 rc virtualbox-3.0 3.0.6-52128_Ubuntu_jaunty Sun VirtualBox
 ii virtualbox-ose 3.0.6-dfsg-1ubuntu1 x86 virtualization solution - base binaries
 ii virtualbox-ose-qt 3.0.6-dfsg-1ubuntu1 x86 virtualization solution - Qt based user
 iF virtualbox-ose-source 3.0.6-dfsg-1ubuntu1 x86 virtualization solution - kernel module

Revision history for this message
urho (vonturha) wrote :
Revision history for this message
Kai Blin (kai.blin) wrote :

Not a duplicate of bug 434503. I had bug 434503 before, and after using the workaround described there, I now get this bug.
Notice the different exit status of 10 vs exit status 3 on bug 434503.

Revision history for this message
Felix Geyer (debfx) wrote :

Could you please post the file /var/lib/dkms/vboxdrv/3.0.6/build/make.log

Revision history for this message
Felix Geyer (debfx) wrote :

If make.log isn't there, please search for it somewhere in /var/lib/dkms/vboxdrv/3.0.6

Revision history for this message
urho (vonturha) wrote :

 don't have folder /dkms/...

Revision history for this message
Kai Blin (kai.blin) wrote :

Here's my make.log file.

Revision history for this message
Felix Geyer (debfx) wrote :

Seems to be caused by bug #438393

Revision history for this message
Kai Blin (kai.blin) wrote :

I don't have an env-var set.
However, /usr/local/bin/gcc is a link to /usr/bin/ccache

Revision history for this message
Kai Blin (kai.blin) wrote :

Anyway, removing the symlinks fixes the issue, so at least that's a viable workaround.

Revision history for this message
Daniel Hahler (blueyed) wrote :

Assigning to dkms.

affects: virtualbox-ose (Ubuntu) → dkms (Ubuntu)
Changed in dkms (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
summary: - package virtualbox-ose-source 3.0.6-dfsg-1ubuntu1 failed to
- install/upgrade: subprocess installed post-installation script returned
- error exit status 10
+ ccache causes DKMS builds to fail
Revision history for this message
Mike S (mvs) wrote :

I've had three systems now affected by this bug, when building nvidia-190 kernel modules. Same issue with nvidia-185 as well, this seems highly related to bug 438393 as noted above, but since it does not involve the environment variables I'm posting here.

The build fails with the same make.log as 438393 "The C compiler '/usr/local/bin/cc' does not appear to be able to create executables", in this case a link to ccache. The referenced bug also mentions that dkms tries to run as user nobody, running as nobody ccache tries to create a cache at "/nonexistent/.ccache" which of course fails. Hope this is helpful.

Revision history for this message
Mario Limonciello (superm1) wrote :

So the fix to this is the same as the fix to bug 484725, which will be fixed in the next Lucid upload.

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.