Skip to contentSkip to conversation

eglibc build problem

DISCUSSION Gary Thomas 2 participants 4 messages Jul 5, 2011

lore
Share & tools
lore
#0 lore raw

I have a distribution which is derived from Poky. It has been building great until recently, but now it fails when building 'eglibc' for the target with this error:

$ cat /home/local/p60_latest/tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/temp/log.do_install_locale.13725
cp: cannot stat `/home/local/p60_latest/tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/image/usr/bin/localedef': No such file or directory
ERROR: Function 'do_install_locale' failed (see /home/local/p60_latest/tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/temp/log.do_install_locale.13725 for further information)

Looking around in the eglibc build, I can't see localedef being built:

$ find tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-amltd-linux-gnueabi/ -name "locale*"
tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-amltd-linux-gnueabi/localedata
tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-amltd-linux-gnueabi/locale
tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-amltd-linux-gnueabi/intl/localealias.os.d
tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-amltd-linux-gnueabi/intl/localealias.o.d
tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-amltd-linux-gnueabi/intl/localealias.os
tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-amltd-linux-gnueabi/intl/localealias.o

However, if I build for the BeagleBoard using the same Poky tree, it does work and I see:

$ find tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/ -name "locale*"
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/localedata
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localename.os
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localename.o
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localeconv.os
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localeconv.o
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localedef.o.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localename.o.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localeconv.os.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localedef
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/locale.o
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/locale-spec.o.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localedef.o
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localename.os.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/locale.o.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localeconv.o.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/locale
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/locale-spec.o
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/intl/localealias.os.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/intl/localealias.o.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/intl/localealias.os
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/intl/localealias.o

Any ideas what would keep the localedef stuff from being built for my board whereas it is built for a standard board?

As I said, this has been working great up until some time recently. I can't see any hint in the commit logs of what might have changed to break it. ... that will teach me to take a 2 week holiday!

Thanks

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw
Quoted 44 lines · Gary Thomas

I have a distribution which is derived from Poky. It has been building great until recently, but now it fails when building 'eglibc' for the target with this error:

$ cat /home/local/p60_latest/tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/temp/log.do_install_locale.13725
cp: cannot stat `/home/local/p60_latest/tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/image/usr/bin/localedef': No such file or directory
ERROR: Function 'do_install_locale' failed (see /home/local/p60_latest/tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/temp/log.do_install_locale.13725 for further 
information)

Looking around in the eglibc build, I can't see localedef being built:

$ find tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-amltd-linux-gnueabi/ -name "locale*"
tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-amltd-linux-gnueabi/localedata
tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-amltd-linux-gnueabi/locale
tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-amltd-linux-gnueabi/intl/localealias.os.d
tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-amltd-linux-gnueabi/intl/localealias.o.d
tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-amltd-linux-gnueabi/intl/localealias.os
tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-amltd-linux-gnueabi/intl/localealias.o

However, if I build for the BeagleBoard using the same Poky tree, it does work and I see:

$ find tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/ -name "locale*"
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/localedata
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localename.os
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localename.o
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localeconv.os
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localeconv.o
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localedef.o.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localename.o.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localeconv.os.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localedef
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/locale.o
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/locale-spec.o.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localedef.o
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localename.os.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/locale.o.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localeconv.o.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/locale
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/locale-spec.o
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/intl/localealias.os.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/intl/localealias.o.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/intl/localealias.os
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/intl/localealias.o
Quoted 6 lines

Any ideas what would keep the localedef stuff from being built for my board whereas it is built for a standard board?

As I said, this has been working great up until some time recently. I can't see any hint in the commit logs of what might have changed to break it. ... that will teach me to take a 2 week holiday!

I'm going to guess that your distro overrides DISTRO_FEATURES and you are missing some of the new libc settings...

Cheers,

Richard

#2 lore raw
Quoted 48 lines · Richard Purdie
Quoted 47 lines · Gary Thomas

I have a distribution which is derived from Poky. It has been building great until recently, but now it fails when building 'eglibc' for the target with this error:

$ cat /home/local/p60_latest/tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/temp/log.do_install_locale.13725
cp: cannot stat `/home/local/p60_latest/tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/image/usr/bin/localedef': No such file or directory
ERROR: Function 'do_install_locale' failed (see /home/local/p60_latest/tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/temp/log.do_install_locale.13725 for further
information)

Looking around in the eglibc build, I can't see localedef being built:

$ find tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-amltd-linux-gnueabi/ -name "locale*"
tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-amltd-linux-gnueabi/localedata
tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-amltd-linux-gnueabi/locale
tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-amltd-linux-gnueabi/intl/localealias.os.d
tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-amltd-linux-gnueabi/intl/localealias.o.d
tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-amltd-linux-gnueabi/intl/localealias.os
tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-amltd-linux-gnueabi/intl/localealias.o

However, if I build for the BeagleBoard using the same Poky tree, it does work and I see:

$ find tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/ -name "locale*"
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/localedata
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localename.os
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localename.o
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localeconv.os
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localeconv.o
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localedef.o.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localename.o.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localeconv.os.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localedef
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/locale.o
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/locale-spec.o.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localedef.o
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localename.os.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/locale.o.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/localeconv.o.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/locale
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/locale/locale-spec.o
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/intl/localealias.os.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/intl/localealias.o.d
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/intl/localealias.os
tmp/work/armv7a-poky-linux-gnueabi/eglibc-2.13-r3+svnr14157/build-arm-poky-linux-gnueabi/intl/localealias.o

Any ideas what would keep the localedef stuff from being built for my board whereas it is built for a standard board?

Quoted 6 lines
Quoted 3 lines

As I said, this has been working great up until some time recently. I can't see any hint in the commit logs of what might have changed to break it. ... that will teach me to take a 2 week holiday!

I'm going to guess that your distro overrides DISTRO_FEATURES and you are missing some of the new libc settings...

Thanks, that does look promising.

That said, would this not then be a bug? DISTRO_FEATURES does not imply localedefs, but the recipe still expects it to be there?

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#3 lore raw
Quoted 9 lines · Gary Thomas
Quoted 8 lines · Richard Purdie
Quoted 6 lines · Gary Thomas

Any ideas what would keep the localedef stuff from being built for my board whereas it is built for a standard board?

As I said, this has been working great up until some time recently. I can't see any hint in the commit logs of what might have changed to break it. ... that will teach me to take a 2 week holiday!

Quoted 7 lines
Quoted 2 lines

I'm going to guess that your distro overrides DISTRO_FEATURES and you are missing some of the new libc settings...

Thanks, that does look promising.

That said, would this not then be a bug? DISTRO_FEATURES does not imply localedefs, but the recipe still expects it to be there?

It does sound like a bug, yes...

Cheers,

Richard