[yocto] building recipe with buildtools, causes sanity error: Your system needs to support the en_US.UTF-8 locale.

John Smith john-s-84 at gmx.net
Tue Apr 24 11:04:32 PDT 2018


bitbake stops with this error message: "Your system needs to support the en_US.UTF-8 locale."

export LC_ALL=en_US.UTF-8 has no effect. Do you know how to fix that error?

What I ve done:
- installed buildtools from http://downloads.yoctoproject.org/releases/yocto/yocto-2.4.2/buildtools/
  under /opt/poky/2.4.2

> cd poky
> . oe-init-build-env
> . /opt/poky/2.4.2/environment-setup-x86_64-pokysdk-linux
> bitbake <ANY RECIPE>



https://git.yoctoproject.org/cgit.cgi/poky/plain/meta/classes/sanity.bbclass
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("Your system needs to support the en_US.UTF-8 locale.", d)



More information about the yocto mailing list