This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Trouble with Locale


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]