[Buildroot] [PATCH 1/1] toolchain/toolchain-external/toolchain-external-synopsys-arc: drop locale

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Feb 21 14:21:00 UTC 2023


On Tue, 21 Feb 2023 15:09:47 +0100
Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:

> I think the issue is that __UCLIBC_HAS_XLOCALE__ is disabled.
> To my understanding, locale_t is defined in xlocale.h:
> https://github.com/wbx-github/uclibc-ng/blob/ab1dd83bec59c9e65c31efd6e887182948f627be/include/xlocale.h#L46

Possible indeed. There are newer versions of the ARC toolchain
available at
https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases,
but I checked the latest and it still has xlocale disabled.

One option is to ask the ARC/Synopsys people to enable XLOCALE in their
uClibc configuration.

Another option is to drop the ARC/Synopsys toolchain entirely.

A third option is to change the check done by Buildroot to verify
__UCLIBC_HAS_XLOCALE__ instead of __UCLIBC_HAS_LOCALE__. This way it
will be valid to say that the ARC toolchain does not have locale
support.

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com



More information about the buildroot mailing list