public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Trouble with Locale
@ 2016-08-16  0:57 Kenneth Adam Miller
  2016-08-17  3:45 ` Kenneth Adam Miller
  0 siblings, 1 reply; 7+ messages in thread
From: Kenneth Adam Miller @ 2016-08-16  0:57 UTC (permalink / raw)
  To: crossgcc

Hello all,

I am building crosstool-ng starting with this small script:


curl -sL https://raw.githubusercontent.com/rust-lang/rust-buildbot/a35c53e21a789cc782ec51f2fdefc1e3f8767c42/slaves/linux-cross/build_toolchain_root.sh
| bash

mkdir /x-tools

mkdir ~/ct

cd ~/ct

ct-ng menuconfig

# Note: picked the following options...
# Target options > Target architecture = x86
# Target options > Bitness = 64
# Operating System > Linux kernel version = 3.2.72
# C-library > C library = uClibc
# C compiler > option "C++" enabled

ct-ng build


------

But I'm getting an error with
.build/x86_64-unknown-linux-uclibc/build/build-libc-headers/extra/locale/c8tables.h
containing a message about a missing information, asking to enable
en_US.utf-8


My thought is that I may be missing some locale package on my box that
I'm building with, but I have gcc-5-locales and locales packages each
installed on my ubuntu 16.04. I don't know what to do to get it to
move past this error.

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: Trouble with Locale
  2016-08-16  0:57 Trouble with Locale Kenneth Adam Miller
@ 2016-08-17  3:45 ` Kenneth Adam Miller
  2016-08-17  4:09   ` Kenneth Adam Miller
  0 siblings, 1 reply; 7+ messages in thread
From: Kenneth Adam Miller @ 2016-08-17  3:45 UTC (permalink / raw)
  To: crossgcc

I did have a setting wherein I specified a local configuration for the
uclibc library to be built by, and had enabled locales and wchar...

On Mon, Aug 15, 2016 at 8:57 PM, Kenneth Adam Miller
<kennethadammiller@gmail.com> wrote:
> Hello all,
>
> I am building crosstool-ng starting with this small script:
>
>
> curl -sL https://raw.githubusercontent.com/rust-lang/rust-buildbot/a35c53e21a789cc782ec51f2fdefc1e3f8767c42/slaves/linux-cross/build_toolchain_root.sh
> | bash
>
> mkdir /x-tools
>
> mkdir ~/ct
>
> cd ~/ct
>
> ct-ng menuconfig
>
> # Note: picked the following options...
> # Target options > Target architecture = x86
> # Target options > Bitness = 64
> # Operating System > Linux kernel version = 3.2.72
> # C-library > C library = uClibc
> # C compiler > option "C++" enabled
>
> ct-ng build
>
>
> ------
>
> But I'm getting an error with
> .build/x86_64-unknown-linux-uclibc/build/build-libc-headers/extra/locale/c8tables.h
> containing a message about a missing information, asking to enable
> en_US.utf-8
>
>
> My thought is that I may be missing some locale package on my box that
> I'm building with, but I have gcc-5-locales and locales packages each
> installed on my ubuntu 16.04. I don't know what to do to get it to
> move past this error.

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: Trouble with Locale
  2016-08-17  3:45 ` Kenneth Adam Miller
@ 2016-08-17  4:09   ` Kenneth Adam Miller
  2016-08-17  5:48     ` Waldemar Brodkorb
  0 siblings, 1 reply; 7+ messages in thread
From: Kenneth Adam Miller @ 2016-08-17  4:09 UTC (permalink / raw)
  To: crossgcc

In addition, the particular error I got was:

[INFO ]  Installing C library headers
[ERROR]    make[2]: *** [../..//extra/locale/c8tables.h] Error 1
[ERROR]    make[1]: *** [headers] Error 2
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing C library headers'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from:
do_libc_start_files[scripts/build/libc/uClibc.sh@117]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@646]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>
'/usr/local/share/doc/crosstool-ng/crosstool-ng-1.22.0/B - Known
issues.txt'
[ERROR]
[ERROR]  (elapsed: 16:13.99)
[16:15] / make: *** [build] Error 2



And the file c8tables.h contains:

"could not find a UTF8 locale ... please enable en_US.UTF-8"

