[Openchrome-devel] build libdrm-newttm fails with kernel 2.6.30-rc3b

Stephan Raue stephan.raue
Mon Apr 27 13:27:40 PDT 2009


Am 27.04.2009 14:00, schrieb Stephan Raue:
> Hi all,
>
> when i am build libdrm-newttm with linux-2.6.30-rc3 it fails
>
> make[1]: Entering directory
> `/home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/linux-2.6.30-rc3'
> fatal: Not a git repository (or any of the parent directories): .git
>     CC [M]
> /home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/libdrm-newttm-svn-20090329.2/linux-core/drm_auth.o
> In file included from
> /home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/libdrm-newttm-svn-20090329.2/linux-core/drmP.h:88,
>                    from
> /home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/libdrm-newttm-svn-20090329.2/linux-core/drm_auth.c:37:
> /home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/libdrm-newttm-svn-20090329.2/linux-core/drm_os_linux.h:54:
> error: conflicting types for 'irqreturn_t'
> include/linux/irqreturn.h:16: note: previous declaration of
> 'irqreturn_t' was here
> make[2]: ***
> [/home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/libdrm-newttm-svn-20090329.2/linux-core/drm_auth.o]
> Error 1
> make[1]: ***
> [_module_/home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/libdrm-newttm-svn-20090329.2/linux-core]
> Error 2
> make[1]: Leaving directory
> `/home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/linux-2.6.30-rc3'
> make: *** [modules] Error 2
> make: Leaving directory
> `/home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/libdrm-newttm-svn-20090329.2/linux-core'
>
> what can i do?
>
>
when i am change linux/include/irqreturn.h to like 
http://pastebin.com/m171d72d9 (see 
http://bbs.archlinux.org/viewtopic.php?pid=527139)

drm_auth.o compiles fine. now i have follow error (with gcc-4.4.0)

   CC [M] 
/home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/libdrm-newttm-svn-20090329.2/linux-core/drm_proc.o
/home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/libdrm-newttm-svn-20090329.2/linux-core/drm_proc.c: 
In function 'drm__vma_info':
/home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/libdrm-newttm-svn-20090329.2/linux-core/drm_proc.c:593: 
warning: format '%08lx' expects type 'long unsigned int', but argument 5 
has type 'phys_addr_t'
   CC [M] 
/home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/libdrm-newttm-svn-20090329.2/linux-core/drm_stub.o
   CC [M] 
/home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/libdrm-newttm-svn-20090329.2/linux-core/drm_vm.o
   CC [M] 
/home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/libdrm-newttm-svn-20090329.2/linux-core/drm_sysfs.o
/home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/libdrm-newttm-svn-20090329.2/linux-core/drm_sysfs.c: 
In function 'drm_sysfs_connector_add':
/home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/libdrm-newttm-svn-20090329.2/linux-core/drm_sysfs.c:354: 
error: 'struct device' has no member named 'bus_id'
/home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/libdrm-newttm-svn-20090329.2/linux-core/drm_sysfs.c: 
In function 'drm_sysfs_device_add':
/home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/libdrm-newttm-svn-20090329.2/linux-core/drm_sysfs.c:490: 
error: 'struct device' has no member named 'bus_id'
/home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/libdrm-newttm-svn-20090329.2/linux-core/drm_sysfs.c:495: 
error: 'struct device' has no member named 'bus_id'
make[2]: *** 
[/home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/libdrm-newttm-svn-20090329.2/linux-core/drm_sysfs.o] 
Error 1
make[1]: *** 
[_module_/home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/libdrm-newttm-svn-20090329.2/linux-core] 
Error 2
make[1]: Leaving directory 
`/home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/linux-2.6.30-rc3'
make: *** [modules] Error 2
make: Leaving directory 
`/home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/libdrm-newttm-svn-20090329.2/linux-core'
[stephan at dv9000 OpenELEC]$

(see http://lkml.indiana.edu/hypermail/linux/kernel/0901.3/00248.html)

can anyone make a patch to let libdrm-newttm build fine with 
linux-2.6.30 and gcc-4.4.0?

Thank you

Stephan


-- 
               ### OpenELEC.tv ###
The free and open Mediacenter Distribution 4 you
              http://www.openelec.tv





More information about the Openchrome-devel mailing list