Wind River Support Network


LIN10-4129 : Failed to build wrlinux project on Ubuntu-18.04

Created: May 23, 2018    Updated: Jul 12, 2024
Resolved Date: Jul 10, 2018
Previous ID: LIN1018-1354
Found In Version:
Fix Version:
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

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/", 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
        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)

Steps to Reproduce

Try to build one WRLinux-10.17 project on Ubuntu-18.04
1) git clone --branch WRLINUX_10_17_LTS git:// wrlinux-10
2) ./wrlinux-10/ --machines=intel-x86-64 --dl-layers --accept-eula=yes && source environment-setup-x86_64-wrlinuxsdk-linux && source oe-init-build-env build


Other Downloads

Live chat