* [Buildroot] Buildroot fail to build when configure for dev managment: dynamically with udev
@ 2012-11-16 14:41 Martin Peevski
2012-11-16 14:54 ` Zoltan Gyarmati
0 siblings, 1 reply; 6+ messages in thread
From: Martin Peevski @ 2012-11-16 14:41 UTC (permalink / raw)
To: buildroot
Hi,
I tryed to build Buildroot with only rootfs, I have already built
Kernel image. Use external toolchain for the building. I configure
Buildroot for dynamically /dev managment with udev but during udev
building I got the following errors:
src/udev-builtin-input_id.c: In function 'test_key':
src/udev-builtin-input_id.c:165: error: 'BTN_TRIGGER_HAPPY' undeclared
(first use in this function)
src/udev-builtin-input_id.c:165: error: (Each undeclared identifier is
reported only once
src/udev-builtin-input_id.c:165: error: for each function it appears in.)
make[4]: *** [src/udevadm-udev-builtin-input_id.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: ***
[/home/martin/Desktop/sam9x5-linux-sources/rootfs/build/udev-182/.stamp_built]
Error 2
make: *** [all] Error 2
Can you, please, give me some advices?
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Buildroot fail to build when configure for dev managment: dynamically with udev
2012-11-16 14:41 [Buildroot] Buildroot fail to build when configure for dev managment: dynamically with udev Martin Peevski
@ 2012-11-16 14:54 ` Zoltan Gyarmati
[not found] ` <50A65565.9050001@ronetix.at>
0 siblings, 1 reply; 6+ messages in thread
From: Zoltan Gyarmati @ 2012-11-16 14:54 UTC (permalink / raw)
To: buildroot
On 11/16/2012 03:41 PM, Martin Peevski wrote:
> Hi,
>
> I tryed to build Buildroot with only rootfs, I have already built
> Kernel image. Use external toolchain for the building. I configure
> Buildroot for dynamically /dev managment with udev but during udev
> building I got the following errors:
>
> src/udev-builtin-input_id.c: In function 'test_key':
> src/udev-builtin-input_id.c:165: error: 'BTN_TRIGGER_HAPPY' undeclared
> (first use in this function)
> src/udev-builtin-input_id.c:165: error: (Each undeclared identifier is
> reported only once
> src/udev-builtin-input_id.c:165: error: for each function it appears in.)
> make[4]: *** [src/udevadm-udev-builtin-input_id.o] Error 1
> make[4]: *** Waiting for unfinished jobs....
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all] Error 2
> make[1]: ***
> [/home/martin/Desktop/sam9x5-linux-sources/rootfs/build/udev-182/.stamp_built]
> Error 2
> make: *** [all] Error 2
>
> Can you, please, give me some advices?
>
Hi Martin,
what version of kernel headers the toolchain uses? Most likely to
problem will be around the kernel header version...
--
br,
Zoltan Gyarmati
mail: mr.zoltan.gyarmati at gmail.com
freenode nick: zgyarmati
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Buildroot fail to build when configure for dev managment: dynamically with udev
[not found] ` <50A65565.9050001@ronetix.at>
@ 2012-11-16 15:02 ` Zoltan Gyarmati
[not found] ` <50A6577F.3030505@ronetix.at>
2012-11-16 15:45 ` Thomas Petazzoni
0 siblings, 2 replies; 6+ messages in thread
From: Zoltan Gyarmati @ 2012-11-16 15:02 UTC (permalink / raw)
To: buildroot
On 11/16/2012 04:01 PM, Martin Peevski wrote:
> On 16/11/12 16:54, Zoltan Gyarmati wrote:
>> On 11/16/2012 03:41 PM, Martin Peevski wrote:
>>> Hi,
>>>
>>> I tryed to build Buildroot with only rootfs, I have already
>>> built Kernel image. Use external toolchain for the building. I
>>> configure Buildroot for dynamically /dev managment with udev but
>>> during udev building I got the following errors:
>>>
>>> src/udev-builtin-input_id.c: In function 'test_key':
>>> src/udev-builtin-input_id.c:165: error: 'BTN_TRIGGER_HAPPY'
>>> undeclared (first use in this function)
>>> src/udev-builtin-input_id.c:165: error: (Each undeclared identifier
>>> is reported only once
>>> src/udev-builtin-input_id.c:165: error: for each function it appears
>>> in.)
>>> make[4]: *** [src/udevadm-udev-builtin-input_id.o] Error 1
>>> make[4]: *** Waiting for unfinished jobs....
>>> make[3]: *** [all-recursive] Error 1
>>> make[2]: *** [all] Error 2
>>> make[1]: ***
>>> [/home/martin/Desktop/sam9x5-linux-sources/rootfs/build/udev-182/.stamp_built]
>>> Error 2
>>> make: *** [all] Error 2
>>>
>>> Can you, please, give me some advices?
>>>
>>
>>
>> Hi Martin,
>>
>> what version of kernel headers the toolchain uses? Most likely to
>> problem will be around the kernel header version...
>>
>
> Thanks for the fast response but when I configure Buildroot to use
> external toolchain the Kernel headers option dissapear. Any other advice?
Hi,
yes, in this case it comes from the toolchain itself, sou you have to
check it in the toolchain.
--
br,
Zoltan Gyarmati
mail: mr.zoltan.gyarmati at gmail.com
freenode nick: zgyarmati
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Buildroot fail to build when configure for dev managment: dynamically with udev
[not found] ` <50A6577F.3030505@ronetix.at>
@ 2012-11-16 15:40 ` Zoltan Gyarmati
0 siblings, 0 replies; 6+ messages in thread
From: Zoltan Gyarmati @ 2012-11-16 15:40 UTC (permalink / raw)
To: buildroot
On 11/16/2012 04:10 PM, Martin Peevski wrote:
> On 16/11/12 17:02, Zoltan Gyarmati wrote:
>>
>> Hi,
>>
>> yes, in this case it comes from the toolchain itself, sou you have to
>> check it in the toolchain.
>>
>>
>
> Thanks! But how to do that? where in the toolchain must search and what?
>
Hi,
depends on the toolchain... just look around in the toolchain's directory.
PS,
let's try to stay on the maillist, maybe others are interested as well...
--
br,
Zoltan Gyarmati
mail: mr.zoltan.gyarmati at gmail.com
freenode nick: zgyarmati
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Buildroot fail to build when configure for dev managment: dynamically with udev
2012-11-16 15:02 ` Zoltan Gyarmati
[not found] ` <50A6577F.3030505@ronetix.at>
@ 2012-11-16 15:45 ` Thomas Petazzoni
2012-11-16 15:53 ` Martin Peevski
1 sibling, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2012-11-16 15:45 UTC (permalink / raw)
To: buildroot
On Fri, 16 Nov 2012 16:02:50 +0100, Zoltan Gyarmati wrote:
> > Thanks for the fast response but when I configure Buildroot to use
> > external toolchain the Kernel headers option dissapear. Any other advice?
>
> yes, in this case it comes from the toolchain itself, sou you have to
> check it in the toolchain.
If Martin is using the external toolchain backend, then he cannot check
anything related to the kernel headers version in the menuconfig.
External toolchains are pre-built toolchains, so Buildroot just uses
them as-is, you have no way of changing the Buildroot version.
Martin: your external toolchain is using too old kernel headers to
build udev. So your options are:
*) Use a more recent external toolchain that will have more recent
kernel headers.
*) Add a patch to udev that defines BTN_TRIGGER_HAPPY to the correct
value when it is not already defined by kernel headers.
BTW, which external toolchain are you using?
Thanks,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Buildroot fail to build when configure for dev managment: dynamically with udev
2012-11-16 15:45 ` Thomas Petazzoni
@ 2012-11-16 15:53 ` Martin Peevski
0 siblings, 0 replies; 6+ messages in thread
From: Martin Peevski @ 2012-11-16 15:53 UTC (permalink / raw)
To: buildroot
On 16/11/12 17:45, Thomas Petazzoni wrote:
> On Fri, 16 Nov 2012 16:02:50 +0100, Zoltan Gyarmati wrote:
>
>>> Thanks for the fast response but when I configure Buildroot to use
>>> external toolchain the Kernel headers option dissapear. Any other advice?
>> yes, in this case it comes from the toolchain itself, sou you have to
>> check it in the toolchain.
> If Martin is using the external toolchain backend, then he cannot check
> anything related to the kernel headers version in the menuconfig.
> External toolchains are pre-built toolchains, so Buildroot just uses
> them as-is, you have no way of changing the Buildroot version.
>
> Martin: your external toolchain is using too old kernel headers to
> build udev. So your options are:
>
> *) Use a more recent external toolchain that will have more recent
> kernel headers.
>
> *) Add a patch to udev that defines BTN_TRIGGER_HAPPY to the correct
> value when it is not already defined by kernel headers.
>
> BTW, which external toolchain are you using?
>
> Thanks,
>
> Thomas
Thanks, Thomas! I use arm-oe-gnueabi- toolchain. Can you explain how to
add a patch to udev to correct the problem?
I'm afraid of using another toolchain because I compile the Kernel and
the rootfs separately.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-11-16 15:53 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-16 14:41 [Buildroot] Buildroot fail to build when configure for dev managment: dynamically with udev Martin Peevski
2012-11-16 14:54 ` Zoltan Gyarmati
[not found] ` <50A65565.9050001@ronetix.at>
2012-11-16 15:02 ` Zoltan Gyarmati
[not found] ` <50A6577F.3030505@ronetix.at>
2012-11-16 15:40 ` Zoltan Gyarmati
2012-11-16 15:45 ` Thomas Petazzoni
2012-11-16 15:53 ` Martin Peevski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox