How to enable UTF-8 locale for tmux while using external toolchain #dunfell #linux


Jason C
 

I am using the AM572x evaluation module with the TI SDK, which uses the linaro toolchain. I am trying to enable UTF-8 so that I can use tmux.

I am enabling it using the follow method:

unset IMAGE_LINGUAS
GLIBC_GENERATE_LOCALES = "en_US.UTF-8"
IMAGE_LINGUAS = "en-us"

When I try to build I get an error:

ERROR: production-image-1.0-r0 do_rootfs: Unable to install packages. Command '/home/dev/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/production-image/1.0-r0/recipe-sysroot-native/usr/bin/opkg --volatile-cache -f /home/dev/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/production-image/1.0-r0/opkg.conf -t /home/dev/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/production-image/1.0-r0/temp/ipktemp/ -o /home/dev/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/production-image/1.0-r0/rootfs  --force_postinstall    install locale-base-en-us' returned 255:
Collected errors:
 * opkg_prepare_url_for_install: Couldn't find anything to satisfy 'locale-base-en-us'.
 * rm_r: Failed to open dir /home/dev/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/production-image/1.0-r0/temp/ipktemp//opkg-T1KHka: No such file or directory.

ERROR: production-image-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/dev/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/production-image/1.0-r0/temp/log.do_rootfs.32152
ERROR: Task (/home/dev/tisdk/layers/meta-os/recipes-core/images/production-image.bb:do_rootfs) failed with exit code '1'

After I try to enable glibc-locale I get:
ERROR: Nothing RPROVIDES 'glibc-locale' (but /home/dev/tisdk/layers/meta-os/recipes-core/images/mars-tx-dev.bb RDEPENDS on or otherwise requires it)
glibc-locale was skipped: PREFERRED_PROVIDER_virtual/libc-locale set to external-arm-toolchain, not glibc-locale
NOTE: Runtime target 'glibc-locale' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['glibc-locale']
ERROR: Required build target 'mars-tx-dev' has no buildable providers.
Missing or unbuildable dependency chain was: ['mars-tx-dev', 'glibc-locale']

I tried to force it to use glibc-locale using:
PREFERRED_PROVIDER_glibc-gconv-iso8859-1_forcevariable = "glibc-locale"
PREFERRED_PROVIDER_virtual/libc-locale_forcevariable = "glibc-locale"
PREFERRED_VERSION_glibc-locale_forcevariable = "2.31"
PREFERRED_VERSION_cross-localedef-native_forcevariable = "2.31"

But get the error:
ERROR: Nothing PROVIDES 'virtual/arm-none-linux-gnueabihf-binutils' (but /home/dev/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_5.10.bb DEPENDS on or otherwise requires it)
external-arm-toolchain PROVIDES virtual/arm-none-linux-gnueabihf-binutils but was skipped: PREFERRED_PROVIDER_virtual/libc-locale set to glibc-locale, not external-arm-toolchain
binutils-cross-arm PROVIDES virtual/arm-none-linux-gnueabihf-binutils but was skipped: PREFERRED_PROVIDER_virtual/arm-none-linux-gnueabihf-binutils set to external-arm-toolchain, not binutils-cross-arm
ERROR: Required build target 'linux-ti-staging' has no buildable providers.
Missing or unbuildable dependency chain was: ['linux-ti-staging', 'virtual/arm-none-linux-gnueabihf-binutils']

Any help would be appreciated, thanks!
Jason