All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] uClibc building fails: was [RE: [arc-buildroot] [autobuild.buildroot.net] Your daily results for 2019-12-11]
@ 2019-12-12  9:23 Alexey Brodkin
  2019-12-12 10:41 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Brodkin @ 2019-12-12  9:23 UTC (permalink / raw)
  To: buildroot

Hi Thomas, all,

>     arc      |         uclibc-1.0.32          | http://autobuild.buildroot.net/results/d1b45b78b94387a7b15be7caec64847bd04af0f1/

That uClibc failure seem to be due to missing en_US.UTF-8 locale on the host.
We faced this while trying to build uClibc in Docker container with Ubuntu 18.04,
see https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/issues/207.

What really happens is:
------------------------------------>8--------------------------------
$ install -d libubacktrace/arc
make -C extra/locale locale_headers
gcc ../../extra/locale/gen_wc8bit.c  -o ../..//extra/locale/gen_wc8bit    -Os  -D__UCLIBC_GEN_LOCALE -I../..// -DCTYPE_PACKED=1 -DDO_WIDE_CHAR=1
echo "/home/auto_user/arc_gnu/uclibc-ng/extra/locale/../../extra/locale/charmaps/ASCII.pairs" > ../..//extra/locale/codesets.txt
echo ".../uclibc-ng/extra/locale/../../extra/locale/charmaps/ISO-8859-1.pairs" >> ../..//extra/locale/codesets.txt
../..//extra/locale/gen_wc8bit `cat ../..//extra/locale/codesets.txt` > ../..//extra/locale/c8tables.h
Makefile.in:163: recipe for target '../..//extra/locale/c8tables.h' failed
make[1]: *** [../..//extra/locale/c8tables.h] Error 1
Makefile.in:185: recipe for target 'headers' failed
make: *** [headers] Error 2
------------------------------------>8--------------------------------

This happens because on a previous step gen_wc8bit didn't create proper c8tables.h:
------------------------------------>8--------------------------------
$ ./gen_wc8bit cat codesets.txt
could not find a UTF8 locale ... please enable en_US.UTF-8

$ cat ./extra/locale/c8tables.h
could not find a UTF8 locale ... please enable en_US.UTF-8
------------------------------------>8--------------------------------

And the solution is as simple as installation of the locale.
On Debian/Ubuntu this could be done this way:
------------------------------------>8--------------------------------
$ sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
$ locale-gen
------------------------------------>8--------------------------------

From here http://autobuild.buildroot.net/results/d1b45b78b94387a7b15be7caec64847bd04af0f1/submitter
it looks like that's some Bootlin owned machine:
------------------------------------>8--------------------------------
Thomas Petazzoni (Bootlin server)
------------------------------------>8--------------------------------

Any possibility to check what's wrong with locales there?

-Alexey

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] uClibc building fails: was [RE: [arc-buildroot] [autobuild.buildroot.net] Your daily results for 2019-12-11]
  2019-12-12  9:23 [Buildroot] uClibc building fails: was [RE: [arc-buildroot] [autobuild.buildroot.net] Your daily results for 2019-12-11] Alexey Brodkin
@ 2019-12-12 10:41 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2019-12-12 10:41 UTC (permalink / raw)
  To: buildroot

Hello Alexey,

On Thu, 12 Dec 2019 09:23:04 +0000
Alexey Brodkin <Alexey.Brodkin@synopsys.com> wrote:

> And the solution is as simple as installation of the locale.
> On Debian/Ubuntu this could be done this way:
> ------------------------------------>8--------------------------------  
> $ sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
> $ locale-gen
> ------------------------------------>8--------------------------------  
> 
> From here http://autobuild.buildroot.net/results/d1b45b78b94387a7b15be7caec64847bd04af0f1/submitter
> it looks like that's some Bootlin owned machine:
> ------------------------------------>8--------------------------------  
> Thomas Petazzoni (Bootlin server)
> ------------------------------------>8--------------------------------  
> 
> Any possibility to check what's wrong with locales there?

Thanks for the heads up on this, it has been on my TODO list for a
while.

Since we bumped the host gcc requirement to gcc 4.8, I installed a
different Debian chroot (based on Debian Jessie) on my autobuilder, and
since it's a new installation, I did have any UTF-8 locale enabled.
I've done that now, which should hopefully fix the uClibc build.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-12 10:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-12  9:23 [Buildroot] uClibc building fails: was [RE: [arc-buildroot] [autobuild.buildroot.net] Your daily results for 2019-12-11] Alexey Brodkin
2019-12-12 10:41 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.