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

Stephan Raue stephan.raue
Tue Apr 28 16:15:36 PDT 2009


Am 27.04.2009 22:27, schrieb Stephan Raue:
> 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]$
>
for this one and an following error i have created a patch (based on 
linux-2.6.30-rc3 drm-sources and http://patchwork.kernel.org/patch/13297/)

patch attached, it builds fine and works - the error with irqreturn_t i 
dont have fixed. can you look in this patch?

Stephan

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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: libdrm-newttm-linux-2.6.30.diff
Type: text/x-patch
Size: 1671 bytes
Desc: not available
Url : http://wiki.openchrome.org/pipermail/openchrome-devel/attachments/20090429/e59cab0a/libdrm-newttm-linux-2.6.30.bin



More information about the Openchrome-devel mailing list