nouveau build failed: drm_sysfs.c 'struct class' has no 'nodename'

Bug #491680 reported by Carl Karsten
54
This bug affects 7 people
Affects Status Importance Assigned to Milestone
nouveau-kernel-source (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: xserver-xorg-video-nouveau

Setting up nouveau-kernel-source (0.0.15+git20090823-0ubuntu1) ...
Adding Module to DKMS build system
Doing initial module build
Error! Bad return status for module build on kernel: 2.6.32-6-generic (i686)
Consult the make.log in the build directory
/var/lib/dkms/nouveau/0.0.15+git20090823/build/ for more information.

/var/lib/dkms/nouveau/0.0.15+git20090823/build/make.log: (full log attached)

 /var/lib/dkms/nouveau/0.0.15+git20090823/build/drivers/gpu/drm/drm_sysfs.c: In function 'drm_sysfs_create':
 /var/lib/dkms/nouveau/0.0.15+git20090823/build/drivers/gpu/drm/drm_sysfs.c:110: error: 'struct class' has no member named 'nodename'

juser@e18:~$ lsb_release -rd
Description: Ubuntu lucid (development branch)
Release: 10.04

juser@e18:~$ apt-cache policy xserver-xorg-video-nouveau
xserver-xorg-video-nouveau:
  Installed: 1:0.0.10~git+20090823+569a17a-0ubuntu1
  Candidate: 1:0.0.10~git+20090823+569a17a-0ubuntu1
  Version table:
 *** 1:0.0.10~git+20090823+569a17a-0ubuntu1 0
        500 http://cp333 lucid/universe Packages
        100 /var/lib/dpkg/status

What happened:
fresh lucid install:

juser@e18:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
juser@e18:~$ sudo apt-get install xserver-xorg-video-nouveau
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  dkms fakeroot libdrm-nouveau1 nouveau-kernel-source patch
Suggested packages:
  diff-doc
The following NEW packages will be installed:
  dkms fakeroot libdrm-nouveau1 nouveau-kernel-source patch
  xserver-xorg-video-nouveau
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,074kB of archives.
After this operation, 9,535kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://cp333 lucid/main dkms 2.1.0.1-0ubuntu1 [62.1kB]
Get:2 http://cp333 lucid/main fakeroot 1.12.4ubuntu1 [126kB]
Get:3 http://cp333 lucid/main libdrm-nouveau1 2.4.14-1ubuntu1 [383kB]
Get:4 http://cp333 lucid/main patch 2.5.9-5 [100kB]
Get:5 http://cp333 lucid/universe nouveau-kernel-source 0.0.15+git20090823-0ubuntu1 [1,222kB]
Get:6 http://cp333 lucid/universe xserver-xorg-video-nouveau 1:0.0.10~git+20090823+569a17a-0ubuntu1 [181kB]
Fetched 2,074kB in 1s (1,127kB/s)
Selecting previously deselected package dkms.
(Reading database ... 111981 files and directories currently installed.)
Unpacking dkms (from .../dkms_2.1.0.1-0ubuntu1_all.deb) ...
Selecting previously deselected package fakeroot.
Unpacking fakeroot (from .../fakeroot_1.12.4ubuntu1_i386.deb) ...
Selecting previously deselected package libdrm-nouveau1.
Unpacking libdrm-nouveau1 (from .../libdrm-nouveau1_2.4.14-1ubuntu1_i386.deb) ...
Selecting previously deselected package patch.
Unpacking patch (from .../patch_2.5.9-5_i386.deb) ...
Selecting previously deselected package nouveau-kernel-source.
Unpacking nouveau-kernel-source (from .../nouveau-kernel-source_0.0.15+git20090823-0ubuntu1_all.deb) ...
Selecting previously deselected package xserver-xorg-video-nouveau.
Unpacking xserver-xorg-video-nouveau (from .../xserver-xorg-video-nouveau_1%3a0.0.10~git+20090823+569a17a-0ubuntu1_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up dkms (2.1.0.1-0ubuntu1) ...
 * Running DKMS auto installation service for kernel 2.6.32-6-generic [ OK ]

Setting up fakeroot (1.12.4ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode.

Setting up libdrm-nouveau1 (2.4.14-1ubuntu1) ...

Setting up patch (2.5.9-5) ...
Setting up nouveau-kernel-source (0.0.15+git20090823-0ubuntu1) ...
Adding Module to DKMS build system
Doing initial module build

Error! Bad return status for module build on kernel: 2.6.32-6-generic (i686)
Consult the make.log in the build directory
/var/lib/dkms/nouveau/0.0.15+git20090823/build/ for more information.
dpkg: error processing nouveau-kernel-source (--configure):
 subprocess installed post-installation script returned error exit status 10
dpkg: dependency problems prevent configuration of xserver-xorg-video-nouveau:
 xserver-xorg-video-nouveau depends on nouveau-kernel-source (>= 0.0.15); however:
  Package nouveau-kernel-source is not configured yet.
dpkg: error processing xserver-xorg-video-nouveau (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin ...
No apport report written because the error message indicates its a followup error from a previous failure.
                          ldconfig deferred processing now taking place
Errors were encountered while processing:
 nouveau-kernel-source
 xserver-xorg-video-nouveau
E: Sub-process /usr/bin/dpkg returned an error code (1)
juser@e18:~$

ProblemType: Bug
Architecture: i386
CurrentDmesg: [ 119.974484] psmouse serio1: ID: 10 00 64
Date: Wed Dec 2 19:02:28 2009
DistroRelease: Ubuntu 10.04
MachineType: System Manufacturer Product Name
Package: xserver-xorg-video-nouveau 1:0.0.10~git+20090823+569a17a-0ubuntu1
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-6-generic root=UUID=38d88ff2-832c-4e39-b721-0553643d03f1 ro vga=6
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-6.8-generic
RelatedPackageVersions:
 xserver-xorg 1:7.4+3ubuntu10
 libgl1-mesa-glx 7.6.0-1ubuntu4
 libdrm2 2.4.14-1ubuntu1
 xserver-xorg-video-intel 2:2.9.0-1ubuntu4
 xserver-xorg-video-ati 1:6.12.99+git20090929.7968e1fb-0ubuntu1
SourcePackage: xserver-xorg-video-nouveau
Tags: lucid
Uname: Linux 2.6.32-6-generic i686
XorgConf: Error: [Errno 2] No such file or directory: '/etc/X11/xorg.conf'
XorgLogOld: Error: [Errno 2] No such file or directory: '/var/log/Xorg.0.log.old'
dmi.bios.date: 04/26/2002
dmi.bios.vendor: Phoenix Technologies, LTD
dmi.bios.version: 6.00 PG
dmi.board.name: VC37
dmi.board.vendor: First International Computer, Inc.
dmi.board.version: PCB 1.x
dmi.chassis.asset.tag: Asset Tag Number xxxxxx
dmi.chassis.type: 3
dmi.chassis.vendor: Manufactory Name
dmi.chassis.version: Version xx
dmi.modalias: dmi:bvnPhoenixTechnologies,LTD:bvr6.00PG:bd04/26/2002:svnSystemManufacturer:pnProductName:pvrSYS-xxxxxx:rvnFirstInternationalComputer,Inc.:rnVC37:rvrPCB1.x:cvnManufactoryName:ct3:cvrVersionxx:
dmi.product.name: Product Name
dmi.product.version: SYS-xxxxxx
dmi.sys.vendor: System Manufacturer
fglrx: Not loaded
glxinfo: Error: [Errno 2] No such file or directory
system:
 distro: Ubuntu
 architecture: i686kernel: 2.6.32-6-generic

Revision history for this message
Carl Karsten (carlfk) wrote :
Changed in xserver-xorg-video-nouveau (Ubuntu):
status: New → Confirmed
Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

something to to with devtmpfs in 2.6.32 i think means
char *(*nodename)(struct device *dev);
is now
char *(*devnode)(struct device *dev, mode_t *mode);

i've attached a patch that makes the changes in drivers/gpu/drm/drm_sysfs.c. it builds and modprobe's the module fine, hopefully i havent missed anything silly. i'm sure there'll be a new nouveau for lucid so this should hopefully be a temporary fix until then

Revision history for this message
Chris Halse Rogers (raof) wrote :

Actually, this is a bug in nouveau-kernel-source.

Furthermore, nouveau in Lucid is in a bit of flux; it looks like it'll be heading into Lucid's kernel, somewhere. Until that's sorted out I don't think I'll be updating the nouveau-kernel-source package.

Working nouveau packages for Lucid are available in the xorg-edgers PPA repository (either the main one, with xserver 1.7, or the xorg-edgers/nouveau with just nouveau packages), if you want to test them.

affects: xserver-xorg-video-nouveau (Ubuntu) → nouveau-kernel-source (Ubuntu)
Revision history for this message
Robert Hooker (sarvatt) wrote :

nouveau-kernel-source is no longer a proper way to use nouveau in lucid, and the kernel modules are installed through a linux-backports-modules package automatically. It just recently picked up the proper conflicts/replaces for nouveau-kernel-source so it should be removed automatically as soon as the update is built.

Changed in nouveau-kernel-source (Ubuntu):
status: Confirmed → Invalid
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.