<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>796</bug_id>
          
          <creation_ts>2011-03-03 01:42:50 +0000</creation_ts>
          <short_desc>LSB: Some cases related to locale failed on libstdcpp and cpp-t2c test of LSB.</short_desc>
          <delta_ts>2011-04-18 10:58:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jingdong Lu">jingdong.lu</reporter>
          <assigned_to name="Nitin Kamble">nitin.a.kamble</assigned_to>
          <cc>jingdong.lu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>12231</commentid>
    <comment_count>0</comment_count>
    <who name="Jingdong Lu">jingdong.lu</who>
    <bug_when>2011-03-03 01:42:50 +0000</bug_when>
    <thetext>When we run library check of LSB on qemux86 and qemuppc, we got some failures
related to locale.

Test environment:
Platform: Qemu-x86, Qemu-ppc
lsb image: poky-image-lsb-qemux86-test.ext3(Feb 26th, auto-build server)
libstdc++ tests: 4.1.0-13
Cpp-T2C tests: 4.1.0-1

Part of error log:
/22_locale/codecvt/always_noconv/char/wrapped_env.cc 1 	failed 	
...
DejaGNUTest.command_1: /opt/lsb/test/lib/libstdcpp_4.1.0/_22_locale_codecvt_always_noconv_char_wrapped_env.exe
...
DejaGNUTest.command_output_1: terminate called after throwing an instance of &apos;std::runtime_error&apos;
DejaGNUTest.command_output_1: what(): locale::facet::_S_create_c_locale name not valid
...
DejaGNUTest.result_1: FAIL: 22_locale/codecvt/always_noconv/char/wrapped_env.cc execution test
INFO: qmtest.cause: 22_locale/codecvt/always_noconv/char/wrapped_env.cc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12232</commentid>
    <comment_count>1</comment_count>
    <who name="Jingdong Lu">jingdong.lu</who>
    <bug_when>2011-03-03 01:50:28 +0000</bug_when>
    <thetext>I think two factors cause these failures.
(1) locale configuration
    we need to install some locale packages(eglibc-binary-localedata-*, eglibc-charmap-*, eglibc-localedata-*, eglibc-gconv-*) and do necessary configuration ( eg: localedef -i en_US -f ISO-8859-15 en_US.ISO-8859-15 )

(2) libstdc++ should support locale
    Add &quot;--enable-clocale=gun&quot; option for gcc configuration explicitly to make libstdc++ support locale.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12233</commentid>
    <comment_count>2</comment_count>
    <who name="Jingdong Lu">jingdong.lu</who>
    <bug_when>2011-03-03 01:54:15 +0000</bug_when>
    <thetext>library check of lsb also failed when checking libstdc++.so because of lack of symbols about locale in libstdc++.

error log:
Did not find _ZNSt10moneypunctIcLb0EE24_M_initialize_moneypunctEP15__locale_structPKc (GLIBCXX_3.4) in libstdc++.so.6
Unmangled symbol name: std::moneypunct&lt;char, false&gt;::_M_initialize_moneypunct(__locale_struct*, char const*)
Did not find _ZNSt10moneypunctIcLb0EEC1EP15__locale_structPKcj (GLIBCXX_3.4) in libstdc++.so.6
Unmangled symbol name: std::moneypunct&lt;char, false&gt;::moneypunct(__locale_struct*, char const*, unsigned int)
Did not find _ZNSt10moneypunctIcLb0EEC2EP15__locale_structPKcj (GLIBCXX_3.4) in libstdc++.so.6
Unmangled symbol name: std::moneypunct&lt;char, false&gt;::moneypunct(__locale_struct*, char const*, unsigned int)
Did not find _ZNSt10moneypunctIcLb1EE24_M_initialize_moneypunctEP15__locale_structPKc (GLIBCXX_3.4) in libstdc++.so.6
Unmangled symbol name: std::moneypunct&lt;char, true&gt;::_M_initialize_moneypunct(__locale_struct*, char const*)
Did not find _ZNSt10moneypunctIcLb1EEC1EP15__locale_structPKcj (GLIBCXX_3.4) in libstdc++.so.6
Unmangled symbol name: std::moneypunct&lt;char, true&gt;::moneypunct(__locale_struct*, char const*, unsigned int)
Did not find _ZNSt10moneypunctIcLb1EEC2EP15__locale_structPKcj (GLIBCXX_3.4) in libstdc++.so.6
Unmangled symbol name: std::moneypunct&lt;char, true&gt;::moneypunct(__locale_struct*, char const*, unsigned int)
Did not find _ZNSt10moneypunctIwLb0EE24_M_initialize_moneypunctEP15__locale_structPKc (GLIBCXX_3.4) in libstdc++.so.6
Unmangled symbol name: std::moneypunct&lt;wchar_t, false&gt;::_M_initialize_moneypunct(__locale_struct*, char const*)
Did not find _ZNSt10moneypunctIwLb0EEC1EP15__locale_structPKcj (GLIBCXX_3.4) in libstdc++.so.6
Unmangled symbol name: std::moneypunct&lt;wchar_t, false&gt;::moneypunct(__locale_struct*, char const*, unsigned int)
Did not find _ZNSt10moneypunctIwLb0EEC2EP15__locale_structPKcj (GLIBCXX_3.4) in libstdc++.so.6
Unmangled symbol name: std::moneypunct&lt;wchar_t, false&gt;::moneypunct(__locale_struct*, char const*, unsigned int)
Did not find _ZNSt10moneypunctIwLb1EE24_M_initialize_moneypunctEP15__locale_structPKc (GLIBCXX_3.4) in libstdc++.so.6
Unmangled symbol name: std::moneypunct&lt;wchar_t, true&gt;::_M_initialize_moneypunct(__locale_struct*, char const*)
Did not find _ZNSt10moneypunctIwLb1EEC1EP15__locale_structPKcj (GLIBCXX_3.4) in libstdc++.so.6
Unmangled symbol name: std::moneypunct&lt;wchar_t, true&gt;::moneypunct(__locale_struct*, char const*, unsigned int)
Did not find _ZNSt10moneypunctIwLb1EEC2EP15__locale_structPKcj (GLIBCXX_3.4) in libstdc++.so.6
Unmangled symbol name: std::moneypunct&lt;wchar_t, true&gt;::moneypunct(__locale_struct*, char const*, unsigned int)
Did not find _ZNSt11__timepunctIcE23_M_initialize_timepunctEP15__locale_struct (GLIBCXX_3.4) in libstdc++.so.6
Unmangled symbol name: std::__timepunct&lt;char&gt;::_M_initialize_timepunct(__locale_struct*)
Did not find _ZNSt11__timepunctIcEC1EP15__locale_structPKcj (GLIBCXX_3.4) in libstdc++.so.6
Unmangled symbol name: std::__timepunct&lt;char&gt;::__timepunct(__locale_struct*, char const*, unsigned int)
Did not find _ZNSt11__timepunctIcEC2EP15__locale_structPKcj (GLIBCXX_3.4) in libstdc++.so.6
Unmangled symbol name: std::__timepunct&lt;char&gt;::__timepunct(__locale_struct*, char const*, unsigned int)
Did not find _ZNSt11__timepunctIwE23_M_initialize_timepunctEP15__locale_struct (GLIBCXX_3.4) in libstdc++.so.6
Unmangled symbol name: std::__timepunct&lt;wchar_t&gt;::_M_initialize_timepunct(__locale_struct*)
Did not find _ZNSt11__timepunctIwEC1EP15__locale_structPKcj (GLIBCXX_3.4) in libstdc++.so.6
Unmangled symbol name: std::__timepunct&lt;wchar_t&gt;::__timepunct(__locale_struct*, char const*, unsigned int)
Did not find _ZNSt11__timepunctIwEC2EP15__locale_structPKcj (GLIBCXX_3.4) in libstdc++.so.6
Unmangled symbol name: std::__timepunct&lt;wchar_t&gt;::__timepunct(__locale_struct*, char const*, unsigned int)

Compiling libstdc++ with &quot;--enable-clocale=gun&quot; makes the library test passed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12239</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-03-03 10:53:23 +0000</bug_when>
    <thetext>We need to full understand the impact of this change, may seem simple. This may not make the 1.0 release.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13331</commentid>
    <comment_count>4</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-04-18 10:58:31 +0000</bug_when>
    <thetext>http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=7b59ebe3c3c7781da6f08767af362ffdc52c82e6</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>