dkms modules don't get built since last upgrade to linux-headers-3.2.0-25-generic

Bug #1005157 reported by fsck222
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dkms (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi,

I have ugpraded (as asked by the system) from linux-headers-3.2.0-24-generic to linux-headers-3.2.0-25-generic and now my dkms do not build my modules anymores (nvidia and virtualbox).
I tried to reinstall several package but no luck.

root@hp-hdx18:~# lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04

See files attached:

apt-get_remove--purge-then-apt-get_install.txt log of:
root@hp-hdx18:~# apt-get remove --purge linux-headers-3.2.0-25 linux-headers-3.2.0-25-generic linux-headers-generic dkms virtualbox-dkms nvidia-current-updates nvidia-settings-updates nvidia-common kubuntu-desktop
root@hp-hdx18:~# apt-get install linux-headers-3.2.0-25 linux-headers-3.2.0-25-generic linux-headers-generic dkms virtualbox-dkms nvidia-current-updates nvidia-settings-updates nvidia-common kubuntu-desktop

var-lib-dkms-nvidia-current-updates-295.49-build-make.log.txt log of:
/var/lib/dkms/nvidia-current-updates/295.49/build/make.log

var-lib-dkms-virtualbox-4.1.12-build-make.log.txt
/var/lib/dkms/virtualbox/4.1.12/build/make.log

dpkg-l.txt
dpkg -l > dpkg-l.txt

Please let me know if you need any more info.

Tags: bot-comment
Revision history for this message
fsck222 (fsck222) wrote :
Revision history for this message
fsck222 (fsck222) wrote :
Revision history for this message
fsck222 (fsck222) wrote :
Revision history for this message
fsck222 (fsck222) wrote :
Revision history for this message
fsck222 (fsck222) wrote :

It seems that dkms returns and error because vboxdrv.ko is not found. If I try to manually build it, I don't get any error but module is not built:

root@hp-hdx18:~# make KBUILD_VERBOSE=1 KERNELRELEASE=3.2.0-25-generic -C /lib/modules/3.2.0-25-generic/build M=/var/lib/dkms/virtualbox/4.1.12/build
make: Entering directory `/usr/src/linux-headers-3.2.0-25-generic'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
        echo; \
        echo " ERROR: Kernel configuration is invalid."; \
        echo " include/generated/autoconf.h or include/config/auto.conf are missing.";\
        echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
        echo; \
        /bin/false)
mkdir -p /var/lib/dkms/virtualbox/4.1.12/build/.tmp_versions ; rm -f /var/lib/dkms/virtualbox/4.1.12/build/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/lib/dkms/virtualbox/4.1.12/build
make -f scripts/Makefile.build obj=/var/lib/dkms/virtualbox/4.1.12/build/vboxdrv
(cat /dev/null; echo kernel//var/lib/dkms/virtualbox/4.1.12/build/vboxdrv/vboxdrv.ko;) > /var/lib/dkms/virtualbox/4.1.12/build/vboxdrv/modules.order
make -f scripts/Makefile.build obj=/var/lib/dkms/virtualbox/4.1.12/build/vboxnetadp
(cat /dev/null; echo kernel//var/lib/dkms/virtualbox/4.1.12/build/vboxnetadp/vboxnetadp.ko;) > /var/lib/dkms/virtualbox/4.1.12/build/vboxnetadp/modules.order
make -f scripts/Makefile.build obj=/var/lib/dkms/virtualbox/4.1.12/build/vboxnetflt
(cat /dev/null; echo kernel//var/lib/dkms/virtualbox/4.1.12/build/vboxnetflt/vboxnetflt.ko;) > /var/lib/dkms/virtualbox/4.1.12/build/vboxnetflt/modules.order
make -f scripts/Makefile.build obj=/var/lib/dkms/virtualbox/4.1.12/build/vboxpci
(cat /dev/null; echo kernel//var/lib/dkms/virtualbox/4.1.12/build/vboxpci/vboxpci.ko;) > /var/lib/dkms/virtualbox/4.1.12/build/vboxpci/modules.order
(cat /dev/null; cat /var/lib/dkms/virtualbox/4.1.12/build/vboxdrv/modules.order; cat /var/lib/dkms/virtualbox/4.1.12/build/vboxnetflt/modules.order; cat /var/lib/dkms/virtualbox/4.1.12/build/vboxnetadp/modules.order; cat /var/lib/dkms/virtualbox/4.1.12/build/vboxpci/modules.order;) > /var/lib/dkms/virtualbox/4.1.12/build/modules.order
make -f /usr/src/linux-headers-3.2.0-25-generic/scripts/Makefile.modpost
  scripts/mod/modpost -m -a -i /usr/src/linux-headers-3.2.0-25-generic/Module.symvers -I /var/lib/dkms/virtualbox/4.1.12/build/Module.symvers -o /var/lib/dkms/virtualbox/4.1.12/build/Module.symvers -S -w -s
make: Leaving directory `/usr/src/linux-headers-3.2.0-25-generic'
root@hp-hdx18:~#

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1005157/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

 Can you try the fix suggested in #2 of bug 948149

affects: ubuntu → dkms (Ubuntu)
Revision history for this message
fsck222 (fsck222) wrote :

I don't have any of the 2 files of the fix suggested in #2 of bug 948149

root@hp-hdx18:~# l /var/lib/dkms/vboxhost
ls: cannot access /var/lib/dkms/vboxhost: No such file or directory
root@hp-hdx18:~# l /var/lib/dkms/
drwxr-xr-x 3 root root 4096 May 27 14:18 nvidia-current-updates
drwxr-xr-x 3 root root 4096 May 27 14:19 virtualbox
-rw-r--r-- 1 root root 6 Jul 8 2008 dkms_dbversion
root@hp-hdx18:~# l /etc/init.d/vboxdrv
ls: cannot access /etc/init.d/vboxdrv: No such file or directory
root@hp-hdx18:~# l /etc/init.d/ | grep vbo
root@hp-hdx18:~# l /etc/init.d/ | grep virtua
-rwxr-xr-x 1 root root 6138 Aug 29 2011 virtualbox
-rwxr-xr-x 1 root root 1364 Aug 29 2011 virtualbox-guest-utils
root@hp-hdx18:~# /etc/init.d/virtualbox help
Usage: /etc/init.d/virtualbox {start|stop|stop_vms|restart|force-reload|status}
root@hp-hdx18:~# /etc/init.d/virtualbox status
VirtualBox kernel module is not loaded.
root@hp-hdx18:~#

Revision history for this message
fsck222 (fsck222) wrote :

See attached file bash-x_dkms--verboxe_autoinstall.txt from :
root@hp-hdx18:~# /bin/bash -x /usr/sbin/dkms --verbose autoinstall > bash-x_dkms--verboxe_autoinstall.txt 2>&1
(bad exit status: 2)
(bad exit status: 2)
root@hp-hdx18:~#

Revision history for this message
fsck222 (fsck222) wrote :

What is weird is in both make.log, there are no compilation error. Module are never built. (search on .ko returns nothing in make.logs)

Revision history for this message
fsck222 (fsck222) wrote :

If I make it manually, there is no error and module is still not built:

root@hp-hdx18:~# make KBUILD_VERBOSE=1 KERNELRELEASE=3.2.0-25-generic -C /lib/modules/3.2.0-25-generic/build M=/var/lib/dkms/virtualbox/4.1.12/build
make: Entering directory `/usr/src/linux-headers-3.2.0-25-generic'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
        echo; \
        echo " ERROR: Kernel configuration is invalid."; \
        echo " include/generated/autoconf.h or include/config/auto.conf are missing.";\
        echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
        echo; \
        /bin/false)
mkdir -p /var/lib/dkms/virtualbox/4.1.12/build/.tmp_versions ; rm -f /var/lib/dkms/virtualbox/4.1.12/build/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/lib/dkms/virtualbox/4.1.12/build
make -f scripts/Makefile.build obj=/var/lib/dkms/virtualbox/4.1.12/build/vboxdrv
(cat /dev/null; echo kernel//var/lib/dkms/virtualbox/4.1.12/build/vboxdrv/vboxdrv.ko;) > /var/lib/dkms/virtualbox/4.1.12/build/vboxdrv/modules.order
make -f scripts/Makefile.build obj=/var/lib/dkms/virtualbox/4.1.12/build/vboxnetadp
(cat /dev/null; echo kernel//var/lib/dkms/virtualbox/4.1.12/build/vboxnetadp/vboxnetadp.ko;) > /var/lib/dkms/virtualbox/4.1.12/build/vboxnetadp/modules.order
make -f scripts/Makefile.build obj=/var/lib/dkms/virtualbox/4.1.12/build/vboxnetflt
(cat /dev/null; echo kernel//var/lib/dkms/virtualbox/4.1.12/build/vboxnetflt/vboxnetflt.ko;) > /var/lib/dkms/virtualbox/4.1.12/build/vboxnetflt/modules.order
make -f scripts/Makefile.build obj=/var/lib/dkms/virtualbox/4.1.12/build/vboxpci
(cat /dev/null; echo kernel//var/lib/dkms/virtualbox/4.1.12/build/vboxpci/vboxpci.ko;) > /var/lib/dkms/virtualbox/4.1.12/build/vboxpci/modules.order
(cat /dev/null; cat /var/lib/dkms/virtualbox/4.1.12/build/vboxdrv/modules.order; cat /var/lib/dkms/virtualbox/4.1.12/build/vboxnetflt/modules.order; cat /var/lib/dkms/virtualbox/4.1.12/build/vboxnetadp/modules.order; cat /var/lib/dkms/virtualbox/4.1.12/build/vboxpci/modules.order;) > /var/lib/dkms/virtualbox/4.1.12/build/modules.order
make -f /usr/src/linux-headers-3.2.0-25-generic/scripts/Makefile.modpost
  scripts/mod/modpost -m -a -i /usr/src/linux-headers-3.2.0-25-generic/Module.symvers -I /var/lib/dkms/virtualbox/4.1.12/build/Module.symvers -o /var/lib/dkms/virtualbox/4.1.12/build/Module.symvers -S -w -s
make: Leaving directory `/usr/src/linux-headers-3.2.0-25-generic'
root@hp-hdx18:~#

Revision history for this message
fsck222 (fsck222) wrote :

I fixed the probleme using sudo instead of login as root:

sudo apt-get remove --purge virtualbox-dkms virtualbox-ose-dkms nvidia-current-updates nvidia-settings-updates
sudo apt-get install virtualbox-dkms virtualbox-ose-dkms nvidia-current-updates nvidia-settings-updates

I had a quick look in the log, and it seems that the Makefile of the build do not behave the same when using sudo or login as root...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dkms (Ubuntu):
status: New → Confirmed
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.