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

Burton, Ross ross.burton at intel.com
Wed Apr 25 03:48:05 PDT 2018


So my hunch is that you've a modern system with glibc 2.27 on the
host, so that old buildtools won't work.  Try this buildtools:

http://downloads.yoctoproject.org/releases/yocto/milestones/yocto-2.5_M3/buildtools/

Ross

On 24 April 2018 at 19:04, John Smith <john-s-84 at gmx.net> wrote:
> 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)
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



More information about the yocto mailing list