DKMS module nvidia-96.43.10 build problem under linux-rt

Bug #385515 reported by Evgeniy Kirov
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-96 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I've was trying to build Nvidia driver (sudo dkms build -m nvidia -v 96.43.10) for linux-rt kernel, but got the following error message in make.log:
 /var/lib/dkms/nvidia/96.43.10/build/os-interface.c:104: error: incompatible types in assignment

My solution of this problem is to replace

typedef struct os_sema_s
{
    struct completion completion;
#if defined(CONFIG_PREEMPT_RT)
    raw_spinlock_t lock;
#else
    spinlock_t lock;
#endif
    S032 count;
} os_sema_t;

with

typedef struct os_sema_s
{
    struct completion completion;
//#if defined(CONFIG_PREEMPT_RT)
// raw_spinlock_t lock;
//#else
    spinlock_t lock;
//#endif
    S032 count;
} os_sema_t;

in that file.

So, the module had built successfully, installed and now works fine.

PS. Sorry for my (very!) bad english, but I hope you understood me.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: nvidia-96-kernel-source 96.43.10-0ubuntu1 [modified: usr/src/nvidia-96.43.10/os-interface.c]
ProcEnviron:
 LANG=ru_RU.UTF-8
 SHELL=/bin/bash
ProcVersion: Linux version 2.6.28-3-rt (buildd@vernadsky) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #12-Ubuntu SMP PREEMPT RT Fri Apr 17 10:09:11 UTC 2009
SourcePackage: nvidia-graphics-drivers-96
Uname: Linux 2.6.28-3-rt i686

[lspci]
00:00.0 Host bridge [0600]: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface [8086:2560] (rev 02)
     Subsystem: Giga-byte Technology Device [1458:2560]
01:00.0 VGA compatible controller [0300]: nVidia Corporation NV18 [GeForce4 MX 440 AGP 8x] [10de:0181] (rev c1)
     Subsystem: D-Link System Inc Device [1186:1405]

Revision history for this message
Evgeniy Kirov (evg.kirov) wrote :
tags: added: nvidia-96
removed: nvidia-86
Bryce Harrington (bryce)
description: updated
Bryce Harrington (bryce)
tags: added: jaunty
Revision history for this message
bugbot (bugbot) wrote :

This bug report was filed against an old version of Ubuntu.
Can you confirm whether this is still an issue in natty?

If you don't mind, it would be very helpful if you could update the bug
report in launchpad to 'Fix Released' if it is no longer an issue for
you, or if it is still occurring under natty, please tag the bug 'natty'
so it's easier for us to track.

Changed in nvidia-graphics-drivers-96 (Ubuntu):
status: New → Incomplete
Revision history for this message
bugbot (bugbot) wrote :

We're closing this bug since it is has been some time with no response from the original reporter. However, if the issue still exists please feel free to reopen with the requested information. Also, if you could, please test against the latest development version of Ubuntu, since this confirms the bug is one we may be able to pass upstream for help.

Changed in nvidia-graphics-drivers-96 (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Bo Gao (gaoblin) wrote :

I ran into this bug today whilst compiling kernel 2.6.32.43 to use as DomU for Xen.

Background: installed Ubuntu 11.04 on laptop, first time login, prompted with "Unity not available due to hardware...", once connected to the net, an Nvidia update came up, installed and Unity worked, the update created a folder in usr/src called nvidia-current-270.41.06.

Issue: configured and compiled kernel 2.6.32.43 (up to % sudo make). After % sudo make modules_install install, prompted with "* dkms: running installation service for...." and then hangs at "* nvidia-current (270.41.06)..."

Revision history for this message
dave (dave-packers-deactivatedaccount) wrote :

  INSTALL /lib/firmware/emi62/loader.fw
  INSTALL /lib/firmware/emi62/bitstream.fw
  INSTALL /lib/firmware/emi62/spdif.fw
  INSTALL /lib/firmware/emi62/midi.fw
  INSTALL /lib/firmware/kaweth/new_code.bin
  INSTALL /lib/firmware/kaweth/trigger_code.bin
  INSTALL /lib/firmware/kaweth/new_code_fix.bin
  INSTALL /lib/firmware/kaweth/trigger_code_fix.bin
  INSTALL /lib/firmware/ti_3410.fw
  INSTALL /lib/firmware/ti_5052.fw
  INSTALL /lib/firmware/mts_cdma.fw
  INSTALL /lib/firmware/mts_gsm.fw
  INSTALL /lib/firmware/mts_edge.fw
  INSTALL /lib/firmware/edgeport/boot.fw
  INSTALL /lib/firmware/edgeport/boot2.fw
  INSTALL /lib/firmware/edgeport/down.fw
  INSTALL /lib/firmware/edgeport/down2.fw
I see the same exact problem while compiling the kernel.

INSTALL /lib/firmware/edgeport/down3.bin
  INSTALL /lib/firmware/whiteheat_loader.fw
  INSTALL /lib/firmware/whiteheat.fw
  INSTALL /lib/firmware/keyspan_pda/keyspan_pda.fw
  INSTALL /lib/firmware/keyspan_pda/xircom_pgs.fw
  INSTALL /lib/firmware/vicam/firmware.fw
  INSTALL /lib/firmware/cpia2/stv0672_vp4.bin
  INSTALL /lib/firmware/yam/1200.bin
  INSTALL /lib/firmware/yam/9600.bin
  DEPMOD 2.6.38.8
sh /usr/src/linux-2.6.38.8/arch/x86/boot/install.sh 2.6.38.8 arch/x86/boot/bzImage \
  System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/dkms 2.6.38.8 /boot/vmlinuz-2.6.38.8
 * dkms: running auto installation service for kernel 2.6.38.8
 * bcmwl (5.100.82.38+bdcom)... [ OK ]
 * nvidia-current (270.41.06)...

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.