nvidia-current fails to install. Cannot build module on lucid.

Bug #785456 reported by Ryan Lovett
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I tried to follow the bug reporting guidelines with "ubuntu-bug nvidia-graphics-drivers", but it reported "Package nvidia-graphics-drivers does not exist".

When I try to install nvidia-current, it fails:

====================================================
# apt-get install nvidia-current
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  nvidia-current
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/40.8MB of archives.
After this operation, 133MB of additional disk space will be used.
Selecting previously deselected package nvidia-current.
(Reading database ... 253506 files and directories currently installed.)
Unpacking nvidia-current (from .../nvidia-current_195.36.24-0ubuntu1~10.04_amd64.deb) ...
Processing triggers for man-db ...
Setting up nvidia-current (195.36.24-0ubuntu1~10.04) ...
update-alternatives: using /usr/lib/nvidia-current/ld.so.conf to provide /etc/ld.so.conf.d/GL.conf (gl_conf) in auto mode.
update-initramfs: deferring update (trigger activated)
Loading new nvidia-current-195.36.24 DKMS files...
First Installation: checking all kernels...
Building only for 2.6.32-31-generic
Building for architecture x86_64
Building initial module for 2.6.32-31-generic

Error! Bad return status for module build on kernel: 2.6.32-31-generic (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/nvidia-current/195.36.24/build/ for more information.
dpkg: error processing nvidia-current (--configure):
 subprocess installed post-installation script returned error exit status 10
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.32-31-generic
Processing triggers for python-support ...
Errors were encountered while processing:
 nvidia-current
E: Sub-process /usr/bin/dpkg returned an error code (1)
====================================================

The make.log reports:

DKMS make.log for nvidia-current-195.36.24 for kernel 2.6.32-31-generic (x86_64)
Thu May 19 15:59:55 PDT 2011
make[1]: Makefile: No such file or directory
make[1]: *** No rule to make target `Makefile'. Stop.
make: *** [module] Error 2

and in fact there is no file named "Makefile":

# ls /var/lib/dkms/nvidia-current/195.36.24/build/
conftest.sh nvacpi.c nv-linux.h os-agp.h
cpuopsys.h nvacpitypes.h nv-memdbg.h os-interface.c
dkms.conf nv.c nv-misc.h os-interface.h
gcc-version-check.c nv_gvi.c nvreadme.h os-registry.c
makefile nv.h nv-reg.h patches
Makefile.kbuild nv-i2c.c nvtypes.h README
Makefile.nvidia nvidia.ko nv-vm.c rmil.h
make.log nvidia.mod.c nv-vm.h rmretval.h
modules.order nvidia.o nv-xen.h xapi-sdk.h
Module.symvers nv-kernel.o os-agp.c

Changing into that build directory and running "make -f makefile" does nothing. Running "make -f Makefile.nvidia" produces:

# make -f Makefile.nvidia
In file included from /lib/modules/2.6.32-31-generic/build/include/linux/kernel.h:11,
                 from /lib/modules/2.6.32-31-generic/build/include/linux/sched.h:54,
                 from /lib/modules/2.6.32-31-generic/build/include/linux/utsname.h:35,
                 from nv-linux.h:27,
                 from nv.c:14:
/lib/modules/2.6.32-31-generic/build/include/linux/linkage.h:5:25: error: asm/linkage.h: No such file or directory
[snip]

Running "make -f Makefile.kbuild" generates a lot of warnings but then runs across this error first:

In file included from /var/lib/dkms/nvidia-current/195.36.24/build/nv.c:14:
/var/lib/dkms/nvidia-current/195.36.24/build/nv-linux.h:209:6: warning: "NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT" is not defined
/var/lib/dkms/nvidia-current/195.36.24/build/nv-linux.h:211:8: warning: "NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT" is not defined
/var/lib/dkms/nvidia-current/195.36.24/build/nv-linux.h:215:2: error: #error "NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT value unrecognized!"
/var/lib/dkms/nvidia-current/195.36.24/build/nv-linux.h:637:2: error: #error "NV_KMEM_CACHE_CREATE() undefined (kmem_cache_create() unavailable)!"
/var/lib/dkms/nvidia-current/195.36.24/build/nv-linux.h:754:2: error: #error "NV_ON_EACH_CPU() undefined (on_each_cpu() unavailable)!"

I tried googling and found dozens of similar reports but no fixes.

# uname -r
2.6.32-31-generic

# dpkg -l | grep linux-header
ii linux-headers-2.6.32-21 2.6.32-21.32 Header files related to Linux kernel version 2.6.32
ii linux-headers-2.6.32-21-generic 2.6.32-21.32 Linux kernel headers for version 2.6.32 on x86/x86_64
ii linux-headers-2.6.32-31 2.6.32-31.61 Header files related to Linux kernel version 2.6.32
ii linux-headers-2.6.32-31-generic 2.6.32-31.61 Linux kernel headers for version 2.6.32 on x86/x86_64
ii linux-headers-generic 2.6.32.31.37 Generic Linux kernel headers

# lspci | grep -i vga
02:00.0 VGA compatible controller: nVidia Corporation Device 06fd (rev a1)
03:00.0 VGA compatible controller: nVidia Corporation Device 06fd (rev a1)
---
Architecture: amd64
DistroRelease: Ubuntu 10.04
Package: nvidia-graphics-drivers (not installed)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-31.61-generic 2.6.32.32+drm33.14
Tags: lucid
Uname: Linux 2.6.32-31-generic x86_64
UserGroups: upush
system:
 distro: Ubuntu
 codename: lucid
 architecture: x86_64
 kernel: 2.6.32-31-generic

bugbot (bugbot)
tags: added: lucid
Revision history for this message
Ryan Lovett (ryan-spacecoaster) wrote :

Applying my dkms patch from https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/785937 fixed this.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Please attach more evidence linking this bug to 785937. I can't see the evidence you cited 'Some errors indicated that dkms failed while trying to find a directory named "-a"'.

Please also execute the following command, as it will automatically gather debugging information, in a terminal:
apport-collect 785456
When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in nvidia-graphics-drivers (Ubuntu):
status: New → Incomplete
Revision history for this message
Ryan Lovett (ryan-spacecoaster) wrote :

The log file /var/lib/dkms/nvidia-96/96.43.17/build/make.log indicated:

DKMS make.log for nvidia-96-96.43.17 for kernel 2.6.32-31-generic (x86_64)
Tue Jun 7 13:17:39 PDT 2011
NVIDIA: calling KBUILD...
make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.32-31-generic/build SUBDIRS=/var/lib/dkms/nvidia-96/96.43.17/build modules
Makefile:538: /usr/src/linux-headers-2.6.32-31-generic/arch/-a: No such file or directory
Makefile:538: x86_64/Makefile: No such file or directory
make[2]: *** No rule to make target `x86_64/Makefile'. Stop.
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2

Note the expected path ending in /-a.

Revision history for this message
Ryan Lovett (ryan-spacecoaster) wrote : RelatedPackageVersions.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Ryan Lovett (ryan-spacecoaster) wrote : XorgLog.txt

apport information

Revision history for this message
Ryan Lovett (ryan-spacecoaster) wrote : XorgLogOld.txt

apport information

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

[Expired for nvidia-graphics-drivers (Ubuntu) because there has been no activity for 60 days.]

Changed in nvidia-graphics-drivers (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.