Fixed
Created: May 23, 2018
Updated: Jul 12, 2024
Resolved Date: Jul 10, 2018
Previous ID: LIN1018-1354
Found In Version: 10.17.41.8
Fix Version: 10.17.41.9
Severity: Standard
Applicable for: Wind River Linux LTS 17
Component/s: Userspace
xxx@xxxxxx:/Build_WRL100/05240334-build_default_image/intel-x86-64-standard-glibc-std/build$ bitbake wrlinux-image-glibc-std
ERROR: OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:
You system needs to support the en_US.UTF-8 locale.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
. environment-setup-x86_64-wrlinuxsdk-linux
. oe-init-build-env
/Build_WRL100/05240334-build_default_image/intel-x86-64-standard-glibc-std/bin/buildtools.buildtools-standalone-20171016/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/python3
Python 3.5.3 (default, Oct 16 2017, 06:49:24)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.setlocale(locale.LC_ALL, "en_US.UTF-8")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Build_WRL100/05240334-build_default_image/intel-x86-64-standard-glibc-std/bin/buildtools.buildtools-standalone-20171016/sysroots/x86_64-wrlinuxsdk-linux/usr/lib/python3.5/locale.py", line 594, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
In sanity.bbclase, it will set locale as en_US.UTF-8.
def sanity_check_locale(d):
"""
Currently bitbake switches locale to en_US.UTF-8 so check that this locale actually exists.
"""
import locale
try:
locale.setlocale(locale.LC_ALL, "en_US.UTF-8")
except locale.Error:
raise_sanity_error("You system needs to support the en_US.UTF-8 locale.", d)
Try to build one WRLinux-10.17 project on Ubuntu-18.04
1) git clone --branch WRLINUX_10_17_LTS git://pek-git.wrs.com/wrlinux-x wrlinux-10
2) ./wrlinux-10/setup.sh --machines=intel-x86-64 --dl-layers --accept-eula=yes && source environment-setup-x86_64-wrlinuxsdk-linux && source oe-init-build-env build
wrlinux-image-glibc-std