public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
From: Kenneth Adam Miller <kennethadammiller@gmail.com>
To: Waldemar Brodkorb <wbx@openadk.org>
Cc: crossgcc@sourceware.org
Subject: Re: Trouble with Locale
Date: Wed, 17 Aug 2016 14:29:00 -0000	[thread overview]
Message-ID: <CAK7rcp9CBwo-J21EOLNg07bZY+1aP1rRsO3virhqnO6kEzY9Hw@mail.gmail.com> (raw)
In-Reply-To: <CAK7rcp-XuU26jx1aSkKjXP88gEGy5E2K0XG=ZxzBT79rK9WwLQ@mail.gmail.com>

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

  parent reply	other threads:[~2016-08-17 14:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-16  0:57 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 [this message]
2016-08-17 19:39         ` Waldemar Brodkorb
2016-08-17 20:20           ` Kenneth Adam Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAK7rcp9CBwo-J21EOLNg07bZY+1aP1rRsO3virhqnO6kEzY9Hw@mail.gmail.com \
    --to=kennethadammiller@gmail.com \
    --cc=crossgcc@sourceware.org \
    --cc=wbx@openadk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).