On Tue, Aug 16, 2016 at 11:44 PM, Kenneth Adam Miller
<kennethadammiller@gmail.com> wrote:
>
> I did have a setting wherein I specified a local configuration for the
> uclibc library to be built by, and had enabled locales and wchar...
>
> On Mon, Aug 15, 2016 at 8:57 PM, Kenneth Adam Miller
> <kennethadammiller@gmail.com> wrote:
> > Hello all,
> >
> > I am building crosstool-ng starting with this small script:
> >
> >
> > curl -sL https://raw.githubusercontent.com/rust-lang/rust-buildbot/a35c53e21a789cc782ec51f2fdefc1e3f8767c42/slaves/linux-cross/build_toolchain_root.sh
> > | bash
> >
> > mkdir /x-tools
> >
> > mkdir ~/ct
> >
> > cd ~/ct
> >
> > ct-ng menuconfig
> >
> > # Note: picked the following options...
> > # Target options > Target architecture = x86
> > # Target options > Bitness = 64
> > # Operating System > Linux kernel version = 3.2.72
> > # C-library > C library = uClibc
> > # C compiler > option "C++" enabled
> >
> > ct-ng build
> >
> >
> > ------
> >
> > But I'm getting an error with
> > .build/x86_64-unknown-linux-uclibc/build/build-libc-headers/extra/locale/c8tables.h
> > containing a message about a missing information, asking to enable
> > en_US.utf-8
> >
> >
> > My thought is that I may be missing some locale package on my box that
> > I'm building with, but I have gcc-5-locales and locales packages each
> > installed on my ubuntu 16.04. I don't know what to do to get it to
> > move past this error.

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: Trouble with Locale
  2016-08-17  4:09   ` Kenneth Adam Miller
@ 2016-08-17  5:48     ` Waldemar Brodkorb
       [not found]       ` <CAK7rcp-XuU26jx1aSkKjXP88gEGy5E2K0XG=ZxzBT79rK9WwLQ@mail.gmail.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Waldemar Brodkorb @ 2016-08-17  5:48 UTC (permalink / raw)
  To: Kenneth Adam Miller; +Cc: crossgcc

Hi,
Kenneth Adam Miller wrote,

> In addition, the particular error I got was:
> 
> [INFO ]  Installing C library headers
> [ERROR]    make[2]: *** [../..//extra/locale/c8tables.h] Error 1
> [ERROR]    make[1]: *** [headers] Error 2
> [ERROR]
> [ERROR]  >>
> [ERROR]  >>  Build failed in step 'Installing C library headers'
> [ERROR]  >>        called in step '(top-level)'
> [ERROR]  >>
> [ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
> [ERROR]  >>        called from:
> do_libc_start_files[scripts/build/libc/uClibc.sh@117]
> [ERROR]  >>        called from: main[scripts/crosstool-NG.sh@646]
> [ERROR]  >>
> [ERROR]  >>  For more info on this error, look at the file: 'build.log'
> [ERROR]  >>  There is a list of known issues, some with workarounds, in:
> [ERROR]  >>
> '/usr/local/share/doc/crosstool-ng/crosstool-ng-1.22.0/B - Known
> issues.txt'
> [ERROR]
> [ERROR]  (elapsed: 16:13.99)
> [16:15] / make: *** [build] Error 2
> 
> 
> 
> And the file c8tables.h contains:
> 
> "could not find a UTF8 locale ... please enable en_US.UTF-8"
> 
> On Tue, Aug 16, 2016 at 11:44 PM, Kenneth Adam Miller
> <kennethadammiller@gmail.com> wrote:
> >
> > I did have a setting wherein I specified a local configuration for the
> > uclibc library to be built by, and had enabled locales and wchar...
> >
> > On Mon, Aug 15, 2016 at 8:57 PM, Kenneth Adam Miller
> > <kennethadammiller@gmail.com> wrote:
> > > Hello all,
> > >
> > > I am building crosstool-ng starting with this small script:
> > >
> > >
> > > curl -sL https://raw.githubusercontent.com/rust-lang/rust-buildbot/a35c53e21a789cc782ec51f2fdefc1e3f8767c42/slaves/linux-cross/build_toolchain_root.sh
> > > | bash
> > >
> > > mkdir /x-tools
> > >
> > > mkdir ~/ct
> > >
> > > cd ~/ct
> > >
> > > ct-ng menuconfig
> > >
> > > # Note: picked the following options...
> > > # Target options > Target architecture = x86
> > > # Target options > Bitness = 64
> > > # Operating System > Linux kernel version = 3.2.72
> > > # C-library > C library = uClibc
> > > # C compiler > option "C++" enabled
> > >
> > > ct-ng build
> > >
> > >
> > > ------
> > >
> > > But I'm getting an error with
> > > .build/x86_64-unknown-linux-uclibc/build/build-libc-headers/extra/locale/c8tables.h
> > > containing a message about a missing information, asking to enable
> > > en_US.utf-8
> > >
> > >
> > > My thought is that I may be missing some locale package on my box that
> > > I'm building with, but I have gcc-5-locales and locales packages each
> > > installed on my ubuntu 16.04. I don't know what to do to get it to
> > > move past this error.

What version of uClibc is used?
Is there really a specific use case for an embedded device or
project where you need uClibc locale support?

best regards
 Waldemar

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: Trouble with Locale
       [not found]       ` <CAK7rcp-XuU26jx1aSkKjXP88gEGy5E2K0XG=ZxzBT79rK9WwLQ@mail.gmail.com>
@ 2016-08-17 14:29         ` Kenneth Adam Miller
  2016-08-17 19:39         ` Waldemar Brodkorb
  1 sibling, 0 replies; 7+ messages in thread
From: Kenneth Adam Miller @ 2016-08-17 14:29 UTC (permalink / raw)
  To: Waldemar Brodkorb; +Cc: crossgcc

I should also add that the reason I believe I need it is to check the
libc tests that rust provides in order to know that libc is operating
correctly. Please

I'm adding a uclibc cross compile target for the rust compiler. I am
using the 1.0.9 version, the most up to date that crosstool allows. It
isn't so much embedded device support that is desired as it is that we
want to reduce our trusted computing base as much as possible. Musl
was another possibility, but I haven't had time to explore that route.

Can a uclibc cross compiler be compiled with locale support at all?

> On Aug 17, 2016 1:48 AM, "Waldemar Brodkorb" <wbx@openadk.org> wrote:
>>
>> Hi,
>> Kenneth Adam Miller wrote,
>>
>> > In addition, the particular error I got was:
>> >
>> > [INFO ]  Installing C library headers
>> > [ERROR]    make[2]: *** [../..//extra/locale/c8tables.h] Error 1
>> > [ERROR]    make[1]: *** [headers] Error 2
>> > [ERROR]
>> > [ERROR]  >>
>> > [ERROR]  >>  Build failed in step 'Installing C library headers'
>> > [ERROR]  >>        called in step '(top-level)'
>> > [ERROR]  >>
>> > [ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
>> > [ERROR]  >>        called from:
>> > do_libc_start_files[scripts/build/libc/uClibc.sh@117]
>> > [ERROR]  >>        called from: main[scripts/crosstool-NG.sh@646]
>> > [ERROR]  >>
>> > [ERROR]  >>  For more info on this error, look at the file: 'build.log'
>> > [ERROR]  >>  There is a list of known issues, some with workarounds, in:
>> > [ERROR]  >>
>> > '/usr/local/share/doc/crosstool-ng/crosstool-ng-1.22.0/B - Known
>> > issues.txt'
>> > [ERROR]
>> > [ERROR]  (elapsed: 16:13.99)
>> > [16:15] / make: *** [build] Error 2
>> >
>> >
>> >
>> > And the file c8tables.h contains:
>> >
>> > "could not find a UTF8 locale ... please enable en_US.UTF-8"
>> >
>> > On Tue, Aug 16, 2016 at 11:44 PM, Kenneth Adam Miller
>> > <kennethadammiller@gmail.com> wrote:
>> > >
>> > > I did have a setting wherein I specified a local configuration for the
>> > > uclibc library to be built by, and had enabled locales and wchar...
>> > >
>> > > On Mon, Aug 15, 2016 at 8:57 PM, Kenneth Adam Miller
>> > > <kennethadammiller@gmail.com> wrote:
>> > > > Hello all,
>> > > >
>> > > > I am building crosstool-ng starting with this small script:
>> > > >
>> > > >
>> > > > curl -sL https://raw.githubusercontent.com/rust-lang/rust-buildbot/a35c53e21a789cc782ec51f2fdefc1e3f8767c42/slaves/linux-cross/build_toolchain_root.sh
>> > > > | bash
>> > > >
>> > > > mkdir /x-tools
>> > > >
>> > > > mkdir ~/ct
>> > > >
>> > > > cd ~/ct
>> > > >
>> > > > ct-ng menuconfig
>> > > >
>> > > > # Note: picked the following options...
>> > > > # Target options > Target architecture = x86
>> > > > # Target options > Bitness = 64
>> > > > # Operating System > Linux kernel version = 3.2.72
>> > > > # C-library > C library = uClibc
>> > > > # C compiler > option "C++" enabled
>> > > >
>> > > > ct-ng build
>> > > >
>> > > >
>> > > > ------
>> > > >
>> > > > But I'm getting an error with
>> > > > .build/x86_64-unknown-linux-uclibc/build/build-libc-headers/extra/locale/c8tables.h
>> > > > containing a message about a missing information, asking to enable
>> > > > en_US.utf-8
>> > > >
>> > > >
>> > > > My thought is that I may be missing some locale package on my box that
>> > > > I'm building with, but I have gcc-5-locales and locales packages each
>> > > > installed on my ubuntu 16.04. I don't know what to do to get it to
>> > > > move past this error.
>>
>> What version of uClibc is used?
>> Is there really a specific use case for an embedded device or
>> project where you need uClibc locale support?
>>
>> best regards
>>  Waldemar

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: Trouble with Locale
       [not found]       ` <CAK7rcp-XuU26jx1aSkKjXP88gEGy5E2K0XG=ZxzBT79rK9WwLQ@mail.gmail.com>
  2016-08-17 14:29         ` Kenneth Adam Miller
@ 2016-08-17 19:39         ` Waldemar Brodkorb
  2016-08-17 20:20           ` Kenneth Adam Miller
  1 sibling, 1 reply; 7+ messages in thread
From: Waldemar Brodkorb @ 2016-08-17 19:39 UTC (permalink / raw)
  To: Kenneth Adam Miller; +Cc: Waldemar Brodkorb, crossgcc

Hi,
Kenneth Adam Miller wrote,

> I'm adding a uclibc cross compile target for the rust compiler. I am using the
> 1.0.9 version, the most up to date that cross tool allows. It isn't so much
> embedded device support that is desired as it is that we want to reduce our
> trusted computing base as much as possible. Musl was another possibility, but I
> haven't had time to explore that route.
> 
> Can a uclibc cross compiler be compiled with locale support at all?

Yes. Can you cross-check with internal toolchain support in Buildroot?
They use the latest uClibc-ng version and I remember to have fixed
an Locale problem in the past for some Host systems.

best regards
 Waldemar

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: Trouble with Locale
  2016-08-17 19:39         ` Waldemar Brodkorb
@ 2016-08-17 20:20           ` Kenneth Adam Miller
  0 siblings, 0 replies; 7+ messages in thread
From: Kenneth Adam Miller @ 2016-08-17 20:20 UTC (permalink / raw)
  To: Waldemar Brodkorb; +Cc: crossgcc

Well, I did need to be able to use whichever toolchain was specified
to build rust. I suppose there is a dedicated directory for the
particular buildroot internal toolchain. I will try and point the rust
compilation toward that in order to maintain a common version of
underlying dependencies between software.

Does this sound like a correct approach?

On Wed, Aug 17, 2016 at 3:39 PM, Waldemar Brodkorb <wbx@openadk.org> wrote:
> Hi,
> Kenneth Adam Miller wrote,
>
>> I'm adding a uclibc cross compile target for the rust compiler. I am using the
>> 1.0.9 version, the most up to date that cross tool allows. It isn't so much
>> embedded device support that is desired as it is that we want to reduce our
>> trusted computing base as much as possible. Musl was another possibility, but I
>> haven't had time to explore that route.
>>
>> Can a uclibc cross compiler be compiled with locale support at all?
>
> Yes. Can you cross-check with internal toolchain support in Buildroot?
> They use the latest uClibc-ng version and I remember to have fixed
> an Locale problem in the past for some Host systems.
>
> best regards
>  Waldemar

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

end of thread, other threads:[~2016-08-17 20:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-16  0:57 Trouble with Locale Kenneth Adam Miller
2016-08-17  3:45 ` Kenneth Adam Miller
2016-08-17  4:09   ` Kenneth Adam Miller
2016-08-17  5:48     ` Waldemar Brodkorb
     [not found]       ` <CAK7rcp-XuU26jx1aSkKjXP88gEGy5E2K0XG=ZxzBT79rK9WwLQ@mail.gmail.com>
2016-08-17 14:29         ` Kenneth Adam Miller
2016-08-17 19:39         ` Waldemar Brodkorb
2016-08-17 20:20           ` Kenneth Adam Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).