nvidia-96-kernel-source fails to build on Karmic

Bug #391768 reported by Tobin Davis
54
This bug affects 8 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-96 (Ubuntu)
Fix Released
High
Alberto Milone
Karmic
Fix Released
High
Alberto Milone

Bug Description

When building nvidia kernel module for older nvidia card support, dkms failes with:
nvidia (96.43.10): Installing module.
..........(bad exit status: 10)
  Build failed. Installation skipped.

Upon further investigation, running the following shows why dkms fails:

> cd /usr/src/nvidia-96.43.10
> sudo make modules
NVIDIA: calling KBUILD...
.
. (skipping most of irrelevant build output)
.
make[3]: *** No rule to make target `kernel/bounds.c', needed by `kernel/bounds.s'. Stop.
make[2]: *** [prepare0] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2

p.s. I tried using "ubuntu-bug -p linux" and was informed that:
The problem cannot be reported:

This is not a genuine Ubuntu package

So I am filing it manually. Don't shoot the messenger.

[lspci]
00:00.0 Host bridge [0600]: Intel Corporation 82850 850 (Tehama) Chipset Host Bridge (MCH) [8086:2530] (rev 04)
     Subsystem: Intel Corporation Device [8086:4d44]
01:00.0 VGA compatible controller [0300]: nVidia Corporation NV25 [GeForce4 Ti 4600] [10de:0250] (rev a2)
     Subsystem: Micro-Star International Co., Ltd. Device [1462:8721]

Tags: karmic
Revision history for this message
Tobin Davis (gruemaster) wrote :
Revision history for this message
Tobin Davis (gruemaster) wrote :
Revision history for this message
Tobin Davis (gruemaster) wrote :
Revision history for this message
Tobin Davis (gruemaster) wrote :
Revision history for this message
Tobin Davis (gruemaster) wrote :
Revision history for this message
Tobin Davis (gruemaster) wrote :
affects: linux (Ubuntu) → nvidia-graphics-drivers-96 (Ubuntu)
Revision history for this message
Steffen Röcker (sroecker) wrote :

All nvidia kernel modules need patches to compile on 2.6.31.
All need a patch to remove proc->owner which doesn't exist anymore in kernels > 2.6.30.
Some need one for agp_memory, see for example bug #393924.

nvidia-96-kernel-source needs these two patches:
http://leigh123linux.fedorapeople.org/pub/patches/nvidia-96.43.11.patch
http://launchpadlibrarian.net/28552081/drm_agp_memory-2.6.31.patch

After applying those patches the module builds and works with the 2.6.31 kernel.

Changed in nvidia-graphics-drivers-96 (Ubuntu):
status: New → Confirmed
C de-Avillez (hggdh2)
Changed in nvidia-graphics-drivers-96 (Ubuntu):
importance: Undecided → High
Revision history for this message
Unkraut (unkraut2) wrote :

There is a new driver from nvidia (96.43.13) which comiles without complainig. Maybe give it a try!

Bryce Harrington (bryce)
description: updated
Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

i don't know if nvidia updates fix incompatibility with 2.6.31, specifically the errors such as,
‘struct proc_dir_entry’ has no member named ‘owner’ in nv.c
and,
‘agp_memory’ has no member named ‘memory’ in os-agp.c

i've included 2 patches that allow for building current 96.43.10 driver in karmic on 2.6.31 kernels, i'll put test packages in ppa
https://launchpad.net/~dinxter/+archive/ppa

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :
Bryce Harrington (bryce)
tags: added: karmic
Changed in nvidia-graphics-drivers-96 (Ubuntu Karmic):
assignee: nobody → Alberto Milone (albertomilone)
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-graphics-drivers-96 - 96.43.13-0ubuntu1

---------------
nvidia-graphics-drivers-96 (96.43.13-0ubuntu1) karmic; urgency=low

  * New upstream release. Supports new kernels (LP: #391768).
    - Updated nvidia-bug-report.sh to automatically compress its log file; running
      `nvidia-bug-report.sh` now produces "nvidia-bug-report.log.gz".
    - Fixed a bug that could trigger kernel BUG() failures when stress testing
      setup/teardown paths.
  * debian/control.in:
    - Add -185 to the "Replaces" of packages.

 -- Alberto Milone <email address hidden> Mon, 07 Sep 2009 12:02:48 +0200

Changed in nvidia-graphics-drivers-96 (Ubuntu Karmic):
status: In Progress → Fix Released
Revision history for this message
Pauli (paniemin) wrote :

Looks like build failed because there was multiple palces where 185 driver should have been added but is missing in debian control.

Revision history for this message
Pauli (paniemin) wrote :

I got the packages build locally if I applied small typo fix for missing comma :) It was simpler than I tough first.

--- nvidia-graphics-drivers-96-96.43.13/debian/control 2009-09-08 11:41:25.000000000 +0300
+++ new/debian/control 2009-09-08 11:39:18.000000000 +0300
@@ -111,7 +111,7 @@
 Recommends: nvidia-glx-96 (>= 96.43.13)
 Provides: nvidia-kernel-source
 Conflicts: nvidia-kernel-src, nvidia-kernel-source
-Replaces: nvidia-kernel-src, nvidia-180-kernel-source, nvidia-185-kernel-source
+Replaces: nvidia-kernel-src, nvidia-180-kernel-source, nvidia-185-kernel-source,
  nvidia-177-kernel-source, nvidia-173-kernel-source, nvidia-96-kernel-source,
  nvidia-71-kernel-source, nvidia-kernel-source, nvidia-new-kernel-source,
  nvidia-legacy-kernel-source, nvidia-kernel-source-envy,

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.