[libc-commits] [libc] [libc] Add iswctype and wctype (PR #191178)
Prabhu Rajasekaran via libc-commits
libc-commits at lists.llvm.org
Fri Apr 17 11:15:44 PDT 2026
Prabhuk wrote:
@xiongzile @michaelrj-google we are continuing to see failures in our toolchain builders even after #192659
logs: https://logs.chromium.org/logs/fuchsia/buildbucket/cr-buildbucket/8684278539610552337/+/u/clang/build/stdout
```
FAILED: libcxx/src/CMakeFiles/cxx_static.dir/charconv.cpp.obj
/b/s/w/ir/x/w/llvm_build/./bin/clang++ --target=aarch64-none-elf -DLIBC_NAMESPACE=__llvm_libc_common_utils -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_SINGLE -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_LIBCPP_AVAILABILITY_MINIMUM_HEADER_VERSION=2 -D_LIBCPP_BUILDING_HAS_NO_ABI_LIBRARY -D_LIBCPP_BUILDING_LIBRARY -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -D_LIBCPP_REMOVE_TRANSITIVE_INCLUDES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/s/w/ir/x/w/llvm-llvm-project/libcxx/src -I/b/s/w/ir/x/w/llvm_build/include/aarch64-unknown-none-elf/c++/v1 -I/b/s/w/ir/x/w/llvm_build/include/c++/v1 -I/b/s/w/ir/x/w/llvm-llvm-project/cmake/Modules/../../libc -isystem /b/s/w/ir/x/w/llvm_build/include/aarch64-unknown-none-elf --target=aarch64-none-elf -Wno-atomic-alignment -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -ffile-prefix-map=/b/s/w/ir/x/w/llvm_build/runtimes/runtimes-aarch64-none-elf-bins=../../../llvm-llvm-project -ffile-prefix-map=/b/s/w/ir/x/w/llvm-llvm-project/= -no-canonical-prefixes -Os -DNDEBUG -UNDEBUG -std=c++26 -faligned-allocation -nostdinc++ -fvisibility-inlines-hidden -fvisibility=hidden -fsized-deallocation -Wall -Wextra -Wnewline-eof -Wshadow -Wwrite-strings -Wno-unused-parameter -Wno-long-long -Werror=return-type -Wextra-semi -Wundef -Wunused-template -Wformat-nonliteral -Wzero-length-array -Wdeprecated-redundant-constexpr-static-def -Wno-nullability-completeness -Wmissing-prototypes -Wno-user-defined-literals -Wno-covered-switch-default -Wno-suggest-override -Wno-error -fno-exceptions -fno-rtti -fdebug-prefix-map=/b/s/w/ir/x/w/llvm_build/include/c++/v1=/b/s/w/ir/x/w/llvm-llvm-project/libcxx/include -nostdlibinc -MD -MT libcxx/src/CMakeFiles/cxx_static.dir/charconv.cpp.obj -MF libcxx/src/CMakeFiles/cxx_static.dir/charconv.cpp.obj.d -o libcxx/src/CMakeFiles/cxx_static.dir/charconv.cpp.obj -c /b/s/w/ir/x/w/llvm-llvm-project/libcxx/src/charconv.cpp
In file included from /b/s/w/ir/x/w/llvm-llvm-project/libcxx/src/charconv.cpp:12:
In file included from /b/s/w/ir/x/w/llvm-llvm-project/libcxx/src/include/from_chars_floating_point.h:25:
In file included from /b/s/w/ir/x/w/llvm-llvm-project/cmake/Modules/../../libc/shared/str_to_float.h:13:
In file included from /b/s/w/ir/x/w/llvm-llvm-project/cmake/Modules/../../libc/src/__support/str_to_float.h:29:
In file included from /b/s/w/ir/x/w/llvm-llvm-project/cmake/Modules/../../libc/src/__support/high_precision_decimal.h:22:
In file included from /b/s/w/ir/x/w/llvm-llvm-project/cmake/Modules/../../libc/src/__support/str_to_integer.h:28:
/b/s/w/ir/x/w/llvm-llvm-project/cmake/Modules/../../libc/src/__support/wctype_utils.h:586:3: error: unknown type name 'wctype_t'
586 | wctype_t desc;
| ^
/b/s/w/ir/x/w/llvm-llvm-project/cmake/Modules/../../libc/src/__support/wctype_utils.h:589:23: error: unknown type name 'wctype_t'
589 | LIBC_INLINE constexpr wctype_t WCTYPE_INVALID = 0;
| ^
/b/s/w/ir/x/w/llvm-llvm-project/cmake/Modules/../../libc/src/__support/wctype_utils.h:590:23: error: unknown type name 'wctype_t'
590 | LIBC_INLINE constexpr wctype_t WCTYPE_ALNUM = 1;
| ^
/b/s/w/ir/x/w/llvm-llvm-project/cmake/Modules/../../libc/src/__support/wctype_utils.h:591:23: error: unknown type name 'wctype_t'
591 | LIBC_INLINE constexpr wctype_t WCTYPE_ALPHA = 2;
| ^
/b/s/w/ir/x/w/llvm-llvm-project/cmake/Modules/../../libc/src/__support/wctype_utils.h:592:23: error: unknown type name 'wctype_t'
592 | LIBC_INLINE constexpr wctype_t WCTYPE_BLANK = 3;
| ^
/b/s/w/ir/x/w/llvm-llvm-project/cmake/Modules/../../libc/src/__support/wctype_utils.h:593:23: error: unknown type name 'wctype_t'
593 | LIBC_INLINE constexpr wctype_t WCTYPE_CNTRL = 4;
| ^
/b/s/w/ir/x/w/llvm-llvm-project/cmake/Modules/../../libc/src/__support/wctype_utils.h:594:23: error: unknown type name 'wctype_t'
594 | LIBC_INLINE constexpr wctype_t WCTYPE_DIGIT = 5;
| ^
/b/s/w/ir/x/w/llvm-llvm-project/cmake/Modules/../../libc/src/__support/wctype_utils.h:595:23: error: unknown type name 'wctype_t'
595 | LIBC_INLINE constexpr wctype_t WCTYPE_GRAPH = 6;
| ^
/b/s/w/ir/x/w/llvm-llvm-project/cmake/Modules/../../libc/src/__support/wctype_utils.h:596:23: error: unknown type name 'wctype_t'
596 | LIBC_INLINE constexpr wctype_t WCTYPE_LOWER = 7;
| ^
/b/s/w/ir/x/w/llvm-llvm-project/cmake/Modules/../../libc/src/__support/wctype_utils.h:597:23: error: unknown type name 'wctype_t'
597 | LIBC_INLINE constexpr wctype_t WCTYPE_PRINT = 8;
| ^
/b/s/w/ir/x/w/llvm-llvm-project/cmake/Modules/../../libc/src/__support/wctype_utils.h:598:23: error: unknown type name 'wctype_t'
598 | LIBC_INLINE constexpr wctype_t WCTYPE_PUNCT = 9;
| ^
/b/s/w/ir/x/w/llvm-llvm-project/cmake/Modules/../../libc/src/__support/wctype_utils.h:599:23: error: unknown type name 'wctype_t'
599 | LIBC_INLINE constexpr wctype_t WCTYPE_SPACE = 10;
| ^
/b/s/w/ir/x/w/llvm-llvm-project/cmake/Modules/../../libc/src/__support/wctype_utils.h:600:23: error: unknown type name 'wctype_t'
600 | LIBC_INLINE constexpr wctype_t WCTYPE_UPPER = 11;
| ^
/b/s/w/ir/x/w/llvm-llvm-project/cmake/Modules/../../libc/src/__support/wctype_utils.h:601:23: error: unknown type name 'wctype_t'
601 | LIBC_INLINE constexpr wctype_t WCTYPE_XDIGIT = 12;
| ^
/b/s/w/ir/x/w/llvm-llvm-project/cmake/Modules/../../libc/src/__support/wctype_utils.h:618:23: error: unknown type name 'wctype_t'
618 | LIBC_INLINE constexpr wctype_t wctype(const char *property) {
| ^
/b/s/w/ir/x/w/llvm-llvm-project/cmake/Modules/../../libc/src/__support/wctype_utils.h:632:47: error: unknown type name 'wctype_t'
632 | LIBC_INLINE constexpr int iswctype(wchar_t c, wctype_t desc) {
| ^
16 errors generated.
```
https://github.com/llvm/llvm-project/pull/191178
More information about the libc-commits
mailing list