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 'std::runtime_error' 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
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 "--enable-clocale=gun" option for gcc configuration explicitly to make libstdc++ support locale.
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<char, false>::_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<char, false>::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<char, false>::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<char, true>::_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<char, true>::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<char, true>::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<wchar_t, false>::_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<wchar_t, false>::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<wchar_t, false>::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<wchar_t, true>::_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<wchar_t, true>::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<wchar_t, true>::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<char>::_M_initialize_timepunct(__locale_struct*) Did not find _ZNSt11__timepunctIcEC1EP15__locale_structPKcj (GLIBCXX_3.4) in libstdc++.so.6 Unmangled symbol name: std::__timepunct<char>::__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<char>::__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<wchar_t>::_M_initialize_timepunct(__locale_struct*) Did not find _ZNSt11__timepunctIwEC1EP15__locale_structPKcj (GLIBCXX_3.4) in libstdc++.so.6 Unmangled symbol name: std::__timepunct<wchar_t>::__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<wchar_t>::__timepunct(__locale_struct*, char const*, unsigned int) Compiling libstdc++ with "--enable-clocale=gun" makes the library test passed.
We need to full understand the impact of this change, may seem simple. This may not make the 1.0 release.
http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=7b59ebe3c3c7781da6f08767af362ffdc52c82e6