Build toolchain according to "i.MX Yocto Project User's Guide" in "5.1.2. Setup aarch64 toolchain" section of AN12195
When I run "bitbake core-image-base", I get a lot of errors (some are excerpted below)
Do you know the solution?
I. -include ../git/localedef/include/always.h -Wall -Wno-format -c -o ld-collate.o glibc/locale/programs/ld-collate.c
| In file included from /usr/include/x86_64-linux-gnu/bits/types/locale_t.h:22:0,
| from /usr/include/string.h:152,
| from ../git/localedef/include/string.h:1,
| from glibc/locale/programs/ld-address.c:25:
| /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h:28:8: error: redefinition of ‘struct __locale_struct’
| struct __locale_struct
| ^~~~~~~~~~~~~~~
| In file included from glibc/locale/langinfo.h:591:0,
| from glibc/locale/programs/ld-address.c:24:
| glibc/locale/xlocale.h:27:16: note: originally defined here
| typedef struct __locale_struct
| ^~~~~~~~~~~~~~~
| In file included from /usr/include/x86_64-linux-gnu/bits/types/locale_t.h:22:0,
| from /usr/include/string.h:152,
| from ../git/localedef/include/string.h:1,
| from glibc/locale/programs/ld-address.c:25:
| /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h:42:33: error: conflicting types for ‘__locale_t’
| typedef struct __locale_struct *__locale_t;
| ^~~~~~~~~~
| In file included from glibc/locale/langinfo.h:591:0,
| from glibc/locale/programs/ld-address.c:24:
| glibc/locale/xlocale.h:39:4: note: previous declaration of ‘__locale_t’ was here
| } *__locale_t;