Installing nvidia-current fails if ccache is enabled
Bug #631007 reported by
Theodore Ts'o
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NVIDIA Drivers Ubuntu |
New
|
Undecided
|
Unassigned | ||
nvidia-graphics-drivers (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Installing nvidia-current (256.53-0ubuntu1) dies for me if ccache is enabled. I'm guessing maybe there's a race condition in the makefiles, and something is getting compiled with "make -j2"? I noticed that I managed to getting to compile once by repeating attempts to compile the nvidia driver using dkms (I kept on running apt-get install -f). I also noticed that once I set environment variable CCACHE_DISABLE, it worked reliably.
To post a comment you must log in.
On my T410 system with a quad-core Intel Core i7 processor, I confirmed I was able to replicate the failure if CCACHE_DISABLE is not set:
<tytso. root@tytso- glaptop> {/home/tytso} root@tytso- glaptop> {/home/tytso} img-2.6. 35-20-generic img-2.6. 34-5-generic current- 256.53 DKMS files...
2051# unset CCACHE_DISABLE
<tytso.
2052# dpkg-reconfigure nvidia-current
Removing all DKMS Modules
Done.
dpkg-trigger: dpkg-trigger must be called from a maintainer script (or with a --by-package option)
update-initramfs: Generating /boot/initrd.
update-initramfs: Generating /boot/initrd.
Loading new nvidia-
Building for 2.6.34-5-generic and 2.6.35-20-generic
Building for architecture x86_64
Building initial module for 2.6.34-5-generic
Error! Bad return status for module build on kernel: 2.6.34-5-generic (x86_64) dkms/nvidia- current/ 256.53/ build/ for more information.
Consult the make.log in the build directory
/var/lib/
I've attached the make.log file for your information.
The nvidia modules compile successfully if I run the command "export CCACHE_DISABLE=1" before running the command "dpkg-reconfigure nvidia-current".