Skip to contentSkip to conversation

problem with locale

Buildroot William Wagner 3 participants 5 messages Oct 1, 2009 – Oct 2, 2009

lore
Share & tools
lore
#0 lore raw

Hello all,

Just started moving to latest buildroot dev tree. I have hit an error using the attached config, it is a pretty plain x86 config but with locale support.

It fails to build uClibc with this error:
LN include/sys/vm86.h
HOSTCC extra/locale/gen_wc8bit
extra/locale/gen_wc8bit.c: In function 'main':
extra/locale/gen_wc8bit.c:356: warning: array subscript is above array bounds
extra/locale/gen_wc8bit.c:415: warning: array subscript is above array bounds
extra/locale/gen_wc8bit.c:481: warning: array subscript is above array bounds
GEN extra/locale/codesets.txt
GEN extra/locale/c8tables.h
setlocale(LC_CTYPE,"en_US.UTF-8") failed!
make[1]: *** [extra/locale/c8tables.h] Error 1
make[1]: Leaving directory `/home/willw/buildroot/output/toolchain/uClibc-0.9.30.1'
make: *** [/home/willw/buildroot/output/toolchain/uClibc-0.9.30.1/.configured] Error 2

I vaguely remember seeing something on the mailing list previously but I have not been able to find it.

Any help much appreciated.

Will.

Signature · 14 lines
------------------------------------------------------------------------
Will Wagner                                     will_wagner at carallon.com
Development Manager                      Office Tel: +44 (0)20 7371 2032
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------


-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/xml
Size: 19179 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091001/8e591ef9/attachment.xml>
#1 lore raw
Quoted 17 lines · William Wagner

Hello all,

Just started moving to latest buildroot dev tree. I have hit an error using the attached config, it is a pretty plain x86 config but with locale support.

It fails to build uClibc with this error:
? LN include/sys/vm86.h
? HOSTCC extra/locale/gen_wc8bit
extra/locale/gen_wc8bit.c: In function 'main':
extra/locale/gen_wc8bit.c:356: warning: array subscript is above array bounds
extra/locale/gen_wc8bit.c:415: warning: array subscript is above array bounds
extra/locale/gen_wc8bit.c:481: warning: array subscript is above array bounds
? GEN extra/locale/codesets.txt

Quoted 8 lines

? GEN extra/locale/c8tables.h setlocale(LC_CTYPE,"en_US.UTF-8") failed!
make[1]: *** [extra/locale/c8tables.h] Error 1
make[1]: Leaving directory `/home/willw/buildroot/output/toolchain/uClibc-0.9.30.1'
make: *** [/home/willw/buildroot/output/toolchain/uClibc-0.9.30.1/.configured] Error 2

This looks like your host system does not support the en_US.UTF-8 locale, although that would seem unlikely. Is it listed by locale -a?

#2 lore raw
Quoted 20 lines · Will Newton
Quoted 11 lines

It fails to build uClibc with this error:
LN include/sys/vm86.h
HOSTCC extra/locale/gen_wc8bit
extra/locale/gen_wc8bit.c: In function 'main':
extra/locale/gen_wc8bit.c:356: warning: array subscript is above array bounds
extra/locale/gen_wc8bit.c:415: warning: array subscript is above array bounds
extra/locale/gen_wc8bit.c:481: warning: array subscript is above array bounds
GEN extra/locale/codesets.txt

Quoted 9 lines

GEN extra/locale/c8tables.h
setlocale(LC_CTYPE,"en_US.UTF-8") failed!
make[1]: *** [extra/locale/c8tables.h] Error 1
make[1]: Leaving directory `/home/willw/buildroot/output/toolchain/uClibc-0.9.30.1'
make: *** [/home/willw/buildroot/output/toolchain/uClibc-0.9.30.1/.configured] Error 2

Quoted 3 lines

This looks like your host system does not support the en_US.UTF-8 locale, although that would seem unlikely. Is it listed by locale -a?

locale -a lists:
C
en_GB.utf8
POSIX

Is the easiest way of fixing this just going to be to add the extra locale?

Thanks.

Will

Signature · 5 lines
------------------------------------------------------------------------
Will Wagner                                     will_wagner at carallon.com
Development Manager                      Office Tel: +44 (0)20 7371 2032
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------
#3 lore raw
Quoted 27 lines · William Wagner
Quoted 22 lines · Will Newton
Quoted 12 lines

It fails to build uClibc with this error:
? LN include/sys/vm86.h
? HOSTCC extra/locale/gen_wc8bit
extra/locale/gen_wc8bit.c: In function 'main':
extra/locale/gen_wc8bit.c:356: warning: array subscript is above array bounds
extra/locale/gen_wc8bit.c:415: warning: array subscript is above array bounds
extra/locale/gen_wc8bit.c:481: warning: array subscript is above array bounds
? GEN extra/locale/codesets.txt

Quoted 9 lines

? GEN extra/locale/c8tables.h setlocale(LC_CTYPE,"en_US.UTF-8") failed!
make[1]: *** [extra/locale/c8tables.h] Error 1
make[1]: Leaving directory `/home/willw/buildroot/output/toolchain/uClibc-0.9.30.1'
make: *** [/home/willw/buildroot/output/toolchain/uClibc-0.9.30.1/.configured] Error 2

Quoted 3 lines

This looks like your host system does not support the en_US.UTF-8 locale, although that would seem unlikely. Is it listed by locale -a?

Quoted 6 lines

locale -a lists:
C
en_GB.utf8
POSIX

Is the easiest way of fixing this just going to be to add the extra locale?

Yes, that will be the easiest way. I would not recommend looking at the locale code!

#4 lore raw
In reply to William Wagner

Yes (as documented)

On Oct 2, 2009 11:06 AM, "William Wagner" <[email protected]> wrote:

On 02/10/2009 10:00, Will Newton wrote: >> >> It fails to build uClibc with
this error: >> LN incl...
locale -a lists:
C
en_GB.utf8
POSIX

Is the easiest way of fixing this just going to be to add the extra locale?

Thanks.

Will

-- ------------------------------------------------------------------------
Will Wagner ...

_______________________________________________ buildroot mailing list
buildroot at busybox.net http://...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091002/65079914/attachment.htm>