<div dir="ltr">On 28 November 2017 at 06:13, Yi Zhao <span dir="ltr">&lt;<a href="mailto:yi.zhao@windriver.com" target="_blank">yi.zhao@windriver.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">ICU library libicudata is created with a wrong endianness if the host<br>
and target have different endianness. (e.g. build ICU for qemuppc on<br>
x86-64 host)<br>
See upstream bug report: <a href="http://bugs.icu-project.org/trac/ticket/11758" rel="noreferrer" target="_blank">http://bugs.icu-project.org/<wbr>trac/ticket/11758</a><br>
<br>
The discussion in oe-core mailing list:<br>
<a href="https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg65155.html" rel="noreferrer" target="_blank">https://www.mail-archive.com/<wbr>openembedded-core@lists.<wbr>openembedded.org/msg65155.html</a><br>
<br>
The root cause is the native pkgdata can not generate correct icu data<br>
for different endianness. By default, this data is built into the shared<br>
library libicudata that would cause it corrupt. But ICU also provides<br>
additional options for loading the data. With option<br>
--with-data-packaging=archive, ICU outputs a single icudt.dat file which<br>
can be loaded by the library.<br>
See document: <a href="http://userguide.icu-project.org/icudata" rel="noreferrer" target="_blank">http://userguide.icu-project.<wbr>org/icudata</a><br>
<br>
So for big endian system, we can use the separated data file which<br>
re-generates by icupkg and set the correct ICU_DATA environment variable<br>
to make sure the library can load the data without problems.<br></blockquote><div><br></div><div>Fails on various builds on the AB:</div><div><br>icupkg: unable to open input file &quot;TOPDIR/tmp/work/ppc7400-poky-linux/icu/60.1-r0/icu/source/data/in/icudt59l.dat&quot; <br></div><div><br></div><div><a href="http://errors.yoctoproject.org/Errors/Latest/?filter=%20icu:%20do_install&amp;type=failure">http://errors.yoctoproject.org/Errors/Latest/?filter=%20icu:%20do_install&amp;type=failure</a><br></div><div><br></div><div>Ross</div></div></div></div>