* [Buildroot] DirectFB + linux-headers-2.6.28.1 compilation problem
@ 2009-01-23 11:10 Ihar Hrachyshka
2009-01-23 11:18 ` Sven Neumann
2009-01-23 12:49 ` Peter Korsgaard
0 siblings, 2 replies; 9+ messages in thread
From: Ihar Hrachyshka @ 2009-01-23 11:10 UTC (permalink / raw)
To: buildroot
Hello guys!
I have the following problem compiling DirectFB with linux-header-2.6.28.1:
/home/booxter/winbox/buildroot/build_mipsel/staging_dir/usr/bin/mipsel-linux-uclibc-ld
-o libdirectfb_keyboard.o -r .libs/libdirectfb_keyboard.a.tmp/*.o
rm -f .libs/libdirectfb_keyboard.a.tmp/*.o && rmdir
.libs/libdirectfb_keyboard.a.tmp
make[4]: Leaving directory
`/home/booxter/winbox/buildroot/build_mipsel/DirectFB-1.2.6/inputdrivers/keyboard'
Making all in serialmouse
make[4]: Entering directory
`/home/booxter/winbox/buildroot/build_mipsel/DirectFB-1.2.6/inputdrivers/serialmouse'
/bin/bash ../../libtool --tag=CC --mode=compile
/home/booxter/winbox/buildroot/build_mipsel/staging_dir/usr/bin/mipsel-linux-uclibc-gcc
-Os -I/home/booxter/winbox/buildroot/build_mipsel/staging_dir/usr/include
-I/home/booxter/winbox/buildroot/build_mipsel/staging_dir/include
--sysroot=/home/booxter/winbox/buildroot/build_mipsel/staging_dir/
-isysroot /home/booxter/winbox/buildroot/build_mipsel/staging_dir
-mtune=mips32r2 -mabi=32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -I. -I../.. -I../../include
-I../../lib -I../../lib -I../../src -D_REENTRANT -O3 -ffast-math
-pipe -Os -I/home/booxter/winbox/buildroot/build_mipsel/staging_dir/usr/include
-I/home/booxter/winbox/buildroot/build_mipsel/staging_dir/include
--sysroot=/home/booxter/winbox/buildroot/build_mipsel/staging_dir/
-isysroot /home/booxter/winbox/buildroot/build_mipsel/staging_dir
-mtune=mips32r2 -mabi=32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-Werror-implicit-function-declaration -MT serialmouse.lo -MD -MP -MF
.deps/serialmouse.Tpo -c -o serialmouse.lo serialmouse.c
/home/booxter/winbox/buildroot/build_mipsel/staging_dir/usr/bin/mipsel-linux-uclibc-gcc
-Os -I/home/booxter/winbox/buildroot/build_mipsel/staging_dir/usr/include
-I/home/booxter/winbox/buildroot/build_mipsel/staging_dir/include
--sysroot=/home/booxter/winbox/buildroot/build_mipsel/staging_dir/
-isysroot /home/booxter/winbox/buildroot/build_mipsel/staging_dir
-mtune=mips32r2 -mabi=32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -I. -I../.. -I../../include
-I../../lib -I../../lib -I../../src -D_REENTRANT -O3 -ffast-math -pipe
-Os -I/home/booxter/winbox/buildroot/build_mipsel/staging_dir/usr/include
-I/home/booxter/winbox/buildroot/build_mipsel/staging_dir/include
--sysroot=/home/booxter/winbox/buildroot/build_mipsel/staging_dir/
-isysroot /home/booxter/winbox/buildroot/build_mipsel/staging_dir
-mtune=mips32r2 -mabi=32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-Werror-implicit-function-declaration -MT serialmouse.lo -MD -MP -MF
.deps/serialmouse.Tpo -c serialmouse.c -fPIC -DPIC -o
.libs/serialmouse.o
In file included from serialmouse.c:43:
/home/booxter/winbox/buildroot/build_mipsel/staging_dir/usr/include/linux/serial.h:164:
error: expected specifier-qualifier-list before '__u32'
make[4]: *** [serialmouse.lo] Error 1
make[4]: Leaving directory
`/home/booxter/winbox/buildroot/build_mipsel/DirectFB-1.2.6/inputdrivers/serialmouse'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/booxter/winbox/buildroot/build_mipsel/DirectFB-1.2.6/inputdrivers'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/booxter/winbox/buildroot/build_mipsel/DirectFB-1.2.6'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/booxter/winbox/buildroot/build_mipsel/DirectFB-1.2.6'
make: *** [/home/booxter/winbox/buildroot/build_mipsel/DirectFB-1.2.6/.compiled]
Error 2
The problem can be fixed with the following upstream patch applied:
http://lkml.org/lkml/2008/11/3/240
Please add it to buildroot. Thanks.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] DirectFB + linux-headers-2.6.28.1 compilation problem
2009-01-23 11:10 [Buildroot] DirectFB + linux-headers-2.6.28.1 compilation problem Ihar Hrachyshka
@ 2009-01-23 11:18 ` Sven Neumann
2009-01-23 12:49 ` Peter Korsgaard
1 sibling, 0 replies; 9+ messages in thread
From: Sven Neumann @ 2009-01-23 11:18 UTC (permalink / raw)
To: buildroot
Hi,
On Fri, 2009-01-23 at 13:10 +0200, Ihar Hrachyshka wrote:
> I have the following problem compiling DirectFB with linux-header-2.6.28.1:
> In file included from serialmouse.c:43:
> /home/booxter/winbox/buildroot/build_mipsel/staging_dir/usr/include/linux/serial.h:164:
> error: expected specifier-qualifier-list before '__u32'
Yes, I've run into the same problem, but forgot to report it here.
Thanks for pointing out the patch that solves it.
Sven
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] DirectFB + linux-headers-2.6.28.1 compilation problem
2009-01-23 11:10 [Buildroot] DirectFB + linux-headers-2.6.28.1 compilation problem Ihar Hrachyshka
2009-01-23 11:18 ` Sven Neumann
@ 2009-01-23 12:49 ` Peter Korsgaard
2009-01-23 12:54 ` Sven Neumann
1 sibling, 1 reply; 9+ messages in thread
From: Peter Korsgaard @ 2009-01-23 12:49 UTC (permalink / raw)
To: buildroot
>>>>> "Ihar" == Ihar Hrachyshka <ihar.hrachyshka@gmail.com> writes:
Ihar> Hello guys!
Ihar> I have the following problem compiling DirectFB with linux-header-2.6.28.1:
Ihar> /home/booxter/winbox/buildroot/build_mipsel/staging_dir/usr/bin/mipsel-linux-uclibc-ld
Ihar> -o libdirectfb_keyboard.o -r .libs/libdirectfb_keyboard.a.tmp/*.o
Ihar> rm -f .libs/libdirectfb_keyboard.a.tmp/*.o && rmdir
Ihar> .libs/libdirectfb_keyboard.a.tmp
Ihar> make[4]: Leaving directory
Ihar> `/home/booxter/winbox/buildroot/build_mipsel/DirectFB-1.2.6/inputdrivers/keyboard'
Ihar> Making all in serialmouse
Ihar> make[4]: Entering directory
Ihar> `/home/booxter/winbox/buildroot/build_mipsel/DirectFB-1.2.6/inputdrivers/serialmouse'
Does this also happen with latest trunk (E.G. where we have DirectFB
1.2.7)?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] DirectFB + linux-headers-2.6.28.1 compilation problem
2009-01-23 12:49 ` Peter Korsgaard
@ 2009-01-23 12:54 ` Sven Neumann
2009-01-23 12:56 ` Ihar Hrachyshka
2009-01-23 12:58 ` Peter Korsgaard
0 siblings, 2 replies; 9+ messages in thread
From: Sven Neumann @ 2009-01-23 12:54 UTC (permalink / raw)
To: buildroot
Hi,
On Fri, 2009-01-23 at 13:49 +0100, Peter Korsgaard wrote:
> Does this also happen with latest trunk (E.G. where we have DirectFB
> 1.2.7)?
Yes. Seems to be a problem in the kernel headers.
Sven
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] DirectFB + linux-headers-2.6.28.1 compilation problem
2009-01-23 12:54 ` Sven Neumann
@ 2009-01-23 12:56 ` Ihar Hrachyshka
2009-01-23 13:05 ` Peter Korsgaard
2009-01-23 13:14 ` Peter Korsgaard
2009-01-23 12:58 ` Peter Korsgaard
1 sibling, 2 replies; 9+ messages in thread
From: Ihar Hrachyshka @ 2009-01-23 12:56 UTC (permalink / raw)
To: buildroot
On Fri, Jan 23, 2009 at 2:54 PM, Sven Neumann <s.neumann@phase-zero.de> wrote:
> Hi,
>
> On Fri, 2009-01-23 at 13:49 +0100, Peter Korsgaard wrote:
>
>> Does this also happen with latest trunk (E.G. where we have DirectFB
>> 1.2.7)?
>
> Yes. Seems to be a problem in the kernel headers.
Yes, it's a kernel headers bug. Should be fixed for next versions I think.
>
>
> Sven
>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] DirectFB + linux-headers-2.6.28.1 compilation problem
2009-01-23 12:54 ` Sven Neumann
2009-01-23 12:56 ` Ihar Hrachyshka
@ 2009-01-23 12:58 ` Peter Korsgaard
2009-01-23 13:00 ` Ihar Hrachyshka
1 sibling, 1 reply; 9+ messages in thread
From: Peter Korsgaard @ 2009-01-23 12:58 UTC (permalink / raw)
To: buildroot
>>>>> "Sven" == Sven Neumann <s.neumann@phase-zero.de> writes:
Sven> Hi,
Sven> On Fri, 2009-01-23 at 13:49 +0100, Peter Korsgaard wrote:
>> Does this also happen with latest trunk (E.G. where we have DirectFB
>> 1.2.7)?
Sven> Yes. Seems to be a problem in the kernel headers.
From a quick look at it, it more looks like directfb shouldn't be
including kernel headers in the first place.
I'll take a closer look at it now.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] DirectFB + linux-headers-2.6.28.1 compilation problem
2009-01-23 12:58 ` Peter Korsgaard
@ 2009-01-23 13:00 ` Ihar Hrachyshka
0 siblings, 0 replies; 9+ messages in thread
From: Ihar Hrachyshka @ 2009-01-23 13:00 UTC (permalink / raw)
To: buildroot
On Fri, Jan 23, 2009 at 2:58 PM, Peter Korsgaard <jacmet@uclibc.org> wrote:
>>>>>> "Sven" == Sven Neumann <s.neumann@phase-zero.de> writes:
>
> Sven> Hi,
> Sven> On Fri, 2009-01-23 at 13:49 +0100, Peter Korsgaard wrote:
>
> >> Does this also happen with latest trunk (E.G. where we have DirectFB
> >> 1.2.7)?
>
> Sven> Yes. Seems to be a problem in the kernel headers.
>
> From a quick look at it, it more looks like directfb shouldn't be
> including kernel headers in the first place.
>
> I'll take a closer look at it now.
DirectFB includes linux headers _for userspace_. It _should_ do it.
That's what these userspace includes for.
>
> --
> Bye, Peter Korsgaard
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] DirectFB + linux-headers-2.6.28.1 compilation problem
2009-01-23 12:56 ` Ihar Hrachyshka
@ 2009-01-23 13:05 ` Peter Korsgaard
2009-01-23 13:14 ` Peter Korsgaard
1 sibling, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2009-01-23 13:05 UTC (permalink / raw)
To: buildroot
>>>>> "Ihar" == Ihar Hrachyshka <ihar.hrachyshka@gmail.com> writes:
>> Yes. Seems to be a problem in the kernel headers.
Ihar> Yes, it's a kernel headers bug. Should be fixed for next versions I think.
Ahh yes, I see it now:
commit 60c20fb8c00a2b23308ae4517f145383bc66d291
Author: Andy Whitcroft <apw@canonical.com>
Date: Fri Jan 2 13:49:04 2009 +0000
serial: RS485 ioctl structure uses __u32 include linux/types.h
I don't see it in 2.6.28.2-rc1 though, but I'll backport to 2.6.28.1.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] DirectFB + linux-headers-2.6.28.1 compilation problem
2009-01-23 12:56 ` Ihar Hrachyshka
2009-01-23 13:05 ` Peter Korsgaard
@ 2009-01-23 13:14 ` Peter Korsgaard
1 sibling, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2009-01-23 13:14 UTC (permalink / raw)
To: buildroot
>>>>> "Ihar" == Ihar Hrachyshka <ihar.hrachyshka@gmail.com> writes:
Hi,
>> Yes. Seems to be a problem in the kernel headers.
Ihar> Yes, it's a kernel headers bug. Should be fixed for next versions I think.
Could you retry with r24981?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-01-23 13:14 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-23 11:10 [Buildroot] DirectFB + linux-headers-2.6.28.1 compilation problem Ihar Hrachyshka
2009-01-23 11:18 ` Sven Neumann
2009-01-23 12:49 ` Peter Korsgaard
2009-01-23 12:54 ` Sven Neumann
2009-01-23 12:56 ` Ihar Hrachyshka
2009-01-23 13:05 ` Peter Korsgaard
2009-01-23 13:14 ` Peter Korsgaard
2009-01-23 12:58 ` Peter Korsgaard
2009-01-23 13:00 ` Ihar Hrachyshka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox