Skip to content

Conversation

@shubhe25p
Copy link
Contributor

@shubhe25p shubhe25p commented Nov 24, 2025

Add %lc support to libc printf by utilizing wctomb internal function, also added relevant unit tests.

@llvmbot llvmbot added the libc label Nov 24, 2025
@llvmbot
Copy link
Member

llvmbot commented Nov 24, 2025

@llvm/pr-subscribers-libc

Author: Shubh Pachchigar (shubhe25p)

Changes

Add %lc support to libc printf by utilizing wctomb internal function, also added relevant unit tests. Resolves #166598


Full diff: https://github.com/llvm/llvm-project/pull/169301.diff

3 Files Affected:

  • (modified) libc/src/stdio/printf_core/char_converter.h (+19-3)
  • (modified) libc/test/src/stdio/printf_core/CMakeLists.txt (+2)
  • (modified) libc/test/src/stdio/printf_core/converter_test.cpp (+51)
diff --git a/libc/src/stdio/printf_core/char_converter.h b/libc/src/stdio/printf_core/char_converter.h
index fd2eb2553887a..58ade4fbf9a53 100644
--- a/libc/src/stdio/printf_core/char_converter.h
+++ b/libc/src/stdio/printf_core/char_converter.h
@@ -13,6 +13,7 @@
 #include "src/stdio/printf_core/converter_utils.h"
 #include "src/stdio/printf_core/core_structs.h"
 #include "src/stdio/printf_core/writer.h"
+#include "src/wchar/wctomb.h"
 
 namespace LIBC_NAMESPACE_DECL {
 namespace printf_core {
@@ -20,8 +21,10 @@ namespace printf_core {
 template <WriteMode write_mode>
 LIBC_INLINE int convert_char(Writer<write_mode> *writer,
                              const FormatSection &to_conv) {
-  char c = static_cast<char>(to_conv.conv_val_raw);
-
+  char c;
+  wchar_t wc;
+  char mb_str[MB_LEN_MAX];
+  int ret = 0;
   constexpr int STRING_LEN = 1;
 
   size_t padding_spaces =
@@ -33,7 +36,20 @@ LIBC_INLINE int convert_char(Writer<write_mode> *writer,
     RET_IF_RESULT_NEGATIVE(writer->write(' ', padding_spaces));
   }
 
-  RET_IF_RESULT_NEGATIVE(writer->write(c));
+  if (to_conv.length_modifier == LengthModifier::l) {
+    wc = static_cast<wchar_t>(to_conv.conv_val_raw);
+    ret = wctomb(mb_str, wc);
+    if (ret <= 0) {
+      return INT_CONVERSION_ERROR;
+    }
+    for (int i = 0; i < ret; ++i) {
+      RET_IF_RESULT_NEGATIVE(writer->write(mb_str[i]));
+    }
+  }
+  else {
+    c = static_cast<char>(to_conv.conv_val_raw);
+    RET_IF_RESULT_NEGATIVE(writer->write(c));
+  }
 
   // If the padding is on the right side, write the spaces last.
   if (padding_spaces > 0 &&
diff --git a/libc/test/src/stdio/printf_core/CMakeLists.txt b/libc/test/src/stdio/printf_core/CMakeLists.txt
index ff7ebbc4f5fd0..f075b8bd5ec52 100644
--- a/libc/test/src/stdio/printf_core/CMakeLists.txt
+++ b/libc/test/src/stdio/printf_core/CMakeLists.txt
@@ -35,4 +35,6 @@ add_libc_unittest(
     libc.src.stdio.printf_core.converter
     libc.src.stdio.printf_core.writer
     libc.src.stdio.printf_core.core_structs
+    libc.src.wchar.wctomb
+    libc.hdr.types.wchar_t
 )
diff --git a/libc/test/src/stdio/printf_core/converter_test.cpp b/libc/test/src/stdio/printf_core/converter_test.cpp
index 2dae2a22c864c..2f7842fa97168 100644
--- a/libc/test/src/stdio/printf_core/converter_test.cpp
+++ b/libc/test/src/stdio/printf_core/converter_test.cpp
@@ -255,3 +255,54 @@ TEST_F(LlvmLibcPrintfConverterTest, OctConversion) {
   ASSERT_STREQ(str, "1234");
   ASSERT_EQ(writer.get_chars_written(), size_t{4});
 }
+
+TEST_F(LlvmLibcPrintfConverterTest, WideCharConversion) {
+
+  LIBC_NAMESPACE::printf_core::FormatSection section;
+  section.has_conv = true;
+  section.raw_string = "%c";
+  section.conv_name = 'c';
+  section.length_modifier = LIBC_NAMESPACE::printf_core::LengthModifier::l;
+  section.conv_val_raw = static_cast<wchar_t>(L'S');
+
+  LIBC_NAMESPACE::printf_core::convert(&writer, section);
+
+  wb.buff[wb.buff_cur] = '\0';
+
+  ASSERT_STREQ(str, "S");
+  ASSERT_EQ(writer.get_chars_written(), size_t{1});
+}
+
+TEST_F(LlvmLibcPrintfConverterTest, WideCharConversionLeftJustified) {
+  LIBC_NAMESPACE::printf_core::FormatSection left_justified_conv;
+  left_justified_conv.has_conv = true;
+  left_justified_conv.raw_string = "%-4c";
+  left_justified_conv.conv_name = 'c';
+  left_justified_conv.length_modifier = LIBC_NAMESPACE::printf_core::LengthModifier::l;
+  left_justified_conv.flags =
+      LIBC_NAMESPACE::printf_core::FormatFlags::LEFT_JUSTIFIED;
+  left_justified_conv.min_width = 4;
+  left_justified_conv.conv_val_raw = static_cast<wchar_t>(L'S');
+
+  LIBC_NAMESPACE::printf_core::convert(&writer, left_justified_conv);
+  wb.buff[wb.buff_cur] = '\0';
+
+  ASSERT_STREQ(str, "S   ");
+  ASSERT_EQ(writer.get_chars_written(), size_t{4});
+}
+
+TEST_F(LlvmLibcPrintfConverterTest, WideCharConversionRightJustified) {
+  LIBC_NAMESPACE::printf_core::FormatSection right_justified_conv;
+  right_justified_conv.has_conv = true;
+  right_justified_conv.raw_string = "%4c";
+  right_justified_conv.conv_name = 'c';
+  right_justified_conv.length_modifier = LIBC_NAMESPACE::printf_core::LengthModifier::l;
+  right_justified_conv.min_width = 4;
+  right_justified_conv.conv_val_raw = static_cast<wchar_t>(L'S');
+
+  LIBC_NAMESPACE::printf_core::convert(&writer, right_justified_conv);
+  wb.buff[wb.buff_cur] = '\0';
+
+  ASSERT_STREQ(str, "   S");
+  ASSERT_EQ(writer.get_chars_written(), size_t{4});
+}

@github-actions
Copy link

github-actions bot commented Nov 24, 2025

⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️

You can test this locally with the following command:
git-clang-format --diff origin/main HEAD --extensions h,cpp -- libc/src/stdio/printf_core/char_converter.h libc/test/src/stdio/printf_core/converter_test.cpp --diff_from_common_commit

⚠️
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing origin/main to the base branch/commit you want to compare against.
⚠️

View the diff from clang-format here.
diff --git a/libc/src/stdio/printf_core/char_converter.h b/libc/src/stdio/printf_core/char_converter.h
index 3c6dc854b..6cb3fbc99 100644
--- a/libc/src/stdio/printf_core/char_converter.h
+++ b/libc/src/stdio/printf_core/char_converter.h
@@ -27,7 +27,7 @@ LIBC_INLINE int convert_char(Writer<write_mode> *writer,
   char mb_str[MB_LEN_MAX];
   static internal::mbstate internal_mbstate;
   int ret = 0;
-  
+
   char c = static_cast<char>(to_conv.conv_val_raw);
   constexpr int STRING_LEN = 1;
 
diff --git a/libc/test/src/stdio/printf_core/converter_test.cpp b/libc/test/src/stdio/printf_core/converter_test.cpp
index c181175e6..cf479abf9 100644
--- a/libc/test/src/stdio/printf_core/converter_test.cpp
+++ b/libc/test/src/stdio/printf_core/converter_test.cpp
@@ -6,10 +6,10 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "libc/hdr/types/wchar_t.h"
 #include "src/stdio/printf_core/converter.h"
 #include "src/stdio/printf_core/core_structs.h"
 #include "src/stdio/printf_core/writer.h"
-#include "libc/hdr/types/wchar_t.h"
 #include "test/UnitTest/Test.h"
 
 class LlvmLibcPrintfConverterTest : public LIBC_NAMESPACE::testing::Test {

@shubhe25p
Copy link
Contributor Author

I think there are some build and clang formatter error, fixing those

@github-actions
Copy link

github-actions bot commented Nov 24, 2025

🐧 Linux x64 Test Results

The build failed before running any tests. Click on a failure below to see the details.

libc/src/stdio/CMakeFiles/libc.src.stdio.snprintf.__internal__.dir/snprintf.cpp.o
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.snprintf.__internal__.dir/snprintf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -UNDEBUG -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.snprintf.__internal__.dir/snprintf.cpp.o -MF libc/src/stdio/CMakeFiles/libc.src.stdio.snprintf.__internal__.dir/snprintf.cpp.o.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.snprintf.__internal__.dir/snprintf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/snprintf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/snprintf.cpp:17:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/printf_main.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdio/CMakeFiles/libc.src.stdio.vsnprintf.__internal__.dir/vsnprintf.cpp.o
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.vsnprintf.__internal__.dir/vsnprintf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -UNDEBUG -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.vsnprintf.__internal__.dir/vsnprintf.cpp.o -MF libc/src/stdio/CMakeFiles/libc.src.stdio.vsnprintf.__internal__.dir/vsnprintf.cpp.o.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.vsnprintf.__internal__.dir/vsnprintf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/vsnprintf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/vsnprintf.cpp:17:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/printf_main.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdio/CMakeFiles/libc.src.stdio.asprintf.__internal__.dir/asprintf.cpp.o
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.asprintf.__internal__.dir/asprintf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -UNDEBUG -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.asprintf.__internal__.dir/asprintf.cpp.o -MF libc/src/stdio/CMakeFiles/libc.src.stdio.asprintf.__internal__.dir/asprintf.cpp.o.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.asprintf.__internal__.dir/asprintf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/asprintf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/asprintf.cpp:16:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/vasprintf_internal.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/printf_main.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdio/CMakeFiles/libc.src.stdio.asprintf.dir/asprintf.cpp.o
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.asprintf.dir/asprintf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.asprintf.dir/asprintf.cpp.o -MF libc/src/stdio/CMakeFiles/libc.src.stdio.asprintf.dir/asprintf.cpp.o.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.asprintf.dir/asprintf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/asprintf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/asprintf.cpp:16:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/vasprintf_internal.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/printf_main.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfroml.__internal__.dir/strfroml.cpp.o
FAILED: libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfroml.__internal__.dir/strfroml.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -UNDEBUG -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfroml.__internal__.dir/strfroml.cpp.o -MF libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfroml.__internal__.dir/strfroml.cpp.o.d -o libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfroml.__internal__.dir/strfroml.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdlib/strfroml.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdlib/strfroml.cpp:14:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdlib/str_from_util.h:23:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdio/CMakeFiles/libc.src.stdio.vsprintf.dir/vsprintf.cpp.o
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.vsprintf.dir/vsprintf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.vsprintf.dir/vsprintf.cpp.o -MF libc/src/stdio/CMakeFiles/libc.src.stdio.vsprintf.dir/vsprintf.cpp.o.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.vsprintf.dir/vsprintf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/vsprintf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/vsprintf.cpp:17:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/printf_main.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdio/CMakeFiles/libc.src.stdio.vasprintf.dir/vasprintf.cpp.o
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.vasprintf.dir/vasprintf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.vasprintf.dir/vasprintf.cpp.o -MF libc/src/stdio/CMakeFiles/libc.src.stdio.vasprintf.dir/vasprintf.cpp.o.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.vasprintf.dir/vasprintf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/vasprintf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/vasprintf.cpp:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/vasprintf_internal.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/printf_main.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vprintf.__internal__.dir/vprintf.cpp.o
FAILED: libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vprintf.__internal__.dir/vprintf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -UNDEBUG -DLIBC_COPT_STDIO_USE_SYSTEM_FILE -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -DLIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY=1 -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vprintf.__internal__.dir/vprintf.cpp.o -MF libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vprintf.__internal__.dir/vprintf.cpp.o.d -o libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vprintf.__internal__.dir/vprintf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/generic/vprintf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/generic/vprintf.cpp:17:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/vfprintf_internal.h:18:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/printf_main.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromd.dir/strfromd.cpp.o
FAILED: libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromd.dir/strfromd.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromd.dir/strfromd.cpp.o -MF libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromd.dir/strfromd.cpp.o.d -o libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromd.dir/strfromd.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdlib/strfromd.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdlib/strfromd.cpp:14:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdlib/str_from_util.h:23:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdio/CMakeFiles/libc.src.stdio.sprintf.__internal__.dir/sprintf.cpp.o
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.sprintf.__internal__.dir/sprintf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -UNDEBUG -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.sprintf.__internal__.dir/sprintf.cpp.o -MF libc/src/stdio/CMakeFiles/libc.src.stdio.sprintf.__internal__.dir/sprintf.cpp.o.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.sprintf.__internal__.dir/sprintf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/sprintf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/sprintf.cpp:17:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/printf_main.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fprintf.dir/fprintf.cpp.o
FAILED: libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fprintf.dir/fprintf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -DLIBC_COPT_STDIO_USE_SYSTEM_FILE -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -DLIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY=1 -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fprintf.dir/fprintf.cpp.o -MF libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fprintf.dir/fprintf.cpp.o.d -o libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fprintf.dir/fprintf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/generic/fprintf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/generic/fprintf.cpp:17:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/vfprintf_internal.h:18:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/printf_main.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdio/CMakeFiles/libc.src.stdio.vsprintf.__internal__.dir/vsprintf.cpp.o
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.vsprintf.__internal__.dir/vsprintf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -UNDEBUG -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.vsprintf.__internal__.dir/vsprintf.cpp.o -MF libc/src/stdio/CMakeFiles/libc.src.stdio.vsprintf.__internal__.dir/vsprintf.cpp.o.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.vsprintf.__internal__.dir/vsprintf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/vsprintf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/vsprintf.cpp:17:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/printf_main.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdio/CMakeFiles/libc.src.stdio.snprintf.dir/snprintf.cpp.o
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.snprintf.dir/snprintf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.snprintf.dir/snprintf.cpp.o -MF libc/src/stdio/CMakeFiles/libc.src.stdio.snprintf.dir/snprintf.cpp.o.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.snprintf.dir/snprintf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/snprintf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/snprintf.cpp:17:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/printf_main.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdio/CMakeFiles/libc.src.stdio.vasprintf.__internal__.dir/vasprintf.cpp.o
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.vasprintf.__internal__.dir/vasprintf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -UNDEBUG -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.vasprintf.__internal__.dir/vasprintf.cpp.o -MF libc/src/stdio/CMakeFiles/libc.src.stdio.vasprintf.__internal__.dir/vasprintf.cpp.o.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.vasprintf.__internal__.dir/vasprintf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/vasprintf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/vasprintf.cpp:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/vasprintf_internal.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/printf_main.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.printf.dir/printf.cpp.o
FAILED: libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.printf.dir/printf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -DLIBC_COPT_STDIO_USE_SYSTEM_FILE -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -DLIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY=1 -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.printf.dir/printf.cpp.o -MF libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.printf.dir/printf.cpp.o.d -o libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.printf.dir/printf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/generic/printf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/generic/printf.cpp:17:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/vfprintf_internal.h:18:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/printf_main.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vfprintf.__internal__.dir/vfprintf.cpp.o
FAILED: libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vfprintf.__internal__.dir/vfprintf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -UNDEBUG -DLIBC_COPT_STDIO_USE_SYSTEM_FILE -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -DLIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY=1 -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vfprintf.__internal__.dir/vfprintf.cpp.o -MF libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vfprintf.__internal__.dir/vfprintf.cpp.o.d -o libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vfprintf.__internal__.dir/vfprintf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/generic/vfprintf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/generic/vfprintf.cpp:17:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/vfprintf_internal.h:18:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/printf_main.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vprintf.dir/vprintf.cpp.o
FAILED: libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vprintf.dir/vprintf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -DLIBC_COPT_STDIO_USE_SYSTEM_FILE -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -DLIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY=1 -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vprintf.dir/vprintf.cpp.o -MF libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vprintf.dir/vprintf.cpp.o.d -o libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vprintf.dir/vprintf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/generic/vprintf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/generic/vprintf.cpp:17:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/vfprintf_internal.h:18:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/printf_main.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromf.dir/strfromf.cpp.o
FAILED: libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromf.dir/strfromf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromf.dir/strfromf.cpp.o -MF libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromf.dir/strfromf.cpp.o.d -o libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromf.dir/strfromf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdlib/strfromf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdlib/strfromf.cpp:14:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdlib/str_from_util.h:23:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vfprintf.dir/vfprintf.cpp.o
FAILED: libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vfprintf.dir/vfprintf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -DLIBC_COPT_STDIO_USE_SYSTEM_FILE -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -DLIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY=1 -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vfprintf.dir/vfprintf.cpp.o -MF libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vfprintf.dir/vfprintf.cpp.o.d -o libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vfprintf.dir/vfprintf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/generic/vfprintf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/generic/vfprintf.cpp:17:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/vfprintf_internal.h:18:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/printf_main.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromf.__internal__.dir/strfromf.cpp.o
FAILED: libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromf.__internal__.dir/strfromf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -UNDEBUG -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromf.__internal__.dir/strfromf.cpp.o -MF libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromf.__internal__.dir/strfromf.cpp.o.d -o libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromf.__internal__.dir/strfromf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdlib/strfromf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdlib/strfromf.cpp:14:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdlib/str_from_util.h:23:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fprintf.__internal__.dir/fprintf.cpp.o
FAILED: libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fprintf.__internal__.dir/fprintf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -UNDEBUG -DLIBC_COPT_STDIO_USE_SYSTEM_FILE -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -DLIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY=1 -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fprintf.__internal__.dir/fprintf.cpp.o -MF libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fprintf.__internal__.dir/fprintf.cpp.o.d -o libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fprintf.__internal__.dir/fprintf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/generic/fprintf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/generic/fprintf.cpp:17:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/vfprintf_internal.h:18:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/printf_main.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdio/CMakeFiles/libc.src.stdio.vsnprintf.dir/vsnprintf.cpp.o
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.vsnprintf.dir/vsnprintf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.vsnprintf.dir/vsnprintf.cpp.o -MF libc/src/stdio/CMakeFiles/libc.src.stdio.vsnprintf.dir/vsnprintf.cpp.o.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.vsnprintf.dir/vsnprintf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/vsnprintf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/vsnprintf.cpp:17:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/printf_main.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdio/CMakeFiles/libc.src.stdio.sprintf.dir/sprintf.cpp.o
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.sprintf.dir/sprintf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.sprintf.dir/sprintf.cpp.o -MF libc/src/stdio/CMakeFiles/libc.src.stdio.sprintf.dir/sprintf.cpp.o.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.sprintf.dir/sprintf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/sprintf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/sprintf.cpp:17:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/printf_main.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromd.__internal__.dir/strfromd.cpp.o
FAILED: libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromd.__internal__.dir/strfromd.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -UNDEBUG -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromd.__internal__.dir/strfromd.cpp.o -MF libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromd.__internal__.dir/strfromd.cpp.o.d -o libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromd.__internal__.dir/strfromd.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdlib/strfromd.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdlib/strfromd.cpp:14:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdlib/str_from_util.h:23:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.printf.__internal__.dir/printf.cpp.o
FAILED: libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.printf.__internal__.dir/printf.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -UNDEBUG -DLIBC_COPT_STDIO_USE_SYSTEM_FILE -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -DLIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY=1 -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.printf.__internal__.dir/printf.cpp.o -MF libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.printf.__internal__.dir/printf.cpp.o.d -o libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.printf.__internal__.dir/printf.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/generic/printf.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/generic/printf.cpp:17:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/vfprintf_internal.h:18:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/printf_main.h:15:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfroml.dir/strfroml.cpp.o
FAILED: libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfroml.dir/strfroml.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_UNSAFE_WIDE_READ -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -DLIBC_COPT_PRINTF_RUNTIME_DISPATCH -MD -MT libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfroml.dir/strfroml.cpp.o -MF libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfroml.dir/strfroml.cpp.o.d -o libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfroml.dir/strfroml.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdlib/strfroml.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdlib/strfroml.cpp:14:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdlib/str_from_util.h:23:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:20:
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/stdio/printf_core/char_converter.h:12:10: fatal error: 'libc/hdr/types/wchar_t.h' file not found
12 | #include "libc/hdr/types/wchar_t.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the infrastructure label.

@shubhe25p shubhe25p force-pushed the br_printf_lc_support branch 2 times, most recently from d1e951c to 03948a1 Compare November 28, 2025 07:45
Add %lc support to libc printf by utilizing
wcrtomb internal function, also added relevant
unit tests.
@shubhe25p shubhe25p force-pushed the br_printf_lc_support branch from 03948a1 to 5bed042 Compare November 28, 2025 09:45
@shubhe25p shubhe25p closed this Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants