dkms can't build nvidia modules in 2.6.31-20-generic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dkms (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
While installing a new kernel available by update-manager, console screen shows an error:
Examining /etc/kernel/
run-parts: executing /etc/kernel/
* Running DKMS auto installation service for kernel 2.6.31-20-generic
* nvidia (185.18.36)...
nvidia (185.18.36): Installing module.
........(bad exit status: 10)
Build failed. Installation skipped.
...fail!
So I tried to do manually:
$ sudo dkms build -m nvidia -v 185.18.36 -k 2.6.31-20-generic
Kernel preparation unnecessary for this kernel. Skipping...
applying patch rt_preempt_
applying patch fall_back_
Hunk #1 succeeded at 891 (offset -49 lines).
applying patch nvidia-
Building module:
cleaning build area....
su nobody -c "make KERNELRELEASE=
Error! Bad return status for module build on kernel: 2.6.31-20-generic (x86_64)
Consult the make.log in the build directory
/var/lib/
0
0
And that's the reason:
$ cat /var/lib/
DKMS make.log for nvidia-185.18.36 for kernel 2.6.31-20-generic (x86_64)
Qui Mar 4 18:40:23 BRT 2010
NVIDIA: calling KBUILD...
make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/
test -e include/
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /var/lib/
make -f scripts/
cp /var/lib/
cp: impossível obter estado de `/var/lib/
make[3]: ** [/var/lib/
make[2]: ** [_module_
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: ** [module] Erro 1
make: ** [module] Erro 2
But, as you can see, the needed files are there:
bremm@host:~$ locate autoconf.h auto.conf
/usr/src/
/usr/src/
/usr/src/
/usr/src/
Seems to be a dkms issue, but I'm not sure about. autoconf is 2.64 and dkms is 2.1.0.1 on Xubuntu 9.10 amd64.
$ lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10
$ apt-cache policy autoconf
autoconf:
Instalado: 2.64-1ubuntu1
Candidato: 2.64-1ubuntu1
Tabela de versão:
*** 2.64-1ubuntu1 0
500 http://
100 /var/lib/
$ apt-cache policy dkms
dkms:
Instalado: 2.1.0.1-0ubuntu1
Candidato: 2.1.0.1-0ubuntu1
Tabela de versão:
*** 2.1.0.1-0ubuntu1 0
500 http://
100 /var/lib/
/usr/src/
/usr/src/
affects: | ubuntu → dkms (Ubuntu) |
Changed in dkms (Ubuntu): | |
status: | New → Invalid |
This has been addressed in lucid's dkms package (2.1.1.1). The issue is that 'su nobody make...' doesn't work in this context and so has been stripped to simply 'make...'.