Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: openembedded-core@lists.openembedded.org
Subject: ICU not working on powerpc (ppce500v2)
Date: Wed, 03 Jun 2015 11:42:21 +0200	[thread overview]
Message-ID: <556ECBFD.5020203@denx.de> (raw)

Hi,

I get an issue with icu (54.1, I am testing with Yocto-fido) on powepc
(I am testing with a p2020rdb from Freescale). Running icuinfo on target
I get:

 <icuSystemParams type="icu4c">
    <param name="copyright"> Copyright (C) 2014, International Business
Machines Corporation and others. All Rights Reserved. </param>
    <param name="product">icu4c</param>
    <param name="product.full">International Components for Unicode for
C/C++</param>
    <param name="version">54.1</param>
    <param name="version.unicode">7.0</param>
    <param name="platform.number">4000</param>
    <param name="platform.type">Linux</param>
    <param name="locale.default">en_US_POSIX</param>
    <param name="locale.default.bcp47">en-US-u-va-posix</param>
    <param name="converter.default">US-ASCII</param>
    <param name="icudata.name">icudt54b</param>
    <param name="icudata.path"></param>
  <!-- n="cldr.version" ERROR: U_MISSING_RESOURCE_ERROR -->
  <!-- n="tz.version" ERROR: U_MISSING_RESOURCE_ERROR -->
    <param name="tz.default">Universal</param>
    <param name="cpu.bits">32</param>
    <param name="cpu.big_endian">1</param>
    <param name="os.wchar_width">4</param>
    <param name="os.charset_family">0</param>
    <param name="os.host">powerpc-unknown-linux-gnuspe</param>
    <param name="build.build">x86_64-pc-linux-gnu</param>
    <param name="build.cc">powerpc-linux-gnuspe-gcc -m32 -mcpu=8548
-mabi=spe -mspe -mfloat-gprs=double
--sysroot=/opt/work/sbabic/eldk/p2020rdb/tmp/sysroots/generic-powerpc-e500v2</param>
    <param name="build.cxx">powerpc-linux-gnuspe-g++ -m32 -mcpu=8548
-mabi=spe -mspe -mfloat-gprs=double
--sysroot=/opt/work/sbabic/eldk/p2020rdb/tmp/sysroots/generic-powerpc-e500v2</param>
    <param name="uconfig.internal_digitlist">1</param>
    <param name="uconfig.have_parseallinput">1</param>
    <param name="uconfig.format_fastpaths_49">1</param>
 </icuSystemParams>


ICU Initialization returned: U_INVALID_FORMAT_ERROR
Plugin file is: /usr/lib/icu/icuplugins54.txt

cldr.version and tz.version report errors and even simple tests do not
work. If I copy all .res files (icu54 directory) and then I set ICU_DATA
to that directory, it works - that means there should be an issue by
generating libicudata with PowerPc, or at least with e500v2.

I did exactly the same tests with an ARM platform (i.MX6), everything
works as expected. I suspect some issue due to endianess, but checking
the header in the libicudata it looks correct ( at least the first bytes).

I saw :

commit f5205c568cb0d29059c4d8c2dc200e435787f5d8
Author: Khem Raj <raj.khem@gmail.com>
Date:   Sat Feb 15 22:04:05 2014 +0000

    icu: Disable the default LDFLAGSICUDT for target compile


and, as it looks like ARM related, I have already tried to revert it,
without any success. Does anyone have a hint ?

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
=====================================================================


             reply	other threads:[~2015-06-03  9:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-03  9:42 Stefano Babic [this message]
2015-08-14  7:04 ` ICU not working on powerpc (ppce500v2) Khem Raj

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=556ECBFD.5020203@denx.de \
    --to=sbabic@denx.de \
    --cc=openembedded-core@lists.openembedded.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