<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>Problem generating binary locales</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>I'm interested in using Openembedded to build the root filesystem for our ARM based SoC and to this end have been experimenting with building for the standard Mainstone target included with Openembedded before making the leap to defining our own machine/distro.<BR>
<BR>
I've encountered difficulties generating the binary locale data and was hoping someone else had come across and solved the same problems (our target has a maximum of 64MB of RAM and so apparently can't support generating locale data on first boot).<BR>
<BR>
I've modified my local.conf to set ENABLE_BINARY_LOCALE_GENERATION to 1. I'm developing on an x86_84 system and have built qemu versions 0.8.2 and 0.9.0 from sources. With the std qemu sources I received an error like:<BR>
<BR>
qemu: Unsupported syscall: 983045<BR>
<BR>
Seaching for a solution to this I came across:<BR>
<BR>
patch.qemu_nptl<BR>
<BR>
from<BR>
<BR>
<A HREF="http://www.freaknet.org/martin/qemu/patch.qemu-0.8.2_nptl-pb147082-mg1">http://www.freaknet.org/martin/qemu/patch.qemu-0.8.2_nptl-pb147082-mg1</A><BR>
<BR>
which looked promising. This patch applied cleanly to qemu 0.8.2, but generated the following error when building the bootstrap-image target:<BR>
<BR>
NOTE: Psyco JIT Compiler (<A HREF="http://psyco.sf.net">http://psyco.sf.net</A>) not available. Install it to increase performance.<BR>
NOTE: Using cache in '/home/brian/openembedded/bitbake_tmp/cache/mainstone'<BR>
NOTE: Handling BitBake files: / (4066/4066) [100 %]<BR>
NOTE: Parsing finished. 3887 cached, 0 parsed, 179 skipped, 0 masked.<BR>
<BR>
NOTE: build 200703051237: started<BR>
<BR>
OE Build Configuration:<BR>
BB_VERSION = "1.6.3"<BR>
OE_REVISION = "cdd2dc161d23f1b6dc86af476b48fab577e720bf"<BR>
TARGET_ARCH = "arm"<BR>
TARGET_OS = "linux"<BR>
MACHINE = "mainstone"<BR>
DISTRO = "generic"<BR>
DISTRO_VERSION = ".dev-snapshot-20070305"<BR>
TARGET_FPU = "soft"<BR>
<BR>
NOTE: preferred version 2.5 of glibc not available<BR>
NOTE: package glibc-2.5: started<BR>
NOTE: package glibc-2.5-r4: task do_package: started<BR>
NOTE: preparing tree for binary locale generation<BR>
NOTE: generating locale es_NI (UTF-8)<BR>
qemu: uncaught target signal 11 (Segmentation fault) - exiting<BR>
NOTE: Task failed: localedef returned an error (command was PATH="/home/brian/openembedded/bitbake_tmp/staging/x86_64-linux/bin/arm-linux:/home/brian/openembedded/bitbake_tmp/staging/x86_64-linux/bin:/home/brian/openembedded/bitbake_tmp/cross/bin:/home/brian/qemu/install/qemu-0.9.0-patched/bin/:/home/brian/openembedded/bitbake/bin/:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/brian/bin" I18NPATH="/usr/share/i18n" qemu-arm -r 2.6.16 -L /home/brian/openembedded/bitbake_tmp/work/armv5te-linux/glibc-2.5-r4/locale-tree /home/brian/openembedded/bitbake_tmp/work/armv5te-linux/glibc-2.5-r4/locale-tree/bin/localedef --force --old-style --no-archive --prefix=/home/brian/openembedded/bitbake_tmp/work/armv5te-linux/glibc-2.5-r4/locale-tree --inputfile=/usr/share/i18n/locales/es_NI --charmap=UTF-8 es_NI).<BR>
NOTE: package glibc-2.5-r4: task do_package: failed<BR>
ERROR: TaskFailed event exception, aborting<BR>
NOTE: package glibc-2.5: failed<BR>
<BR>
I then applied the patch to qemu 0.9.0 in the hope this might help (a little manual tweaking to the patch was required), but again received a seg fault when building the bootstarp-image target.<BR>
<BR>
Does anyone know of additional/alternative patches to qemu that can make the locale build succeed?<BR>
<BR>
Brian.</FONT>
</P>
</BODY>
</HTML>