← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 785456] Re: nvidia-current fails to install. Cannot build module on lucid.

 

apport information

** Tags added: apport-collected

** Description changed:

  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

** Attachment added: "RelatedPackageVersions.txt"
   https://bugs.edge.launchpad.net/bugs/785456/+attachment/2159898/+files/RelatedPackageVersions.txt

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to nvidia-graphics-drivers in Ubuntu.
https://bugs.launchpad.net/bugs/785456

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


References