Skip to contentSkip to conversation

Buildroot fail to build when configure for dev managment: dynamically with udev

Buildroot Martin Peevski 3 participants 6 messages Nov 16, 2012 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

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?

#1 lore raw
Quoted 22 lines · Martin Peevski

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

Quoted 2 lines

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...

Signature · 4 lines
br,
Zoltan Gyarmati
mail: mr.zoltan.gyarmati at gmail.com
freenode nick: zgyarmati
#3 lore raw
In reply to a message not in the archive
Quoted 29 lines · Martin Peevski
Quoted 28 lines · Zoltan Gyarmati
Quoted 25 lines · Martin Peevski

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?

Quoted 8 lines
Quoted 5 lines

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.

Signature · 4 lines
br,
Zoltan Gyarmati
mail: mr.zoltan.gyarmati at gmail.com
freenode nick: zgyarmati
#5 lore raw
In reply to a message not in the archive
Quoted 11 lines · Martin Peevski
Quoted 7 lines · Zoltan Gyarmati

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...

Signature · 4 lines
br,
Zoltan Gyarmati
mail: mr.zoltan.gyarmati at gmail.com
freenode nick: zgyarmati
#6 lore raw
In reply to Zoltan Gyarmati
Quoted 5 lines · Zoltan Gyarmati
Quoted 2 lines

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

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#7 lore raw
Quoted 17 lines · Thomas Petazzoni
Quoted 4 lines · Zoltan Gyarmati
Quoted 2 lines

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.

Quoted 8 lines

*) 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.