Skip to content

[libc][NFC] Add stdint.h proxy header to fix dependency issue with <stdint.h> includes. #150303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 24, 2025

Conversation

lntue
Copy link
Contributor

@lntue lntue commented Jul 23, 2025

@llvmbot
Copy link
Member

llvmbot commented Jul 23, 2025

@llvm/pr-subscribers-libc

Author: None (lntue)

Changes

#149993


Patch is 140.65 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/150303.diff

239 Files Affected:

  • (modified) libc/benchmarks/gpu/BenchmarkLogger.cpp (+1-2)
  • (modified) libc/benchmarks/gpu/CMakeLists.txt (+1)
  • (modified) libc/benchmarks/gpu/LibcGpuBenchmark.h (+1-2)
  • (modified) libc/benchmarks/gpu/src/math/CMakeLists.txt (+2)
  • (modified) libc/benchmarks/gpu/src/math/platform.h (+2-1)
  • (modified) libc/benchmarks/gpu/timing/amdgpu/CMakeLists.txt (+1)
  • (modified) libc/benchmarks/gpu/timing/amdgpu/timing.h (+1-2)
  • (modified) libc/benchmarks/gpu/timing/nvptx/CMakeLists.txt (+1)
  • (modified) libc/benchmarks/gpu/timing/nvptx/timing.h (+1-2)
  • (modified) libc/config/CMakeLists.txt (+1)
  • (modified) libc/config/gpu/app.h (+1-2)
  • (modified) libc/config/linux/app.h (+1-2)
  • (modified) libc/config/uefi/app.h (+1-2)
  • (modified) libc/hdr/CMakeLists.txt (+9)
  • (added) libc/hdr/stdint_proxy.h (+18)
  • (modified) libc/hdr/types/CMakeLists.txt (+2)
  • (modified) libc/include/CMakeLists.txt (+9-8)
  • (modified) libc/src/__support/CMakeLists.txt (+12)
  • (modified) libc/src/__support/CPP/CMakeLists.txt (+3)
  • (modified) libc/src/__support/CPP/bit.h (+1-2)
  • (modified) libc/src/__support/CPP/functional.h (+1-2)
  • (modified) libc/src/__support/FPUtil/CMakeLists.txt (+5)
  • (modified) libc/src/__support/FPUtil/FPBits.h (+1-2)
  • (modified) libc/src/__support/FPUtil/NormalFloat.h (+1-2)
  • (modified) libc/src/__support/FPUtil/aarch64/FEnvImpl.h (+1-1)
  • (modified) libc/src/__support/FPUtil/aarch64/fenv_darwin_impl.h (+1-1)
  • (modified) libc/src/__support/FPUtil/arm/FEnvImpl.h (+1-1)
  • (modified) libc/src/__support/FPUtil/bfloat16.h (+1-2)
  • (modified) libc/src/__support/FPUtil/riscv/FEnvImpl.h (+1-2)
  • (modified) libc/src/__support/FPUtil/x86_64/FEnvImpl.h (+1-2)
  • (modified) libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h (+1-2)
  • (modified) libc/src/__support/File/CMakeLists.txt (+4-3)
  • (modified) libc/src/__support/File/file.h (+1-1)
  • (modified) libc/src/__support/File/linux/CMakeLists.txt (+5-4)
  • (modified) libc/src/__support/File/linux/lseekImpl.h (+1-1)
  • (modified) libc/src/__support/GPU/CMakeLists.txt (+1)
  • (modified) libc/src/__support/GPU/allocator.h (+1-1)
  • (modified) libc/src/__support/HashTable/CMakeLists.txt (+2)
  • (modified) libc/src/__support/HashTable/bitmask.h (+1-1)
  • (modified) libc/src/__support/HashTable/table.h (+1-1)
  • (modified) libc/src/__support/arg_list.h (+1-1)
  • (modified) libc/src/__support/big_int.h (+1-1)
  • (modified) libc/src/__support/block.h (+1-2)
  • (modified) libc/src/__support/blockstore.h (+1-1)
  • (modified) libc/src/__support/detailed_powers_of_ten.h (+1-2)
  • (modified) libc/src/__support/endian_internal.h (+2-3)
  • (modified) libc/src/__support/fixed_point/CMakeLists.txt (+1)
  • (modified) libc/src/__support/fixed_point/fx_rep.h (+1-2)
  • (modified) libc/src/__support/float_to_string.h (+1-2)
  • (modified) libc/src/__support/hash.h (+1-1)
  • (modified) libc/src/__support/high_precision_decimal.h (+1-1)
  • (modified) libc/src/__support/integer_literals.h (+1-1)
  • (modified) libc/src/__support/integer_to_string.h (+1-2)
  • (modified) libc/src/__support/macros/properties/CMakeLists.txt (+1)
  • (modified) libc/src/__support/macros/properties/types.h (+2-3)
  • (modified) libc/src/__support/math/CMakeLists.txt (+1)
  • (modified) libc/src/__support/math/exp10_float16_constants.h (+1-1)
  • (modified) libc/src/__support/ryu_constants.h (+1-1)
  • (modified) libc/src/__support/ryu_long_double_constants.h (+1-1)
  • (modified) libc/src/__support/str_to_float.h (+1-2)
  • (modified) libc/src/__support/threads/CMakeLists.txt (+2)
  • (modified) libc/src/__support/threads/CndVar.h (+1-2)
  • (modified) libc/src/__support/threads/linux/CMakeLists.txt (+3)
  • (modified) libc/src/__support/threads/linux/futex_word.h (+1-1)
  • (modified) libc/src/__support/threads/linux/thread.cpp (+1-1)
  • (modified) libc/src/__support/threads/thread.h (+1-1)
  • (modified) libc/src/__support/wchar/CMakeLists.txt (+2-1)
  • (modified) libc/src/__support/wchar/mbstate.h (+1-1)
  • (modified) libc/src/arpa/inet/CMakeLists.txt (+4)
  • (modified) libc/src/arpa/inet/htonl.h (+1-1)
  • (modified) libc/src/arpa/inet/htons.h (+1-1)
  • (modified) libc/src/arpa/inet/ntohl.h (+1-1)
  • (modified) libc/src/arpa/inet/ntohs.h (+1-1)
  • (modified) libc/src/compiler/generic/CMakeLists.txt (+1)
  • (modified) libc/src/compiler/generic/__stack_chk_fail.cpp (+1-1)
  • (modified) libc/src/inttypes/CMakeLists.txt (+2)
  • (modified) libc/src/inttypes/strtoimax.h (+1-1)
  • (modified) libc/src/inttypes/strtoumax.h (+1-1)
  • (modified) libc/src/link/CMakeLists.txt (+2)
  • (modified) libc/src/math/generic/CMakeLists.txt (+1)
  • (modified) libc/src/math/generic/expxf16.h (+1-2)
  • (modified) libc/src/pthread/CMakeLists.txt (+1)
  • (modified) libc/src/pthread/pthread_attr_setstack.cpp (+1-1)
  • (modified) libc/src/sched/linux/CMakeLists.txt (+1)
  • (modified) libc/src/sched/linux/sched_getaffinity.cpp (+1-1)
  • (modified) libc/src/spawn/CMakeLists.txt (+1)
  • (modified) libc/src/spawn/file_actions.h (+1-1)
  • (modified) libc/src/stdio/gpu/CMakeLists.txt (+1)
  • (modified) libc/src/stdio/gpu/fgets.cpp (+1-2)
  • (modified) libc/src/stdlib/CMakeLists.txt (+7-2)
  • (modified) libc/src/stdlib/a64l.cpp (+1-2)
  • (modified) libc/src/stdlib/bsearch.cpp (+1-1)
  • (modified) libc/src/stdlib/l64a.cpp (+1-2)
  • (modified) libc/src/stdlib/qsort.cpp (+1-2)
  • (modified) libc/src/stdlib/qsort_data.h (+1-2)
  • (modified) libc/src/stdlib/qsort_r.cpp (+1-2)
  • (modified) libc/src/stdlib/quick_sort.h (+1-2)
  • (modified) libc/src/string/CMakeLists.txt (+1)
  • (modified) libc/src/string/memory_utils/CMakeLists.txt (+1)
  • (modified) libc/src/string/memory_utils/op_generic.h (+1-2)
  • (modified) libc/src/string/memory_utils/utils.h (+1-1)
  • (modified) libc/src/string/memory_utils/x86_64/inline_memcpy.h (+1-1)
  • (modified) libc/src/string/string_utils.h (+1-2)
  • (modified) libc/src/sys/stat/linux/CMakeLists.txt (+1)
  • (modified) libc/src/sys/stat/linux/kernel_statx.h (+1-1)
  • (modified) libc/src/time/CMakeLists.txt (+3-1)
  • (modified) libc/src/time/linux/CMakeLists.txt (+1)
  • (modified) libc/src/time/linux/nanosleep.cpp (+1-1)
  • (modified) libc/src/time/strftime_core/CMakeLists.txt (+1)
  • (modified) libc/src/time/strftime_core/core_structs.h (+1-2)
  • (modified) libc/src/time/time_constants.h (+1-1)
  • (modified) libc/src/time/time_utils.cpp (+1-2)
  • (modified) libc/src/time/time_utils.h (+1-2)
  • (modified) libc/src/unistd/linux/CMakeLists.txt (+4)
  • (modified) libc/src/unistd/linux/ftruncate.cpp (+1-1)
  • (modified) libc/src/unistd/linux/pread.cpp (+1-1)
  • (modified) libc/src/unistd/linux/pwrite.cpp (+1-1)
  • (modified) libc/src/unistd/linux/truncate.cpp (+1-1)
  • (modified) libc/startup/baremetal/CMakeLists.txt (+6)
  • (modified) libc/startup/baremetal/fini.cpp (+1-1)
  • (modified) libc/startup/baremetal/init.cpp (+1-1)
  • (modified) libc/startup/linux/CMakeLists.txt (+1)
  • (modified) libc/startup/linux/do_start.cpp (+1-1)
  • (modified) libc/test/IntegrationTest/CMakeLists.txt (+1)
  • (modified) libc/test/IntegrationTest/test.cpp (+1-1)
  • (modified) libc/test/UnitTest/CMakeLists.txt (+7)
  • (modified) libc/test/UnitTest/ExecuteFunction.h (+1-1)
  • (modified) libc/test/UnitTest/HermeticTestUtils.cpp (+1-1)
  • (modified) libc/test/UnitTest/PrintfMatcher.cpp (+1-2)
  • (modified) libc/test/UnitTest/RoundingModeUtils.h (+1-1)
  • (modified) libc/test/UnitTest/ScanfMatcher.cpp (+1-2)
  • (modified) libc/test/UnitTest/TestLogger.cpp (+3-4)
  • (modified) libc/test/integration/src/pthread/CMakeLists.txt (+5)
  • (modified) libc/test/integration/src/pthread/pthread_equal_test.cpp (+1-2)
  • (modified) libc/test/integration/src/pthread/pthread_mutex_test.cpp (+3-5)
  • (modified) libc/test/integration/src/pthread/pthread_name_test.cpp (+1-2)
  • (modified) libc/test/integration/src/pthread/pthread_once_test.cpp (+1-2)
  • (modified) libc/test/integration/src/pthread/pthread_test.cpp (+1-1)
  • (modified) libc/test/integration/src/spawn/CMakeLists.txt (+1)
  • (modified) libc/test/integration/src/spawn/posix_spawn_test.cpp (+1-1)
  • (modified) libc/test/src/CMakeLists.txt (+3-1)
  • (modified) libc/test/src/__support/CMakeLists.txt (+1)
  • (modified) libc/test/src/__support/CPP/CMakeLists.txt (+1)
  • (modified) libc/test/src/__support/CPP/bit_test.cpp (+1-2)
  • (modified) libc/test/src/__support/HashTable/CMakeLists.txt (+1)
  • (modified) libc/test/src/__support/HashTable/group_test.cpp (+1-1)
  • (modified) libc/test/src/__support/str_to_float_comparison_test.cpp (+1-1)
  • (modified) libc/test/src/fenv/feclearexcept_test.cpp (-1)
  • (modified) libc/test/src/math/LdExpTest.h (+1-1)
  • (modified) libc/test/src/math/acosf_test.cpp (+1-2)
  • (modified) libc/test/src/math/acoshf16_test.cpp (+1-1)
  • (modified) libc/test/src/math/acoshf_test.cpp (+1-2)
  • (modified) libc/test/src/math/asinf_test.cpp (+1-2)
  • (modified) libc/test/src/math/asinhf_test.cpp (+1-2)
  • (modified) libc/test/src/math/atanf_test.cpp (+1-2)
  • (modified) libc/test/src/math/atanhf16_test.cpp (+1-1)
  • (modified) libc/test/src/math/atanhf_test.cpp (+1-2)
  • (modified) libc/test/src/math/cosf_test.cpp (+1-2)
  • (modified) libc/test/src/math/coshf_test.cpp (+1-2)
  • (modified) libc/test/src/math/erff_test.cpp (+1-1)
  • (modified) libc/test/src/math/exp10_test.cpp (+1-1)
  • (modified) libc/test/src/math/exp10f_test.cpp (+1-1)
  • (modified) libc/test/src/math/exp10m1f_test.cpp (+1-1)
  • (modified) libc/test/src/math/exp2_test.cpp (+1-1)
  • (modified) libc/test/src/math/exp2f_test.cpp (+1-1)
  • (modified) libc/test/src/math/exp2m1f_test.cpp (+1-1)
  • (modified) libc/test/src/math/exp_test.cpp (+1-1)
  • (modified) libc/test/src/math/expf_test.cpp (+1-1)
  • (modified) libc/test/src/math/expm1_test.cpp (+1-1)
  • (modified) libc/test/src/math/expm1f_test.cpp (+1-1)
  • (modified) libc/test/src/math/in_float_range_test_helper.h (+1-1)
  • (modified) libc/test/src/math/log10_test.cpp (+1-1)
  • (modified) libc/test/src/math/log10f_test.cpp (+1-1)
  • (modified) libc/test/src/math/log1p_test.cpp (+1-1)
  • (modified) libc/test/src/math/log1pf_test.cpp (+1-1)
  • (modified) libc/test/src/math/log2_test.cpp (+1-1)
  • (modified) libc/test/src/math/log2f_test.cpp (+1-1)
  • (modified) libc/test/src/math/log_test.cpp (+1-1)
  • (modified) libc/test/src/math/logf_test.cpp (+1-1)
  • (modified) libc/test/src/math/performance_testing/Timer.h (+1-1)
  • (modified) libc/test/src/math/performance_testing/fmodf16_perf.cpp (+1-1)
  • (modified) libc/test/src/math/powf_test.cpp (+1-1)
  • (modified) libc/test/src/math/sdcomp26094.h (+1-2)
  • (modified) libc/test/src/math/sincosf_test.cpp (+1-1)
  • (modified) libc/test/src/math/sinf_test.cpp (+1-1)
  • (modified) libc/test/src/math/sinhf_test.cpp (+1-1)
  • (modified) libc/test/src/math/sinpif_test.cpp (+1-1)
  • (modified) libc/test/src/math/smoke/LdExpTest.h (+1-2)
  • (modified) libc/test/src/math/smoke/acosf_test.cpp (+1-1)
  • (modified) libc/test/src/math/smoke/acoshf_test.cpp (+1-1)
  • (modified) libc/test/src/math/smoke/asinf_test.cpp (+1-1)
  • (modified) libc/test/src/math/smoke/asinhf_test.cpp (+1-1)
  • (modified) libc/test/src/math/smoke/atanf_test.cpp (+1-1)
  • (modified) libc/test/src/math/smoke/atanhf_test.cpp (+1-1)
  • (modified) libc/test/src/math/smoke/cosf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/coshf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/cospif_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/erff_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/exp10_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/exp10f_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/exp2_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/exp2f_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/exp_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/expf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/expm1_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/expm1f_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/log10_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/log10f_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/log1pf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/log2_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/log2f_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/log_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/logf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/powf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/sincosf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/sinf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/sinhf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/sinpif_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/tanf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/tanhf_test.cpp (+1-2)
  • (modified) libc/test/src/math/tanf_test.cpp (+1-1)
  • (modified) libc/test/src/math/tanhf_test.cpp (+1-1)
  • (modified) libc/test/src/signal/CMakeLists.txt (+1)
  • (modified) libc/test/src/signal/sigaltstack_test.cpp (+1-1)
  • (modified) libc/test/src/spawn/CMakeLists.txt (+1)
  • (modified) libc/test/src/spawn/posix_spawn_file_actions_test.cpp (+1-1)
  • (modified) libc/test/src/stdlib/CMakeLists.txt (+3)
  • (modified) libc/test/src/stdlib/memalignment_test.cpp (+1-2)
  • (modified) libc/test/src/stdlib/strtoint32_test.cpp (+1-2)
  • (modified) libc/test/src/stdlib/strtoint64_test.cpp (+1-2)
  • (modified) libc/test/src/string/memory_utils/CMakeLists.txt (+1)
  • (modified) libc/test/src/string/memory_utils/memory_check_utils.h (+1-1)
  • (modified) libc/test/src/string/memory_utils/protected_pages.h (+1-1)
  • (modified) libc/utils/MPCWrapper/CMakeLists.txt (+1)
  • (modified) libc/utils/MPCWrapper/MPCUtils.cpp (+1-2)
  • (modified) libc/utils/MPCWrapper/MPCUtils.h (+1-2)
  • (modified) libc/utils/MPFRWrapper/CMakeLists.txt (+2)
  • (modified) libc/utils/MPFRWrapper/MPCommon.h (+1-2)
  • (modified) libc/utils/MPFRWrapper/MPFRUtils.h (+1-2)
diff --git a/libc/benchmarks/gpu/BenchmarkLogger.cpp b/libc/benchmarks/gpu/BenchmarkLogger.cpp
index 0d644fa3c37bc..d5996a74f6dd7 100644
--- a/libc/benchmarks/gpu/BenchmarkLogger.cpp
+++ b/libc/benchmarks/gpu/BenchmarkLogger.cpp
@@ -1,4 +1,5 @@
 #include "benchmarks/gpu/BenchmarkLogger.h"
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/string.h"
 #include "src/__support/CPP/string_view.h"
 #include "src/__support/OSUtil/io.h"               // write_to_stderr
@@ -7,8 +8,6 @@
 #include "src/__support/macros/properties/types.h" // LIBC_TYPES_HAS_INT128
 #include "src/__support/uint128.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 namespace benchmarks {
 
diff --git a/libc/benchmarks/gpu/CMakeLists.txt b/libc/benchmarks/gpu/CMakeLists.txt
index b58f4fd8b1a42..6ec64bf270b53 100644
--- a/libc/benchmarks/gpu/CMakeLists.txt
+++ b/libc/benchmarks/gpu/CMakeLists.txt
@@ -45,6 +45,7 @@ add_unittest_framework_library(
     LibcGpuBenchmark.h
     BenchmarkLogger.h
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.__support.big_int
     libc.src.__support.c_string
     libc.src.__support.CPP.string
diff --git a/libc/benchmarks/gpu/LibcGpuBenchmark.h b/libc/benchmarks/gpu/LibcGpuBenchmark.h
index f2cfbfbfdcdf0..a6cf62dd30ce5 100644
--- a/libc/benchmarks/gpu/LibcGpuBenchmark.h
+++ b/libc/benchmarks/gpu/LibcGpuBenchmark.h
@@ -3,6 +3,7 @@
 
 #include "benchmarks/gpu/BenchmarkLogger.h"
 #include "benchmarks/gpu/timing/timing.h"
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/array.h"
 #include "src/__support/CPP/functional.h"
 #include "src/__support/CPP/limits.h"
@@ -13,8 +14,6 @@
 #include "src/stdlib/rand.h"
 #include "src/time/clock.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 
 namespace benchmarks {
diff --git a/libc/benchmarks/gpu/src/math/CMakeLists.txt b/libc/benchmarks/gpu/src/math/CMakeLists.txt
index 6870c02449016..7a12ce4e61c9e 100644
--- a/libc/benchmarks/gpu/src/math/CMakeLists.txt
+++ b/libc/benchmarks/gpu/src/math/CMakeLists.txt
@@ -31,6 +31,7 @@ add_benchmark(
   SRCS
     sin_benchmark.cpp
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.math.sin
     libc.src.math.sinf
     libc.src.stdlib.srand
@@ -51,6 +52,7 @@ add_benchmark(
   SRCS
     atan2_benchmark.cpp
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.math.atan2
     libc.src.stdlib.srand
     libc.src.stdlib.rand
diff --git a/libc/benchmarks/gpu/src/math/platform.h b/libc/benchmarks/gpu/src/math/platform.h
index bb7825d38bd42..2dfa9f2299d46 100644
--- a/libc/benchmarks/gpu/src/math/platform.h
+++ b/libc/benchmarks/gpu/src/math/platform.h
@@ -7,9 +7,10 @@
 //===----------------------------------------------------------------------===//
 #ifndef LLVM_LIBC_SRC_MATH_AMDGPU_PLATFORM_H
 #define LLVM_LIBC_SRC_MATH_AMDGPU_PLATFORM_H
+
+#include "hdr/stdint_proxy.h"
 #include "src/__support/macros/attributes.h"
 #include "src/__support/macros/config.h"
-#include <stdint.h>
 
 namespace LIBC_NAMESPACE_DECL {
 
diff --git a/libc/benchmarks/gpu/timing/amdgpu/CMakeLists.txt b/libc/benchmarks/gpu/timing/amdgpu/CMakeLists.txt
index aa5dcd33bee9c..dd7c2d342f70f 100644
--- a/libc/benchmarks/gpu/timing/amdgpu/CMakeLists.txt
+++ b/libc/benchmarks/gpu/timing/amdgpu/CMakeLists.txt
@@ -3,6 +3,7 @@ add_header_library(
   HDRS
     timing.h
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.__support.common
     libc.src.__support.macros.config
     libc.src.__support.macros.attributes
diff --git a/libc/benchmarks/gpu/timing/amdgpu/timing.h b/libc/benchmarks/gpu/timing/amdgpu/timing.h
index 0f2c04c07c921..37dbb9af5976b 100644
--- a/libc/benchmarks/gpu/timing/amdgpu/timing.h
+++ b/libc/benchmarks/gpu/timing/amdgpu/timing.h
@@ -9,6 +9,7 @@
 #ifndef LLVM_LIBC_UTILS_GPU_TIMING_AMDGPU
 #define LLVM_LIBC_UTILS_GPU_TIMING_AMDGPU
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/array.h"
 #include "src/__support/CPP/atomic.h"
 #include "src/__support/CPP/type_traits.h"
@@ -17,8 +18,6 @@
 #include "src/__support/macros/attributes.h"
 #include "src/__support/macros/config.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 
 // Returns the overhead associated with calling the profiling region. This
diff --git a/libc/benchmarks/gpu/timing/nvptx/CMakeLists.txt b/libc/benchmarks/gpu/timing/nvptx/CMakeLists.txt
index 2723c8940814c..a19c16ee4e44d 100644
--- a/libc/benchmarks/gpu/timing/nvptx/CMakeLists.txt
+++ b/libc/benchmarks/gpu/timing/nvptx/CMakeLists.txt
@@ -3,6 +3,7 @@ add_header_library(
   HDRS
     timing.h
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.__support.common
     libc.src.__support.macros.config
     libc.src.__support.macros.attributes
diff --git a/libc/benchmarks/gpu/timing/nvptx/timing.h b/libc/benchmarks/gpu/timing/nvptx/timing.h
index 3ed97645ddc93..3c729636367aa 100644
--- a/libc/benchmarks/gpu/timing/nvptx/timing.h
+++ b/libc/benchmarks/gpu/timing/nvptx/timing.h
@@ -9,6 +9,7 @@
 #ifndef LLVM_LIBC_UTILS_GPU_TIMING_NVPTX
 #define LLVM_LIBC_UTILS_GPU_TIMING_NVPTX
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/array.h"
 #include "src/__support/CPP/atomic.h"
 #include "src/__support/CPP/type_traits.h"
@@ -17,8 +18,6 @@
 #include "src/__support/macros/attributes.h"
 #include "src/__support/macros/config.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 
 // Returns the overhead associated with calling the profiling region. This
diff --git a/libc/config/CMakeLists.txt b/libc/config/CMakeLists.txt
index cf38ae3eed726..4758276469f69 100644
--- a/libc/config/CMakeLists.txt
+++ b/libc/config/CMakeLists.txt
@@ -3,5 +3,6 @@ add_header_library(
   HDRS
     app.h
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.__support.common
 )
diff --git a/libc/config/gpu/app.h b/libc/config/gpu/app.h
index 148c51b702203..17ef3ae7b1ce9 100644
--- a/libc/config/gpu/app.h
+++ b/libc/config/gpu/app.h
@@ -9,11 +9,10 @@
 #ifndef LLVM_LIBC_CONFIG_GPU_APP_H
 #define LLVM_LIBC_CONFIG_GPU_APP_H
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/macros/config.h"
 #include "src/__support/macros/properties/architectures.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 
 // TODO: Move other global values here and export them to the host.
diff --git a/libc/config/linux/app.h b/libc/config/linux/app.h
index 188d34816454b..f3d11da9fc14c 100644
--- a/libc/config/linux/app.h
+++ b/libc/config/linux/app.h
@@ -9,11 +9,10 @@
 #ifndef LLVM_LIBC_CONFIG_LINUX_APP_H
 #define LLVM_LIBC_CONFIG_LINUX_APP_H
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/macros/config.h"
 #include "src/__support/macros/properties/architectures.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 
 // Data structure to capture properties of the linux/ELF TLS image.
diff --git a/libc/config/uefi/app.h b/libc/config/uefi/app.h
index 0374a47ba3402..1f181ed5f9f1f 100644
--- a/libc/config/uefi/app.h
+++ b/libc/config/uefi/app.h
@@ -9,13 +9,12 @@
 #ifndef LLVM_LIBC_CONFIG_UEFI_APP_H
 #define LLVM_LIBC_CONFIG_UEFI_APP_H
 
+#include "hdr/stdint_proxy.h"
 #include "include/llvm-libc-types/EFI_HANDLE.h"
 #include "include/llvm-libc-types/EFI_SYSTEM_TABLE.h"
 #include "src/__support/macros/config.h"
 #include "src/__support/macros/properties/architectures.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 
 // Data structure which captures properties of a UEFI application.
diff --git a/libc/hdr/CMakeLists.txt b/libc/hdr/CMakeLists.txt
index 052a773a4fcec..5fc25d0ca5689 100644
--- a/libc/hdr/CMakeLists.txt
+++ b/libc/hdr/CMakeLists.txt
@@ -243,5 +243,14 @@ add_proxy_header_library(
     libc.include.llvm-libc-macros.offsetof_macro
 )
 
+# stdint.h header.
+add_proxy_header_library(
+  stdint_proxy
+  HDRS
+    stdint_proxy.h
+  FULL_BUILD_DEPENDS
+    libc.include.stdint
+)
+
 add_subdirectory(types)
 add_subdirectory(func)
diff --git a/libc/hdr/stdint_proxy.h b/libc/hdr/stdint_proxy.h
new file mode 100644
index 0000000000000..8e815679a4e24
--- /dev/null
+++ b/libc/hdr/stdint_proxy.h
@@ -0,0 +1,18 @@
+//===-- stdint.h ----------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_HDR_STDINT_PROXY_H
+#define LLVM_LIBC_HDR_STDINT_PROXY_H
+
+// This target is to make sure we have correct build order in full build mode,
+// that is `libc.include.stdint` is added to the dependency of all targets
+// that use <stdint.h> header.
+
+#include <stdint.h>
+
+#endif // LLVM_LIBC_HDR_STDINT_PROXY_H
diff --git a/libc/hdr/types/CMakeLists.txt b/libc/hdr/types/CMakeLists.txt
index f3bdc9f6aedd1..bf85bf69425e9 100644
--- a/libc/hdr/types/CMakeLists.txt
+++ b/libc/hdr/types/CMakeLists.txt
@@ -94,6 +94,7 @@ add_proxy_header_library(
   DEPENDS
     libc.hdr.fcntl_overlay
   FULL_BUILD_DEPENDS
+    libc.hdr.stdint_proxy
     libc.include.llvm-libc-types.struct_flock
 )
 
@@ -104,6 +105,7 @@ add_proxy_header_library(
   DEPENDS
     libc.hdr.fcntl_overlay
   FULL_BUILD_DEPENDS
+    libc.hdr.stdint_proxy
     libc.include.llvm-libc-types.struct_flock64
 )
 
diff --git a/libc/include/CMakeLists.txt b/libc/include/CMakeLists.txt
index 73213826ad607..18fd3f890a343 100644
--- a/libc/include/CMakeLists.txt
+++ b/libc/include/CMakeLists.txt
@@ -101,6 +101,14 @@ add_header_macro(
     .llvm-libc-types.fexcept_t
 )
 
+add_header_macro(
+  stdint
+  ../libc/include/stdint.yaml
+  stdint.h
+  DEPENDS
+    .llvm-libc-macros.stdint_macros
+)
+
 add_header_macro(
   inttypes
   ../libc/include/inttypes.yaml
@@ -109,6 +117,7 @@ add_header_macro(
     .llvm_libc_common_h
     .llvm-libc-types.imaxdiv_t
     .llvm-libc-macros.inttypes_macros
+    .stdint
 )
 
 add_header_macro(
@@ -119,14 +128,6 @@ add_header_macro(
     .llvm-libc-macros.float_macros
 )
 
-add_header_macro(
-  stdint
-  ../libc/include/stdint.yaml
-  stdint.h
-  DEPENDS
-    .llvm-libc-macros.stdint_macros
-)
-
 add_header_macro(
   limits
   ../libc/include/limits.yaml
diff --git a/libc/src/__support/CMakeLists.txt b/libc/src/__support/CMakeLists.txt
index 37a27cc9b7007..2196d9e23bba7 100644
--- a/libc/src/__support/CMakeLists.txt
+++ b/libc/src/__support/CMakeLists.txt
@@ -15,6 +15,7 @@ add_header_library(
   HDRS
     block.h
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.algorithm
     libc.src.__support.CPP.limits
     libc.src.__support.CPP.new
@@ -86,6 +87,7 @@ add_header_library(
     blockstore.h
   DEPENDS
     .libc_assert
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.new
 )
 
@@ -97,6 +99,8 @@ add_header_library(
     macros/properties/architectures.h
     macros/attributes.h
     macros/config.h
+  DEPENDS
+    libc.hdr.stdint_proxy
 )
 
 add_header_library(
@@ -199,6 +203,7 @@ add_header_library(
     integer_to_string.h
   DEPENDS
     .big_int
+    libc.hdr.stdint_proxy
     libc.src.__support.common
     libc.src.__support.CPP.algorithm
     libc.src.__support.CPP.limits
@@ -215,6 +220,7 @@ add_header_library(
     ryu_long_double_constants.h
   DEPENDS
     .libc_assert
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.type_traits
     libc.src.__support.FPUtil.fp_bits
     libc.src.__support.common
@@ -226,6 +232,7 @@ add_header_library(
     high_precision_decimal.h
   DEPENDS
     .str_to_integer
+    libc.hdr.stdint_proxy
 )
 
 add_header_library(
@@ -240,6 +247,7 @@ add_header_library(
     .str_to_num_result
     .uint128
     libc.hdr.errno_macros
+    libc.hdr.stdint_proxy
     libc.src.__support.common
     libc.src.__support.CPP.bit
     libc.src.__support.CPP.limits
@@ -257,6 +265,7 @@ add_header_library(
     integer_literals.h
   DEPENDS
     .uint128
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.limits
 )
 
@@ -290,6 +299,7 @@ add_header_library(
   HDRS
     arg_list.h
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.__support.common
 )
 
@@ -329,6 +339,7 @@ add_header_library(
   DEPENDS
     .math_extras
     .number_pair
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.array
     libc.src.__support.CPP.bit
     libc.src.__support.CPP.type_traits
@@ -361,6 +372,7 @@ add_header_library(
     hash.h
   DEPENDS
     .uint128
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.bit
     libc.src.__support.CPP.limits
     libc.src.__support.macros.attributes
diff --git a/libc/src/__support/CPP/CMakeLists.txt b/libc/src/__support/CPP/CMakeLists.txt
index d2ba00a5384da..8b65a8839ab21 100644
--- a/libc/src/__support/CPP/CMakeLists.txt
+++ b/libc/src/__support/CPP/CMakeLists.txt
@@ -17,6 +17,7 @@ add_header_library(
   DEPENDS
     .limits
     .type_traits
+    libc.hdr.stdint_proxy
     libc.src.__support.macros.attributes
     libc.src.__support.macros.sanitizer
 )
@@ -39,6 +40,8 @@ add_header_library(
   functional
   HDRS
     functional.h
+  DEPENDS
+    libc.hdr.stdint_proxy
 )
 
 add_header_library(
diff --git a/libc/src/__support/CPP/bit.h b/libc/src/__support/CPP/bit.h
index e491f3e032669..df1b177ecb10b 100644
--- a/libc/src/__support/CPP/bit.h
+++ b/libc/src/__support/CPP/bit.h
@@ -11,14 +11,13 @@
 #ifndef LLVM_LIBC_SRC___SUPPORT_CPP_BIT_H
 #define LLVM_LIBC_SRC___SUPPORT_CPP_BIT_H
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/limits.h" // numeric_limits
 #include "src/__support/CPP/type_traits.h"
 #include "src/__support/macros/attributes.h"
 #include "src/__support/macros/config.h"
 #include "src/__support/macros/sanitizer.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 namespace cpp {
 
diff --git a/libc/src/__support/CPP/functional.h b/libc/src/__support/CPP/functional.h
index 50cfa256b6682..5c43d22369717 100644
--- a/libc/src/__support/CPP/functional.h
+++ b/libc/src/__support/CPP/functional.h
@@ -9,6 +9,7 @@
 #ifndef LLVM_LIBC_SRC___SUPPORT_CPP_FUNCTIONAL_H
 #define LLVM_LIBC_SRC___SUPPORT_CPP_FUNCTIONAL_H
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/type_traits/enable_if.h"
 #include "src/__support/CPP/type_traits/is_convertible.h"
 #include "src/__support/CPP/type_traits/is_same.h"
@@ -19,8 +20,6 @@
 #include "src/__support/macros/attributes.h"
 #include "src/__support/macros/config.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 namespace cpp {
 
diff --git a/libc/src/__support/FPUtil/CMakeLists.txt b/libc/src/__support/FPUtil/CMakeLists.txt
index 3024ac62b2951..94f8b95542470 100644
--- a/libc/src/__support/FPUtil/CMakeLists.txt
+++ b/libc/src/__support/FPUtil/CMakeLists.txt
@@ -6,6 +6,7 @@ add_header_library(
     libc.hdr.types.fenv_t
     libc.hdr.fenv_macros
     libc.hdr.math_macros
+    libc.hdr.stdint_proxy
     libc.src.__support.macros.attributes
     libc.src.errno.errno
 )
@@ -28,6 +29,7 @@ add_header_library(
   HDRS
     FPBits.h
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.__support.common
     libc.src.__support.CPP.bit
     libc.src.__support.CPP.type_traits
@@ -72,6 +74,7 @@ add_header_library(
     NormalFloat.h
   DEPENDS
     .fp_bits
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.type_traits
     libc.src.__support.common
 )
@@ -248,6 +251,7 @@ add_header_library(
     .nearest_integer_operations
     .normal_float
     libc.hdr.math_macros
+    libc.hdr.stdint_proxy
     libc.src.errno.errno
     libc.src.__support.common
     libc.src.__support.CPP.bit
@@ -277,6 +281,7 @@ add_header_library(
     .cast
     .comparison_operations
     .dyadic_float
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.bit
     libc.src.__support.CPP.type_traits
     libc.src.__support.macros.config
diff --git a/libc/src/__support/FPUtil/FPBits.h b/libc/src/__support/FPUtil/FPBits.h
index 9e21136558a03..2f695c1583755 100644
--- a/libc/src/__support/FPUtil/FPBits.h
+++ b/libc/src/__support/FPUtil/FPBits.h
@@ -15,6 +15,7 @@
 #ifndef LLVM_LIBC_SRC___SUPPORT_FPUTIL_FPBITS_H
 #define LLVM_LIBC_SRC___SUPPORT_FPUTIL_FPBITS_H
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/bit.h"
 #include "src/__support/CPP/type_traits.h"
 #include "src/__support/common.h"
@@ -26,8 +27,6 @@
 #include "src/__support/sign.h"                    // Sign
 #include "src/__support/uint128.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 namespace fputil {
 
diff --git a/libc/src/__support/FPUtil/NormalFloat.h b/libc/src/__support/FPUtil/NormalFloat.h
index a2f285fc6fb95..b30e36fd03e9f 100644
--- a/libc/src/__support/FPUtil/NormalFloat.h
+++ b/libc/src/__support/FPUtil/NormalFloat.h
@@ -11,12 +11,11 @@
 
 #include "FPBits.h"
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/type_traits.h"
 #include "src/__support/common.h"
 #include "src/__support/macros/config.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 namespace fputil {
 
diff --git a/libc/src/__support/FPUtil/aarch64/FEnvImpl.h b/libc/src/__support/FPUtil/aarch64/FEnvImpl.h
index 914155a01631d..18182ed977cce 100644
--- a/libc/src/__support/FPUtil/aarch64/FEnvImpl.h
+++ b/libc/src/__support/FPUtil/aarch64/FEnvImpl.h
@@ -18,9 +18,9 @@
 #endif
 
 #include <arm_acle.h>
-#include <stdint.h>
 
 #include "hdr/fenv_macros.h"
+#include "hdr/stdint_proxy.h"
 #include "hdr/types/fenv_t.h"
 #include "src/__support/FPUtil/FPBits.h"
 
diff --git a/libc/src/__support/FPUtil/aarch64/fenv_darwin_impl.h b/libc/src/__support/FPUtil/aarch64/fenv_darwin_impl.h
index dcce76b6116be..a2066d1025f63 100644
--- a/libc/src/__support/FPUtil/aarch64/fenv_darwin_impl.h
+++ b/libc/src/__support/FPUtil/aarch64/fenv_darwin_impl.h
@@ -18,9 +18,9 @@
 #endif
 
 #include <arm_acle.h>
-#include <stdint.h>
 
 #include "hdr/fenv_macros.h"
+#include "hdr/stdint_proxy.h"
 #include "hdr/types/fenv_t.h"
 #include "src/__support/FPUtil/FPBits.h"
 
diff --git a/libc/src/__support/FPUtil/arm/FEnvImpl.h b/libc/src/__support/FPUtil/arm/FEnvImpl.h
index aaf37c0a045af..64ab4a9189b77 100644
--- a/libc/src/__support/FPUtil/arm/FEnvImpl.h
+++ b/libc/src/__support/FPUtil/arm/FEnvImpl.h
@@ -10,11 +10,11 @@
 #define LLVM_LIBC_SRC___SUPPORT_FPUTIL_ARM_FENVIMPL_H
 
 #include "hdr/fenv_macros.h"
+#include "hdr/stdint_proxy.h"
 #include "hdr/types/fenv_t.h"
 #include "src/__support/FPUtil/FPBits.h"
 #include "src/__support/macros/attributes.h" // For LIBC_INLINE
 #include "src/__support/macros/config.h"
-#include <stdint.h>
 
 namespace LIBC_NAMESPACE_DECL {
 namespace fputil {
diff --git a/libc/src/__support/FPUtil/bfloat16.h b/libc/src/__support/FPUtil/bfloat16.h
index 84a0dca911691..fa45d73fba6c1 100644
--- a/libc/src/__support/FPUtil/bfloat16.h
+++ b/libc/src/__support/FPUtil/bfloat16.h
@@ -9,6 +9,7 @@
 #ifndef LLVM_LIBC_SRC___SUPPORT_FPUTIL_BFLOAT16_H
 #define LLVM_LIBC_SRC___SUPPORT_FPUTIL_BFLOAT16_H
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/bit.h"
 #include "src/__support/CPP/type_traits.h"
 #include "src/__support/FPUtil/cast.h"
@@ -17,8 +18,6 @@
 #include "src/__support/macros/config.h"
 #include "src/__support/macros/properties/types.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 namespace fputil {
 
diff --git a/libc/src/__support/FPUtil/riscv/FEnvImpl.h b/libc/src/__support/FPUtil/riscv/FEnvImpl.h
index 2f525eb5dac5a..cb2d2d59fb86c 100644
--- a/libc/src/__support/FPUtil/riscv/FEnvImpl.h
+++ b/libc/src/__support/FPUtil/riscv/FEnvImpl.h
@@ -10,13 +10,12 @@
 #define LLVM_LIBC_SRC___SUPPORT_FPUTIL_RISCV_FENVIMPL_H
 
 #include "hdr/fenv_macros.h"
+#include "hdr/stdint_proxy.h"
 #include "hdr/types/fenv_t.h"
 #include "src/__support/FPUtil/FPBits.h"
 #include "src/__support/macros/attributes.h" // For LIBC_INLINE_ASM
 #include "src/__support/macros/config.h"     // For LIBC_INLINE
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 namespace fputil {
 
diff --git a/libc/src/__support/FPUtil/x86_64/FEnvImpl.h b/libc/src/__support/FPUtil/x86_64/FEnvImpl.h
index 560727c22978e..5da509796d849 100644
--- a/libc/src/__support/FPUtil/x86_64/FEnvImpl.h
+++ b/libc/src/__support/FPUtil/x86_64/FEnvImpl.h
@@ -17,8 +17,7 @@
 #error "Invalid include"
 #endif
 
-#include <stdint.h>
-
+#include "hdr/stdint_proxy.h"
 #include "hdr/types/fenv_t.h"
 #include "src/__support/macros/sanitizer.h"
 
diff --git a/libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h b/libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h
index 2e6b297ae9349..74a991d40115e 100644
--- a/libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h
+++ b/libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h
@@ -16,12...
[truncated]

@llvmbot
Copy link
Member

llvmbot commented Jul 23, 2025

@llvm/pr-subscribers-backend-amdgpu

Author: None (lntue)

Changes

#149993


Patch is 140.65 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/150303.diff

239 Files Affected:

  • (modified) libc/benchmarks/gpu/BenchmarkLogger.cpp (+1-2)
  • (modified) libc/benchmarks/gpu/CMakeLists.txt (+1)
  • (modified) libc/benchmarks/gpu/LibcGpuBenchmark.h (+1-2)
  • (modified) libc/benchmarks/gpu/src/math/CMakeLists.txt (+2)
  • (modified) libc/benchmarks/gpu/src/math/platform.h (+2-1)
  • (modified) libc/benchmarks/gpu/timing/amdgpu/CMakeLists.txt (+1)
  • (modified) libc/benchmarks/gpu/timing/amdgpu/timing.h (+1-2)
  • (modified) libc/benchmarks/gpu/timing/nvptx/CMakeLists.txt (+1)
  • (modified) libc/benchmarks/gpu/timing/nvptx/timing.h (+1-2)
  • (modified) libc/config/CMakeLists.txt (+1)
  • (modified) libc/config/gpu/app.h (+1-2)
  • (modified) libc/config/linux/app.h (+1-2)
  • (modified) libc/config/uefi/app.h (+1-2)
  • (modified) libc/hdr/CMakeLists.txt (+9)
  • (added) libc/hdr/stdint_proxy.h (+18)
  • (modified) libc/hdr/types/CMakeLists.txt (+2)
  • (modified) libc/include/CMakeLists.txt (+9-8)
  • (modified) libc/src/__support/CMakeLists.txt (+12)
  • (modified) libc/src/__support/CPP/CMakeLists.txt (+3)
  • (modified) libc/src/__support/CPP/bit.h (+1-2)
  • (modified) libc/src/__support/CPP/functional.h (+1-2)
  • (modified) libc/src/__support/FPUtil/CMakeLists.txt (+5)
  • (modified) libc/src/__support/FPUtil/FPBits.h (+1-2)
  • (modified) libc/src/__support/FPUtil/NormalFloat.h (+1-2)
  • (modified) libc/src/__support/FPUtil/aarch64/FEnvImpl.h (+1-1)
  • (modified) libc/src/__support/FPUtil/aarch64/fenv_darwin_impl.h (+1-1)
  • (modified) libc/src/__support/FPUtil/arm/FEnvImpl.h (+1-1)
  • (modified) libc/src/__support/FPUtil/bfloat16.h (+1-2)
  • (modified) libc/src/__support/FPUtil/riscv/FEnvImpl.h (+1-2)
  • (modified) libc/src/__support/FPUtil/x86_64/FEnvImpl.h (+1-2)
  • (modified) libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h (+1-2)
  • (modified) libc/src/__support/File/CMakeLists.txt (+4-3)
  • (modified) libc/src/__support/File/file.h (+1-1)
  • (modified) libc/src/__support/File/linux/CMakeLists.txt (+5-4)
  • (modified) libc/src/__support/File/linux/lseekImpl.h (+1-1)
  • (modified) libc/src/__support/GPU/CMakeLists.txt (+1)
  • (modified) libc/src/__support/GPU/allocator.h (+1-1)
  • (modified) libc/src/__support/HashTable/CMakeLists.txt (+2)
  • (modified) libc/src/__support/HashTable/bitmask.h (+1-1)
  • (modified) libc/src/__support/HashTable/table.h (+1-1)
  • (modified) libc/src/__support/arg_list.h (+1-1)
  • (modified) libc/src/__support/big_int.h (+1-1)
  • (modified) libc/src/__support/block.h (+1-2)
  • (modified) libc/src/__support/blockstore.h (+1-1)
  • (modified) libc/src/__support/detailed_powers_of_ten.h (+1-2)
  • (modified) libc/src/__support/endian_internal.h (+2-3)
  • (modified) libc/src/__support/fixed_point/CMakeLists.txt (+1)
  • (modified) libc/src/__support/fixed_point/fx_rep.h (+1-2)
  • (modified) libc/src/__support/float_to_string.h (+1-2)
  • (modified) libc/src/__support/hash.h (+1-1)
  • (modified) libc/src/__support/high_precision_decimal.h (+1-1)
  • (modified) libc/src/__support/integer_literals.h (+1-1)
  • (modified) libc/src/__support/integer_to_string.h (+1-2)
  • (modified) libc/src/__support/macros/properties/CMakeLists.txt (+1)
  • (modified) libc/src/__support/macros/properties/types.h (+2-3)
  • (modified) libc/src/__support/math/CMakeLists.txt (+1)
  • (modified) libc/src/__support/math/exp10_float16_constants.h (+1-1)
  • (modified) libc/src/__support/ryu_constants.h (+1-1)
  • (modified) libc/src/__support/ryu_long_double_constants.h (+1-1)
  • (modified) libc/src/__support/str_to_float.h (+1-2)
  • (modified) libc/src/__support/threads/CMakeLists.txt (+2)
  • (modified) libc/src/__support/threads/CndVar.h (+1-2)
  • (modified) libc/src/__support/threads/linux/CMakeLists.txt (+3)
  • (modified) libc/src/__support/threads/linux/futex_word.h (+1-1)
  • (modified) libc/src/__support/threads/linux/thread.cpp (+1-1)
  • (modified) libc/src/__support/threads/thread.h (+1-1)
  • (modified) libc/src/__support/wchar/CMakeLists.txt (+2-1)
  • (modified) libc/src/__support/wchar/mbstate.h (+1-1)
  • (modified) libc/src/arpa/inet/CMakeLists.txt (+4)
  • (modified) libc/src/arpa/inet/htonl.h (+1-1)
  • (modified) libc/src/arpa/inet/htons.h (+1-1)
  • (modified) libc/src/arpa/inet/ntohl.h (+1-1)
  • (modified) libc/src/arpa/inet/ntohs.h (+1-1)
  • (modified) libc/src/compiler/generic/CMakeLists.txt (+1)
  • (modified) libc/src/compiler/generic/__stack_chk_fail.cpp (+1-1)
  • (modified) libc/src/inttypes/CMakeLists.txt (+2)
  • (modified) libc/src/inttypes/strtoimax.h (+1-1)
  • (modified) libc/src/inttypes/strtoumax.h (+1-1)
  • (modified) libc/src/link/CMakeLists.txt (+2)
  • (modified) libc/src/math/generic/CMakeLists.txt (+1)
  • (modified) libc/src/math/generic/expxf16.h (+1-2)
  • (modified) libc/src/pthread/CMakeLists.txt (+1)
  • (modified) libc/src/pthread/pthread_attr_setstack.cpp (+1-1)
  • (modified) libc/src/sched/linux/CMakeLists.txt (+1)
  • (modified) libc/src/sched/linux/sched_getaffinity.cpp (+1-1)
  • (modified) libc/src/spawn/CMakeLists.txt (+1)
  • (modified) libc/src/spawn/file_actions.h (+1-1)
  • (modified) libc/src/stdio/gpu/CMakeLists.txt (+1)
  • (modified) libc/src/stdio/gpu/fgets.cpp (+1-2)
  • (modified) libc/src/stdlib/CMakeLists.txt (+7-2)
  • (modified) libc/src/stdlib/a64l.cpp (+1-2)
  • (modified) libc/src/stdlib/bsearch.cpp (+1-1)
  • (modified) libc/src/stdlib/l64a.cpp (+1-2)
  • (modified) libc/src/stdlib/qsort.cpp (+1-2)
  • (modified) libc/src/stdlib/qsort_data.h (+1-2)
  • (modified) libc/src/stdlib/qsort_r.cpp (+1-2)
  • (modified) libc/src/stdlib/quick_sort.h (+1-2)
  • (modified) libc/src/string/CMakeLists.txt (+1)
  • (modified) libc/src/string/memory_utils/CMakeLists.txt (+1)
  • (modified) libc/src/string/memory_utils/op_generic.h (+1-2)
  • (modified) libc/src/string/memory_utils/utils.h (+1-1)
  • (modified) libc/src/string/memory_utils/x86_64/inline_memcpy.h (+1-1)
  • (modified) libc/src/string/string_utils.h (+1-2)
  • (modified) libc/src/sys/stat/linux/CMakeLists.txt (+1)
  • (modified) libc/src/sys/stat/linux/kernel_statx.h (+1-1)
  • (modified) libc/src/time/CMakeLists.txt (+3-1)
  • (modified) libc/src/time/linux/CMakeLists.txt (+1)
  • (modified) libc/src/time/linux/nanosleep.cpp (+1-1)
  • (modified) libc/src/time/strftime_core/CMakeLists.txt (+1)
  • (modified) libc/src/time/strftime_core/core_structs.h (+1-2)
  • (modified) libc/src/time/time_constants.h (+1-1)
  • (modified) libc/src/time/time_utils.cpp (+1-2)
  • (modified) libc/src/time/time_utils.h (+1-2)
  • (modified) libc/src/unistd/linux/CMakeLists.txt (+4)
  • (modified) libc/src/unistd/linux/ftruncate.cpp (+1-1)
  • (modified) libc/src/unistd/linux/pread.cpp (+1-1)
  • (modified) libc/src/unistd/linux/pwrite.cpp (+1-1)
  • (modified) libc/src/unistd/linux/truncate.cpp (+1-1)
  • (modified) libc/startup/baremetal/CMakeLists.txt (+6)
  • (modified) libc/startup/baremetal/fini.cpp (+1-1)
  • (modified) libc/startup/baremetal/init.cpp (+1-1)
  • (modified) libc/startup/linux/CMakeLists.txt (+1)
  • (modified) libc/startup/linux/do_start.cpp (+1-1)
  • (modified) libc/test/IntegrationTest/CMakeLists.txt (+1)
  • (modified) libc/test/IntegrationTest/test.cpp (+1-1)
  • (modified) libc/test/UnitTest/CMakeLists.txt (+7)
  • (modified) libc/test/UnitTest/ExecuteFunction.h (+1-1)
  • (modified) libc/test/UnitTest/HermeticTestUtils.cpp (+1-1)
  • (modified) libc/test/UnitTest/PrintfMatcher.cpp (+1-2)
  • (modified) libc/test/UnitTest/RoundingModeUtils.h (+1-1)
  • (modified) libc/test/UnitTest/ScanfMatcher.cpp (+1-2)
  • (modified) libc/test/UnitTest/TestLogger.cpp (+3-4)
  • (modified) libc/test/integration/src/pthread/CMakeLists.txt (+5)
  • (modified) libc/test/integration/src/pthread/pthread_equal_test.cpp (+1-2)
  • (modified) libc/test/integration/src/pthread/pthread_mutex_test.cpp (+3-5)
  • (modified) libc/test/integration/src/pthread/pthread_name_test.cpp (+1-2)
  • (modified) libc/test/integration/src/pthread/pthread_once_test.cpp (+1-2)
  • (modified) libc/test/integration/src/pthread/pthread_test.cpp (+1-1)
  • (modified) libc/test/integration/src/spawn/CMakeLists.txt (+1)
  • (modified) libc/test/integration/src/spawn/posix_spawn_test.cpp (+1-1)
  • (modified) libc/test/src/CMakeLists.txt (+3-1)
  • (modified) libc/test/src/__support/CMakeLists.txt (+1)
  • (modified) libc/test/src/__support/CPP/CMakeLists.txt (+1)
  • (modified) libc/test/src/__support/CPP/bit_test.cpp (+1-2)
  • (modified) libc/test/src/__support/HashTable/CMakeLists.txt (+1)
  • (modified) libc/test/src/__support/HashTable/group_test.cpp (+1-1)
  • (modified) libc/test/src/__support/str_to_float_comparison_test.cpp (+1-1)
  • (modified) libc/test/src/fenv/feclearexcept_test.cpp (-1)
  • (modified) libc/test/src/math/LdExpTest.h (+1-1)
  • (modified) libc/test/src/math/acosf_test.cpp (+1-2)
  • (modified) libc/test/src/math/acoshf16_test.cpp (+1-1)
  • (modified) libc/test/src/math/acoshf_test.cpp (+1-2)
  • (modified) libc/test/src/math/asinf_test.cpp (+1-2)
  • (modified) libc/test/src/math/asinhf_test.cpp (+1-2)
  • (modified) libc/test/src/math/atanf_test.cpp (+1-2)
  • (modified) libc/test/src/math/atanhf16_test.cpp (+1-1)
  • (modified) libc/test/src/math/atanhf_test.cpp (+1-2)
  • (modified) libc/test/src/math/cosf_test.cpp (+1-2)
  • (modified) libc/test/src/math/coshf_test.cpp (+1-2)
  • (modified) libc/test/src/math/erff_test.cpp (+1-1)
  • (modified) libc/test/src/math/exp10_test.cpp (+1-1)
  • (modified) libc/test/src/math/exp10f_test.cpp (+1-1)
  • (modified) libc/test/src/math/exp10m1f_test.cpp (+1-1)
  • (modified) libc/test/src/math/exp2_test.cpp (+1-1)
  • (modified) libc/test/src/math/exp2f_test.cpp (+1-1)
  • (modified) libc/test/src/math/exp2m1f_test.cpp (+1-1)
  • (modified) libc/test/src/math/exp_test.cpp (+1-1)
  • (modified) libc/test/src/math/expf_test.cpp (+1-1)
  • (modified) libc/test/src/math/expm1_test.cpp (+1-1)
  • (modified) libc/test/src/math/expm1f_test.cpp (+1-1)
  • (modified) libc/test/src/math/in_float_range_test_helper.h (+1-1)
  • (modified) libc/test/src/math/log10_test.cpp (+1-1)
  • (modified) libc/test/src/math/log10f_test.cpp (+1-1)
  • (modified) libc/test/src/math/log1p_test.cpp (+1-1)
  • (modified) libc/test/src/math/log1pf_test.cpp (+1-1)
  • (modified) libc/test/src/math/log2_test.cpp (+1-1)
  • (modified) libc/test/src/math/log2f_test.cpp (+1-1)
  • (modified) libc/test/src/math/log_test.cpp (+1-1)
  • (modified) libc/test/src/math/logf_test.cpp (+1-1)
  • (modified) libc/test/src/math/performance_testing/Timer.h (+1-1)
  • (modified) libc/test/src/math/performance_testing/fmodf16_perf.cpp (+1-1)
  • (modified) libc/test/src/math/powf_test.cpp (+1-1)
  • (modified) libc/test/src/math/sdcomp26094.h (+1-2)
  • (modified) libc/test/src/math/sincosf_test.cpp (+1-1)
  • (modified) libc/test/src/math/sinf_test.cpp (+1-1)
  • (modified) libc/test/src/math/sinhf_test.cpp (+1-1)
  • (modified) libc/test/src/math/sinpif_test.cpp (+1-1)
  • (modified) libc/test/src/math/smoke/LdExpTest.h (+1-2)
  • (modified) libc/test/src/math/smoke/acosf_test.cpp (+1-1)
  • (modified) libc/test/src/math/smoke/acoshf_test.cpp (+1-1)
  • (modified) libc/test/src/math/smoke/asinf_test.cpp (+1-1)
  • (modified) libc/test/src/math/smoke/asinhf_test.cpp (+1-1)
  • (modified) libc/test/src/math/smoke/atanf_test.cpp (+1-1)
  • (modified) libc/test/src/math/smoke/atanhf_test.cpp (+1-1)
  • (modified) libc/test/src/math/smoke/cosf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/coshf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/cospif_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/erff_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/exp10_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/exp10f_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/exp2_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/exp2f_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/exp_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/expf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/expm1_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/expm1f_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/log10_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/log10f_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/log1pf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/log2_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/log2f_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/log_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/logf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/powf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/sincosf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/sinf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/sinhf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/sinpif_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/tanf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/tanhf_test.cpp (+1-2)
  • (modified) libc/test/src/math/tanf_test.cpp (+1-1)
  • (modified) libc/test/src/math/tanhf_test.cpp (+1-1)
  • (modified) libc/test/src/signal/CMakeLists.txt (+1)
  • (modified) libc/test/src/signal/sigaltstack_test.cpp (+1-1)
  • (modified) libc/test/src/spawn/CMakeLists.txt (+1)
  • (modified) libc/test/src/spawn/posix_spawn_file_actions_test.cpp (+1-1)
  • (modified) libc/test/src/stdlib/CMakeLists.txt (+3)
  • (modified) libc/test/src/stdlib/memalignment_test.cpp (+1-2)
  • (modified) libc/test/src/stdlib/strtoint32_test.cpp (+1-2)
  • (modified) libc/test/src/stdlib/strtoint64_test.cpp (+1-2)
  • (modified) libc/test/src/string/memory_utils/CMakeLists.txt (+1)
  • (modified) libc/test/src/string/memory_utils/memory_check_utils.h (+1-1)
  • (modified) libc/test/src/string/memory_utils/protected_pages.h (+1-1)
  • (modified) libc/utils/MPCWrapper/CMakeLists.txt (+1)
  • (modified) libc/utils/MPCWrapper/MPCUtils.cpp (+1-2)
  • (modified) libc/utils/MPCWrapper/MPCUtils.h (+1-2)
  • (modified) libc/utils/MPFRWrapper/CMakeLists.txt (+2)
  • (modified) libc/utils/MPFRWrapper/MPCommon.h (+1-2)
  • (modified) libc/utils/MPFRWrapper/MPFRUtils.h (+1-2)
diff --git a/libc/benchmarks/gpu/BenchmarkLogger.cpp b/libc/benchmarks/gpu/BenchmarkLogger.cpp
index 0d644fa3c37bc..d5996a74f6dd7 100644
--- a/libc/benchmarks/gpu/BenchmarkLogger.cpp
+++ b/libc/benchmarks/gpu/BenchmarkLogger.cpp
@@ -1,4 +1,5 @@
 #include "benchmarks/gpu/BenchmarkLogger.h"
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/string.h"
 #include "src/__support/CPP/string_view.h"
 #include "src/__support/OSUtil/io.h"               // write_to_stderr
@@ -7,8 +8,6 @@
 #include "src/__support/macros/properties/types.h" // LIBC_TYPES_HAS_INT128
 #include "src/__support/uint128.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 namespace benchmarks {
 
diff --git a/libc/benchmarks/gpu/CMakeLists.txt b/libc/benchmarks/gpu/CMakeLists.txt
index b58f4fd8b1a42..6ec64bf270b53 100644
--- a/libc/benchmarks/gpu/CMakeLists.txt
+++ b/libc/benchmarks/gpu/CMakeLists.txt
@@ -45,6 +45,7 @@ add_unittest_framework_library(
     LibcGpuBenchmark.h
     BenchmarkLogger.h
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.__support.big_int
     libc.src.__support.c_string
     libc.src.__support.CPP.string
diff --git a/libc/benchmarks/gpu/LibcGpuBenchmark.h b/libc/benchmarks/gpu/LibcGpuBenchmark.h
index f2cfbfbfdcdf0..a6cf62dd30ce5 100644
--- a/libc/benchmarks/gpu/LibcGpuBenchmark.h
+++ b/libc/benchmarks/gpu/LibcGpuBenchmark.h
@@ -3,6 +3,7 @@
 
 #include "benchmarks/gpu/BenchmarkLogger.h"
 #include "benchmarks/gpu/timing/timing.h"
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/array.h"
 #include "src/__support/CPP/functional.h"
 #include "src/__support/CPP/limits.h"
@@ -13,8 +14,6 @@
 #include "src/stdlib/rand.h"
 #include "src/time/clock.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 
 namespace benchmarks {
diff --git a/libc/benchmarks/gpu/src/math/CMakeLists.txt b/libc/benchmarks/gpu/src/math/CMakeLists.txt
index 6870c02449016..7a12ce4e61c9e 100644
--- a/libc/benchmarks/gpu/src/math/CMakeLists.txt
+++ b/libc/benchmarks/gpu/src/math/CMakeLists.txt
@@ -31,6 +31,7 @@ add_benchmark(
   SRCS
     sin_benchmark.cpp
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.math.sin
     libc.src.math.sinf
     libc.src.stdlib.srand
@@ -51,6 +52,7 @@ add_benchmark(
   SRCS
     atan2_benchmark.cpp
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.math.atan2
     libc.src.stdlib.srand
     libc.src.stdlib.rand
diff --git a/libc/benchmarks/gpu/src/math/platform.h b/libc/benchmarks/gpu/src/math/platform.h
index bb7825d38bd42..2dfa9f2299d46 100644
--- a/libc/benchmarks/gpu/src/math/platform.h
+++ b/libc/benchmarks/gpu/src/math/platform.h
@@ -7,9 +7,10 @@
 //===----------------------------------------------------------------------===//
 #ifndef LLVM_LIBC_SRC_MATH_AMDGPU_PLATFORM_H
 #define LLVM_LIBC_SRC_MATH_AMDGPU_PLATFORM_H
+
+#include "hdr/stdint_proxy.h"
 #include "src/__support/macros/attributes.h"
 #include "src/__support/macros/config.h"
-#include <stdint.h>
 
 namespace LIBC_NAMESPACE_DECL {
 
diff --git a/libc/benchmarks/gpu/timing/amdgpu/CMakeLists.txt b/libc/benchmarks/gpu/timing/amdgpu/CMakeLists.txt
index aa5dcd33bee9c..dd7c2d342f70f 100644
--- a/libc/benchmarks/gpu/timing/amdgpu/CMakeLists.txt
+++ b/libc/benchmarks/gpu/timing/amdgpu/CMakeLists.txt
@@ -3,6 +3,7 @@ add_header_library(
   HDRS
     timing.h
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.__support.common
     libc.src.__support.macros.config
     libc.src.__support.macros.attributes
diff --git a/libc/benchmarks/gpu/timing/amdgpu/timing.h b/libc/benchmarks/gpu/timing/amdgpu/timing.h
index 0f2c04c07c921..37dbb9af5976b 100644
--- a/libc/benchmarks/gpu/timing/amdgpu/timing.h
+++ b/libc/benchmarks/gpu/timing/amdgpu/timing.h
@@ -9,6 +9,7 @@
 #ifndef LLVM_LIBC_UTILS_GPU_TIMING_AMDGPU
 #define LLVM_LIBC_UTILS_GPU_TIMING_AMDGPU
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/array.h"
 #include "src/__support/CPP/atomic.h"
 #include "src/__support/CPP/type_traits.h"
@@ -17,8 +18,6 @@
 #include "src/__support/macros/attributes.h"
 #include "src/__support/macros/config.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 
 // Returns the overhead associated with calling the profiling region. This
diff --git a/libc/benchmarks/gpu/timing/nvptx/CMakeLists.txt b/libc/benchmarks/gpu/timing/nvptx/CMakeLists.txt
index 2723c8940814c..a19c16ee4e44d 100644
--- a/libc/benchmarks/gpu/timing/nvptx/CMakeLists.txt
+++ b/libc/benchmarks/gpu/timing/nvptx/CMakeLists.txt
@@ -3,6 +3,7 @@ add_header_library(
   HDRS
     timing.h
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.__support.common
     libc.src.__support.macros.config
     libc.src.__support.macros.attributes
diff --git a/libc/benchmarks/gpu/timing/nvptx/timing.h b/libc/benchmarks/gpu/timing/nvptx/timing.h
index 3ed97645ddc93..3c729636367aa 100644
--- a/libc/benchmarks/gpu/timing/nvptx/timing.h
+++ b/libc/benchmarks/gpu/timing/nvptx/timing.h
@@ -9,6 +9,7 @@
 #ifndef LLVM_LIBC_UTILS_GPU_TIMING_NVPTX
 #define LLVM_LIBC_UTILS_GPU_TIMING_NVPTX
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/array.h"
 #include "src/__support/CPP/atomic.h"
 #include "src/__support/CPP/type_traits.h"
@@ -17,8 +18,6 @@
 #include "src/__support/macros/attributes.h"
 #include "src/__support/macros/config.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 
 // Returns the overhead associated with calling the profiling region. This
diff --git a/libc/config/CMakeLists.txt b/libc/config/CMakeLists.txt
index cf38ae3eed726..4758276469f69 100644
--- a/libc/config/CMakeLists.txt
+++ b/libc/config/CMakeLists.txt
@@ -3,5 +3,6 @@ add_header_library(
   HDRS
     app.h
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.__support.common
 )
diff --git a/libc/config/gpu/app.h b/libc/config/gpu/app.h
index 148c51b702203..17ef3ae7b1ce9 100644
--- a/libc/config/gpu/app.h
+++ b/libc/config/gpu/app.h
@@ -9,11 +9,10 @@
 #ifndef LLVM_LIBC_CONFIG_GPU_APP_H
 #define LLVM_LIBC_CONFIG_GPU_APP_H
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/macros/config.h"
 #include "src/__support/macros/properties/architectures.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 
 // TODO: Move other global values here and export them to the host.
diff --git a/libc/config/linux/app.h b/libc/config/linux/app.h
index 188d34816454b..f3d11da9fc14c 100644
--- a/libc/config/linux/app.h
+++ b/libc/config/linux/app.h
@@ -9,11 +9,10 @@
 #ifndef LLVM_LIBC_CONFIG_LINUX_APP_H
 #define LLVM_LIBC_CONFIG_LINUX_APP_H
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/macros/config.h"
 #include "src/__support/macros/properties/architectures.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 
 // Data structure to capture properties of the linux/ELF TLS image.
diff --git a/libc/config/uefi/app.h b/libc/config/uefi/app.h
index 0374a47ba3402..1f181ed5f9f1f 100644
--- a/libc/config/uefi/app.h
+++ b/libc/config/uefi/app.h
@@ -9,13 +9,12 @@
 #ifndef LLVM_LIBC_CONFIG_UEFI_APP_H
 #define LLVM_LIBC_CONFIG_UEFI_APP_H
 
+#include "hdr/stdint_proxy.h"
 #include "include/llvm-libc-types/EFI_HANDLE.h"
 #include "include/llvm-libc-types/EFI_SYSTEM_TABLE.h"
 #include "src/__support/macros/config.h"
 #include "src/__support/macros/properties/architectures.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 
 // Data structure which captures properties of a UEFI application.
diff --git a/libc/hdr/CMakeLists.txt b/libc/hdr/CMakeLists.txt
index 052a773a4fcec..5fc25d0ca5689 100644
--- a/libc/hdr/CMakeLists.txt
+++ b/libc/hdr/CMakeLists.txt
@@ -243,5 +243,14 @@ add_proxy_header_library(
     libc.include.llvm-libc-macros.offsetof_macro
 )
 
+# stdint.h header.
+add_proxy_header_library(
+  stdint_proxy
+  HDRS
+    stdint_proxy.h
+  FULL_BUILD_DEPENDS
+    libc.include.stdint
+)
+
 add_subdirectory(types)
 add_subdirectory(func)
diff --git a/libc/hdr/stdint_proxy.h b/libc/hdr/stdint_proxy.h
new file mode 100644
index 0000000000000..8e815679a4e24
--- /dev/null
+++ b/libc/hdr/stdint_proxy.h
@@ -0,0 +1,18 @@
+//===-- stdint.h ----------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_HDR_STDINT_PROXY_H
+#define LLVM_LIBC_HDR_STDINT_PROXY_H
+
+// This target is to make sure we have correct build order in full build mode,
+// that is `libc.include.stdint` is added to the dependency of all targets
+// that use <stdint.h> header.
+
+#include <stdint.h>
+
+#endif // LLVM_LIBC_HDR_STDINT_PROXY_H
diff --git a/libc/hdr/types/CMakeLists.txt b/libc/hdr/types/CMakeLists.txt
index f3bdc9f6aedd1..bf85bf69425e9 100644
--- a/libc/hdr/types/CMakeLists.txt
+++ b/libc/hdr/types/CMakeLists.txt
@@ -94,6 +94,7 @@ add_proxy_header_library(
   DEPENDS
     libc.hdr.fcntl_overlay
   FULL_BUILD_DEPENDS
+    libc.hdr.stdint_proxy
     libc.include.llvm-libc-types.struct_flock
 )
 
@@ -104,6 +105,7 @@ add_proxy_header_library(
   DEPENDS
     libc.hdr.fcntl_overlay
   FULL_BUILD_DEPENDS
+    libc.hdr.stdint_proxy
     libc.include.llvm-libc-types.struct_flock64
 )
 
diff --git a/libc/include/CMakeLists.txt b/libc/include/CMakeLists.txt
index 73213826ad607..18fd3f890a343 100644
--- a/libc/include/CMakeLists.txt
+++ b/libc/include/CMakeLists.txt
@@ -101,6 +101,14 @@ add_header_macro(
     .llvm-libc-types.fexcept_t
 )
 
+add_header_macro(
+  stdint
+  ../libc/include/stdint.yaml
+  stdint.h
+  DEPENDS
+    .llvm-libc-macros.stdint_macros
+)
+
 add_header_macro(
   inttypes
   ../libc/include/inttypes.yaml
@@ -109,6 +117,7 @@ add_header_macro(
     .llvm_libc_common_h
     .llvm-libc-types.imaxdiv_t
     .llvm-libc-macros.inttypes_macros
+    .stdint
 )
 
 add_header_macro(
@@ -119,14 +128,6 @@ add_header_macro(
     .llvm-libc-macros.float_macros
 )
 
-add_header_macro(
-  stdint
-  ../libc/include/stdint.yaml
-  stdint.h
-  DEPENDS
-    .llvm-libc-macros.stdint_macros
-)
-
 add_header_macro(
   limits
   ../libc/include/limits.yaml
diff --git a/libc/src/__support/CMakeLists.txt b/libc/src/__support/CMakeLists.txt
index 37a27cc9b7007..2196d9e23bba7 100644
--- a/libc/src/__support/CMakeLists.txt
+++ b/libc/src/__support/CMakeLists.txt
@@ -15,6 +15,7 @@ add_header_library(
   HDRS
     block.h
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.algorithm
     libc.src.__support.CPP.limits
     libc.src.__support.CPP.new
@@ -86,6 +87,7 @@ add_header_library(
     blockstore.h
   DEPENDS
     .libc_assert
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.new
 )
 
@@ -97,6 +99,8 @@ add_header_library(
     macros/properties/architectures.h
     macros/attributes.h
     macros/config.h
+  DEPENDS
+    libc.hdr.stdint_proxy
 )
 
 add_header_library(
@@ -199,6 +203,7 @@ add_header_library(
     integer_to_string.h
   DEPENDS
     .big_int
+    libc.hdr.stdint_proxy
     libc.src.__support.common
     libc.src.__support.CPP.algorithm
     libc.src.__support.CPP.limits
@@ -215,6 +220,7 @@ add_header_library(
     ryu_long_double_constants.h
   DEPENDS
     .libc_assert
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.type_traits
     libc.src.__support.FPUtil.fp_bits
     libc.src.__support.common
@@ -226,6 +232,7 @@ add_header_library(
     high_precision_decimal.h
   DEPENDS
     .str_to_integer
+    libc.hdr.stdint_proxy
 )
 
 add_header_library(
@@ -240,6 +247,7 @@ add_header_library(
     .str_to_num_result
     .uint128
     libc.hdr.errno_macros
+    libc.hdr.stdint_proxy
     libc.src.__support.common
     libc.src.__support.CPP.bit
     libc.src.__support.CPP.limits
@@ -257,6 +265,7 @@ add_header_library(
     integer_literals.h
   DEPENDS
     .uint128
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.limits
 )
 
@@ -290,6 +299,7 @@ add_header_library(
   HDRS
     arg_list.h
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.__support.common
 )
 
@@ -329,6 +339,7 @@ add_header_library(
   DEPENDS
     .math_extras
     .number_pair
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.array
     libc.src.__support.CPP.bit
     libc.src.__support.CPP.type_traits
@@ -361,6 +372,7 @@ add_header_library(
     hash.h
   DEPENDS
     .uint128
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.bit
     libc.src.__support.CPP.limits
     libc.src.__support.macros.attributes
diff --git a/libc/src/__support/CPP/CMakeLists.txt b/libc/src/__support/CPP/CMakeLists.txt
index d2ba00a5384da..8b65a8839ab21 100644
--- a/libc/src/__support/CPP/CMakeLists.txt
+++ b/libc/src/__support/CPP/CMakeLists.txt
@@ -17,6 +17,7 @@ add_header_library(
   DEPENDS
     .limits
     .type_traits
+    libc.hdr.stdint_proxy
     libc.src.__support.macros.attributes
     libc.src.__support.macros.sanitizer
 )
@@ -39,6 +40,8 @@ add_header_library(
   functional
   HDRS
     functional.h
+  DEPENDS
+    libc.hdr.stdint_proxy
 )
 
 add_header_library(
diff --git a/libc/src/__support/CPP/bit.h b/libc/src/__support/CPP/bit.h
index e491f3e032669..df1b177ecb10b 100644
--- a/libc/src/__support/CPP/bit.h
+++ b/libc/src/__support/CPP/bit.h
@@ -11,14 +11,13 @@
 #ifndef LLVM_LIBC_SRC___SUPPORT_CPP_BIT_H
 #define LLVM_LIBC_SRC___SUPPORT_CPP_BIT_H
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/limits.h" // numeric_limits
 #include "src/__support/CPP/type_traits.h"
 #include "src/__support/macros/attributes.h"
 #include "src/__support/macros/config.h"
 #include "src/__support/macros/sanitizer.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 namespace cpp {
 
diff --git a/libc/src/__support/CPP/functional.h b/libc/src/__support/CPP/functional.h
index 50cfa256b6682..5c43d22369717 100644
--- a/libc/src/__support/CPP/functional.h
+++ b/libc/src/__support/CPP/functional.h
@@ -9,6 +9,7 @@
 #ifndef LLVM_LIBC_SRC___SUPPORT_CPP_FUNCTIONAL_H
 #define LLVM_LIBC_SRC___SUPPORT_CPP_FUNCTIONAL_H
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/type_traits/enable_if.h"
 #include "src/__support/CPP/type_traits/is_convertible.h"
 #include "src/__support/CPP/type_traits/is_same.h"
@@ -19,8 +20,6 @@
 #include "src/__support/macros/attributes.h"
 #include "src/__support/macros/config.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 namespace cpp {
 
diff --git a/libc/src/__support/FPUtil/CMakeLists.txt b/libc/src/__support/FPUtil/CMakeLists.txt
index 3024ac62b2951..94f8b95542470 100644
--- a/libc/src/__support/FPUtil/CMakeLists.txt
+++ b/libc/src/__support/FPUtil/CMakeLists.txt
@@ -6,6 +6,7 @@ add_header_library(
     libc.hdr.types.fenv_t
     libc.hdr.fenv_macros
     libc.hdr.math_macros
+    libc.hdr.stdint_proxy
     libc.src.__support.macros.attributes
     libc.src.errno.errno
 )
@@ -28,6 +29,7 @@ add_header_library(
   HDRS
     FPBits.h
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.__support.common
     libc.src.__support.CPP.bit
     libc.src.__support.CPP.type_traits
@@ -72,6 +74,7 @@ add_header_library(
     NormalFloat.h
   DEPENDS
     .fp_bits
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.type_traits
     libc.src.__support.common
 )
@@ -248,6 +251,7 @@ add_header_library(
     .nearest_integer_operations
     .normal_float
     libc.hdr.math_macros
+    libc.hdr.stdint_proxy
     libc.src.errno.errno
     libc.src.__support.common
     libc.src.__support.CPP.bit
@@ -277,6 +281,7 @@ add_header_library(
     .cast
     .comparison_operations
     .dyadic_float
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.bit
     libc.src.__support.CPP.type_traits
     libc.src.__support.macros.config
diff --git a/libc/src/__support/FPUtil/FPBits.h b/libc/src/__support/FPUtil/FPBits.h
index 9e21136558a03..2f695c1583755 100644
--- a/libc/src/__support/FPUtil/FPBits.h
+++ b/libc/src/__support/FPUtil/FPBits.h
@@ -15,6 +15,7 @@
 #ifndef LLVM_LIBC_SRC___SUPPORT_FPUTIL_FPBITS_H
 #define LLVM_LIBC_SRC___SUPPORT_FPUTIL_FPBITS_H
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/bit.h"
 #include "src/__support/CPP/type_traits.h"
 #include "src/__support/common.h"
@@ -26,8 +27,6 @@
 #include "src/__support/sign.h"                    // Sign
 #include "src/__support/uint128.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 namespace fputil {
 
diff --git a/libc/src/__support/FPUtil/NormalFloat.h b/libc/src/__support/FPUtil/NormalFloat.h
index a2f285fc6fb95..b30e36fd03e9f 100644
--- a/libc/src/__support/FPUtil/NormalFloat.h
+++ b/libc/src/__support/FPUtil/NormalFloat.h
@@ -11,12 +11,11 @@
 
 #include "FPBits.h"
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/type_traits.h"
 #include "src/__support/common.h"
 #include "src/__support/macros/config.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 namespace fputil {
 
diff --git a/libc/src/__support/FPUtil/aarch64/FEnvImpl.h b/libc/src/__support/FPUtil/aarch64/FEnvImpl.h
index 914155a01631d..18182ed977cce 100644
--- a/libc/src/__support/FPUtil/aarch64/FEnvImpl.h
+++ b/libc/src/__support/FPUtil/aarch64/FEnvImpl.h
@@ -18,9 +18,9 @@
 #endif
 
 #include <arm_acle.h>
-#include <stdint.h>
 
 #include "hdr/fenv_macros.h"
+#include "hdr/stdint_proxy.h"
 #include "hdr/types/fenv_t.h"
 #include "src/__support/FPUtil/FPBits.h"
 
diff --git a/libc/src/__support/FPUtil/aarch64/fenv_darwin_impl.h b/libc/src/__support/FPUtil/aarch64/fenv_darwin_impl.h
index dcce76b6116be..a2066d1025f63 100644
--- a/libc/src/__support/FPUtil/aarch64/fenv_darwin_impl.h
+++ b/libc/src/__support/FPUtil/aarch64/fenv_darwin_impl.h
@@ -18,9 +18,9 @@
 #endif
 
 #include <arm_acle.h>
-#include <stdint.h>
 
 #include "hdr/fenv_macros.h"
+#include "hdr/stdint_proxy.h"
 #include "hdr/types/fenv_t.h"
 #include "src/__support/FPUtil/FPBits.h"
 
diff --git a/libc/src/__support/FPUtil/arm/FEnvImpl.h b/libc/src/__support/FPUtil/arm/FEnvImpl.h
index aaf37c0a045af..64ab4a9189b77 100644
--- a/libc/src/__support/FPUtil/arm/FEnvImpl.h
+++ b/libc/src/__support/FPUtil/arm/FEnvImpl.h
@@ -10,11 +10,11 @@
 #define LLVM_LIBC_SRC___SUPPORT_FPUTIL_ARM_FENVIMPL_H
 
 #include "hdr/fenv_macros.h"
+#include "hdr/stdint_proxy.h"
 #include "hdr/types/fenv_t.h"
 #include "src/__support/FPUtil/FPBits.h"
 #include "src/__support/macros/attributes.h" // For LIBC_INLINE
 #include "src/__support/macros/config.h"
-#include <stdint.h>
 
 namespace LIBC_NAMESPACE_DECL {
 namespace fputil {
diff --git a/libc/src/__support/FPUtil/bfloat16.h b/libc/src/__support/FPUtil/bfloat16.h
index 84a0dca911691..fa45d73fba6c1 100644
--- a/libc/src/__support/FPUtil/bfloat16.h
+++ b/libc/src/__support/FPUtil/bfloat16.h
@@ -9,6 +9,7 @@
 #ifndef LLVM_LIBC_SRC___SUPPORT_FPUTIL_BFLOAT16_H
 #define LLVM_LIBC_SRC___SUPPORT_FPUTIL_BFLOAT16_H
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/bit.h"
 #include "src/__support/CPP/type_traits.h"
 #include "src/__support/FPUtil/cast.h"
@@ -17,8 +18,6 @@
 #include "src/__support/macros/config.h"
 #include "src/__support/macros/properties/types.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 namespace fputil {
 
diff --git a/libc/src/__support/FPUtil/riscv/FEnvImpl.h b/libc/src/__support/FPUtil/riscv/FEnvImpl.h
index 2f525eb5dac5a..cb2d2d59fb86c 100644
--- a/libc/src/__support/FPUtil/riscv/FEnvImpl.h
+++ b/libc/src/__support/FPUtil/riscv/FEnvImpl.h
@@ -10,13 +10,12 @@
 #define LLVM_LIBC_SRC___SUPPORT_FPUTIL_RISCV_FENVIMPL_H
 
 #include "hdr/fenv_macros.h"
+#include "hdr/stdint_proxy.h"
 #include "hdr/types/fenv_t.h"
 #include "src/__support/FPUtil/FPBits.h"
 #include "src/__support/macros/attributes.h" // For LIBC_INLINE_ASM
 #include "src/__support/macros/config.h"     // For LIBC_INLINE
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 namespace fputil {
 
diff --git a/libc/src/__support/FPUtil/x86_64/FEnvImpl.h b/libc/src/__support/FPUtil/x86_64/FEnvImpl.h
index 560727c22978e..5da509796d849 100644
--- a/libc/src/__support/FPUtil/x86_64/FEnvImpl.h
+++ b/libc/src/__support/FPUtil/x86_64/FEnvImpl.h
@@ -17,8 +17,7 @@
 #error "Invalid include"
 #endif
 
-#include <stdint.h>
-
+#include "hdr/stdint_proxy.h"
 #include "hdr/types/fenv_t.h"
 #include "src/__support/macros/sanitizer.h"
 
diff --git a/libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h b/libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h
index 2e6b297ae9349..74a991d40115e 100644
--- a/libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h
+++ b/libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h
@@ -16,12...
[truncated]

@llvmbot
Copy link
Member

llvmbot commented Jul 23, 2025

@llvm/pr-subscribers-backend-risc-v

Author: None (lntue)

Changes

#149993


Patch is 140.65 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/150303.diff

239 Files Affected:

  • (modified) libc/benchmarks/gpu/BenchmarkLogger.cpp (+1-2)
  • (modified) libc/benchmarks/gpu/CMakeLists.txt (+1)
  • (modified) libc/benchmarks/gpu/LibcGpuBenchmark.h (+1-2)
  • (modified) libc/benchmarks/gpu/src/math/CMakeLists.txt (+2)
  • (modified) libc/benchmarks/gpu/src/math/platform.h (+2-1)
  • (modified) libc/benchmarks/gpu/timing/amdgpu/CMakeLists.txt (+1)
  • (modified) libc/benchmarks/gpu/timing/amdgpu/timing.h (+1-2)
  • (modified) libc/benchmarks/gpu/timing/nvptx/CMakeLists.txt (+1)
  • (modified) libc/benchmarks/gpu/timing/nvptx/timing.h (+1-2)
  • (modified) libc/config/CMakeLists.txt (+1)
  • (modified) libc/config/gpu/app.h (+1-2)
  • (modified) libc/config/linux/app.h (+1-2)
  • (modified) libc/config/uefi/app.h (+1-2)
  • (modified) libc/hdr/CMakeLists.txt (+9)
  • (added) libc/hdr/stdint_proxy.h (+18)
  • (modified) libc/hdr/types/CMakeLists.txt (+2)
  • (modified) libc/include/CMakeLists.txt (+9-8)
  • (modified) libc/src/__support/CMakeLists.txt (+12)
  • (modified) libc/src/__support/CPP/CMakeLists.txt (+3)
  • (modified) libc/src/__support/CPP/bit.h (+1-2)
  • (modified) libc/src/__support/CPP/functional.h (+1-2)
  • (modified) libc/src/__support/FPUtil/CMakeLists.txt (+5)
  • (modified) libc/src/__support/FPUtil/FPBits.h (+1-2)
  • (modified) libc/src/__support/FPUtil/NormalFloat.h (+1-2)
  • (modified) libc/src/__support/FPUtil/aarch64/FEnvImpl.h (+1-1)
  • (modified) libc/src/__support/FPUtil/aarch64/fenv_darwin_impl.h (+1-1)
  • (modified) libc/src/__support/FPUtil/arm/FEnvImpl.h (+1-1)
  • (modified) libc/src/__support/FPUtil/bfloat16.h (+1-2)
  • (modified) libc/src/__support/FPUtil/riscv/FEnvImpl.h (+1-2)
  • (modified) libc/src/__support/FPUtil/x86_64/FEnvImpl.h (+1-2)
  • (modified) libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h (+1-2)
  • (modified) libc/src/__support/File/CMakeLists.txt (+4-3)
  • (modified) libc/src/__support/File/file.h (+1-1)
  • (modified) libc/src/__support/File/linux/CMakeLists.txt (+5-4)
  • (modified) libc/src/__support/File/linux/lseekImpl.h (+1-1)
  • (modified) libc/src/__support/GPU/CMakeLists.txt (+1)
  • (modified) libc/src/__support/GPU/allocator.h (+1-1)
  • (modified) libc/src/__support/HashTable/CMakeLists.txt (+2)
  • (modified) libc/src/__support/HashTable/bitmask.h (+1-1)
  • (modified) libc/src/__support/HashTable/table.h (+1-1)
  • (modified) libc/src/__support/arg_list.h (+1-1)
  • (modified) libc/src/__support/big_int.h (+1-1)
  • (modified) libc/src/__support/block.h (+1-2)
  • (modified) libc/src/__support/blockstore.h (+1-1)
  • (modified) libc/src/__support/detailed_powers_of_ten.h (+1-2)
  • (modified) libc/src/__support/endian_internal.h (+2-3)
  • (modified) libc/src/__support/fixed_point/CMakeLists.txt (+1)
  • (modified) libc/src/__support/fixed_point/fx_rep.h (+1-2)
  • (modified) libc/src/__support/float_to_string.h (+1-2)
  • (modified) libc/src/__support/hash.h (+1-1)
  • (modified) libc/src/__support/high_precision_decimal.h (+1-1)
  • (modified) libc/src/__support/integer_literals.h (+1-1)
  • (modified) libc/src/__support/integer_to_string.h (+1-2)
  • (modified) libc/src/__support/macros/properties/CMakeLists.txt (+1)
  • (modified) libc/src/__support/macros/properties/types.h (+2-3)
  • (modified) libc/src/__support/math/CMakeLists.txt (+1)
  • (modified) libc/src/__support/math/exp10_float16_constants.h (+1-1)
  • (modified) libc/src/__support/ryu_constants.h (+1-1)
  • (modified) libc/src/__support/ryu_long_double_constants.h (+1-1)
  • (modified) libc/src/__support/str_to_float.h (+1-2)
  • (modified) libc/src/__support/threads/CMakeLists.txt (+2)
  • (modified) libc/src/__support/threads/CndVar.h (+1-2)
  • (modified) libc/src/__support/threads/linux/CMakeLists.txt (+3)
  • (modified) libc/src/__support/threads/linux/futex_word.h (+1-1)
  • (modified) libc/src/__support/threads/linux/thread.cpp (+1-1)
  • (modified) libc/src/__support/threads/thread.h (+1-1)
  • (modified) libc/src/__support/wchar/CMakeLists.txt (+2-1)
  • (modified) libc/src/__support/wchar/mbstate.h (+1-1)
  • (modified) libc/src/arpa/inet/CMakeLists.txt (+4)
  • (modified) libc/src/arpa/inet/htonl.h (+1-1)
  • (modified) libc/src/arpa/inet/htons.h (+1-1)
  • (modified) libc/src/arpa/inet/ntohl.h (+1-1)
  • (modified) libc/src/arpa/inet/ntohs.h (+1-1)
  • (modified) libc/src/compiler/generic/CMakeLists.txt (+1)
  • (modified) libc/src/compiler/generic/__stack_chk_fail.cpp (+1-1)
  • (modified) libc/src/inttypes/CMakeLists.txt (+2)
  • (modified) libc/src/inttypes/strtoimax.h (+1-1)
  • (modified) libc/src/inttypes/strtoumax.h (+1-1)
  • (modified) libc/src/link/CMakeLists.txt (+2)
  • (modified) libc/src/math/generic/CMakeLists.txt (+1)
  • (modified) libc/src/math/generic/expxf16.h (+1-2)
  • (modified) libc/src/pthread/CMakeLists.txt (+1)
  • (modified) libc/src/pthread/pthread_attr_setstack.cpp (+1-1)
  • (modified) libc/src/sched/linux/CMakeLists.txt (+1)
  • (modified) libc/src/sched/linux/sched_getaffinity.cpp (+1-1)
  • (modified) libc/src/spawn/CMakeLists.txt (+1)
  • (modified) libc/src/spawn/file_actions.h (+1-1)
  • (modified) libc/src/stdio/gpu/CMakeLists.txt (+1)
  • (modified) libc/src/stdio/gpu/fgets.cpp (+1-2)
  • (modified) libc/src/stdlib/CMakeLists.txt (+7-2)
  • (modified) libc/src/stdlib/a64l.cpp (+1-2)
  • (modified) libc/src/stdlib/bsearch.cpp (+1-1)
  • (modified) libc/src/stdlib/l64a.cpp (+1-2)
  • (modified) libc/src/stdlib/qsort.cpp (+1-2)
  • (modified) libc/src/stdlib/qsort_data.h (+1-2)
  • (modified) libc/src/stdlib/qsort_r.cpp (+1-2)
  • (modified) libc/src/stdlib/quick_sort.h (+1-2)
  • (modified) libc/src/string/CMakeLists.txt (+1)
  • (modified) libc/src/string/memory_utils/CMakeLists.txt (+1)
  • (modified) libc/src/string/memory_utils/op_generic.h (+1-2)
  • (modified) libc/src/string/memory_utils/utils.h (+1-1)
  • (modified) libc/src/string/memory_utils/x86_64/inline_memcpy.h (+1-1)
  • (modified) libc/src/string/string_utils.h (+1-2)
  • (modified) libc/src/sys/stat/linux/CMakeLists.txt (+1)
  • (modified) libc/src/sys/stat/linux/kernel_statx.h (+1-1)
  • (modified) libc/src/time/CMakeLists.txt (+3-1)
  • (modified) libc/src/time/linux/CMakeLists.txt (+1)
  • (modified) libc/src/time/linux/nanosleep.cpp (+1-1)
  • (modified) libc/src/time/strftime_core/CMakeLists.txt (+1)
  • (modified) libc/src/time/strftime_core/core_structs.h (+1-2)
  • (modified) libc/src/time/time_constants.h (+1-1)
  • (modified) libc/src/time/time_utils.cpp (+1-2)
  • (modified) libc/src/time/time_utils.h (+1-2)
  • (modified) libc/src/unistd/linux/CMakeLists.txt (+4)
  • (modified) libc/src/unistd/linux/ftruncate.cpp (+1-1)
  • (modified) libc/src/unistd/linux/pread.cpp (+1-1)
  • (modified) libc/src/unistd/linux/pwrite.cpp (+1-1)
  • (modified) libc/src/unistd/linux/truncate.cpp (+1-1)
  • (modified) libc/startup/baremetal/CMakeLists.txt (+6)
  • (modified) libc/startup/baremetal/fini.cpp (+1-1)
  • (modified) libc/startup/baremetal/init.cpp (+1-1)
  • (modified) libc/startup/linux/CMakeLists.txt (+1)
  • (modified) libc/startup/linux/do_start.cpp (+1-1)
  • (modified) libc/test/IntegrationTest/CMakeLists.txt (+1)
  • (modified) libc/test/IntegrationTest/test.cpp (+1-1)
  • (modified) libc/test/UnitTest/CMakeLists.txt (+7)
  • (modified) libc/test/UnitTest/ExecuteFunction.h (+1-1)
  • (modified) libc/test/UnitTest/HermeticTestUtils.cpp (+1-1)
  • (modified) libc/test/UnitTest/PrintfMatcher.cpp (+1-2)
  • (modified) libc/test/UnitTest/RoundingModeUtils.h (+1-1)
  • (modified) libc/test/UnitTest/ScanfMatcher.cpp (+1-2)
  • (modified) libc/test/UnitTest/TestLogger.cpp (+3-4)
  • (modified) libc/test/integration/src/pthread/CMakeLists.txt (+5)
  • (modified) libc/test/integration/src/pthread/pthread_equal_test.cpp (+1-2)
  • (modified) libc/test/integration/src/pthread/pthread_mutex_test.cpp (+3-5)
  • (modified) libc/test/integration/src/pthread/pthread_name_test.cpp (+1-2)
  • (modified) libc/test/integration/src/pthread/pthread_once_test.cpp (+1-2)
  • (modified) libc/test/integration/src/pthread/pthread_test.cpp (+1-1)
  • (modified) libc/test/integration/src/spawn/CMakeLists.txt (+1)
  • (modified) libc/test/integration/src/spawn/posix_spawn_test.cpp (+1-1)
  • (modified) libc/test/src/CMakeLists.txt (+3-1)
  • (modified) libc/test/src/__support/CMakeLists.txt (+1)
  • (modified) libc/test/src/__support/CPP/CMakeLists.txt (+1)
  • (modified) libc/test/src/__support/CPP/bit_test.cpp (+1-2)
  • (modified) libc/test/src/__support/HashTable/CMakeLists.txt (+1)
  • (modified) libc/test/src/__support/HashTable/group_test.cpp (+1-1)
  • (modified) libc/test/src/__support/str_to_float_comparison_test.cpp (+1-1)
  • (modified) libc/test/src/fenv/feclearexcept_test.cpp (-1)
  • (modified) libc/test/src/math/LdExpTest.h (+1-1)
  • (modified) libc/test/src/math/acosf_test.cpp (+1-2)
  • (modified) libc/test/src/math/acoshf16_test.cpp (+1-1)
  • (modified) libc/test/src/math/acoshf_test.cpp (+1-2)
  • (modified) libc/test/src/math/asinf_test.cpp (+1-2)
  • (modified) libc/test/src/math/asinhf_test.cpp (+1-2)
  • (modified) libc/test/src/math/atanf_test.cpp (+1-2)
  • (modified) libc/test/src/math/atanhf16_test.cpp (+1-1)
  • (modified) libc/test/src/math/atanhf_test.cpp (+1-2)
  • (modified) libc/test/src/math/cosf_test.cpp (+1-2)
  • (modified) libc/test/src/math/coshf_test.cpp (+1-2)
  • (modified) libc/test/src/math/erff_test.cpp (+1-1)
  • (modified) libc/test/src/math/exp10_test.cpp (+1-1)
  • (modified) libc/test/src/math/exp10f_test.cpp (+1-1)
  • (modified) libc/test/src/math/exp10m1f_test.cpp (+1-1)
  • (modified) libc/test/src/math/exp2_test.cpp (+1-1)
  • (modified) libc/test/src/math/exp2f_test.cpp (+1-1)
  • (modified) libc/test/src/math/exp2m1f_test.cpp (+1-1)
  • (modified) libc/test/src/math/exp_test.cpp (+1-1)
  • (modified) libc/test/src/math/expf_test.cpp (+1-1)
  • (modified) libc/test/src/math/expm1_test.cpp (+1-1)
  • (modified) libc/test/src/math/expm1f_test.cpp (+1-1)
  • (modified) libc/test/src/math/in_float_range_test_helper.h (+1-1)
  • (modified) libc/test/src/math/log10_test.cpp (+1-1)
  • (modified) libc/test/src/math/log10f_test.cpp (+1-1)
  • (modified) libc/test/src/math/log1p_test.cpp (+1-1)
  • (modified) libc/test/src/math/log1pf_test.cpp (+1-1)
  • (modified) libc/test/src/math/log2_test.cpp (+1-1)
  • (modified) libc/test/src/math/log2f_test.cpp (+1-1)
  • (modified) libc/test/src/math/log_test.cpp (+1-1)
  • (modified) libc/test/src/math/logf_test.cpp (+1-1)
  • (modified) libc/test/src/math/performance_testing/Timer.h (+1-1)
  • (modified) libc/test/src/math/performance_testing/fmodf16_perf.cpp (+1-1)
  • (modified) libc/test/src/math/powf_test.cpp (+1-1)
  • (modified) libc/test/src/math/sdcomp26094.h (+1-2)
  • (modified) libc/test/src/math/sincosf_test.cpp (+1-1)
  • (modified) libc/test/src/math/sinf_test.cpp (+1-1)
  • (modified) libc/test/src/math/sinhf_test.cpp (+1-1)
  • (modified) libc/test/src/math/sinpif_test.cpp (+1-1)
  • (modified) libc/test/src/math/smoke/LdExpTest.h (+1-2)
  • (modified) libc/test/src/math/smoke/acosf_test.cpp (+1-1)
  • (modified) libc/test/src/math/smoke/acoshf_test.cpp (+1-1)
  • (modified) libc/test/src/math/smoke/asinf_test.cpp (+1-1)
  • (modified) libc/test/src/math/smoke/asinhf_test.cpp (+1-1)
  • (modified) libc/test/src/math/smoke/atanf_test.cpp (+1-1)
  • (modified) libc/test/src/math/smoke/atanhf_test.cpp (+1-1)
  • (modified) libc/test/src/math/smoke/cosf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/coshf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/cospif_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/erff_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/exp10_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/exp10f_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/exp2_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/exp2f_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/exp_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/expf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/expm1_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/expm1f_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/log10_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/log10f_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/log1pf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/log2_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/log2f_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/log_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/logf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/powf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/sincosf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/sinf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/sinhf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/sinpif_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/tanf_test.cpp (+1-2)
  • (modified) libc/test/src/math/smoke/tanhf_test.cpp (+1-2)
  • (modified) libc/test/src/math/tanf_test.cpp (+1-1)
  • (modified) libc/test/src/math/tanhf_test.cpp (+1-1)
  • (modified) libc/test/src/signal/CMakeLists.txt (+1)
  • (modified) libc/test/src/signal/sigaltstack_test.cpp (+1-1)
  • (modified) libc/test/src/spawn/CMakeLists.txt (+1)
  • (modified) libc/test/src/spawn/posix_spawn_file_actions_test.cpp (+1-1)
  • (modified) libc/test/src/stdlib/CMakeLists.txt (+3)
  • (modified) libc/test/src/stdlib/memalignment_test.cpp (+1-2)
  • (modified) libc/test/src/stdlib/strtoint32_test.cpp (+1-2)
  • (modified) libc/test/src/stdlib/strtoint64_test.cpp (+1-2)
  • (modified) libc/test/src/string/memory_utils/CMakeLists.txt (+1)
  • (modified) libc/test/src/string/memory_utils/memory_check_utils.h (+1-1)
  • (modified) libc/test/src/string/memory_utils/protected_pages.h (+1-1)
  • (modified) libc/utils/MPCWrapper/CMakeLists.txt (+1)
  • (modified) libc/utils/MPCWrapper/MPCUtils.cpp (+1-2)
  • (modified) libc/utils/MPCWrapper/MPCUtils.h (+1-2)
  • (modified) libc/utils/MPFRWrapper/CMakeLists.txt (+2)
  • (modified) libc/utils/MPFRWrapper/MPCommon.h (+1-2)
  • (modified) libc/utils/MPFRWrapper/MPFRUtils.h (+1-2)
diff --git a/libc/benchmarks/gpu/BenchmarkLogger.cpp b/libc/benchmarks/gpu/BenchmarkLogger.cpp
index 0d644fa3c37bc..d5996a74f6dd7 100644
--- a/libc/benchmarks/gpu/BenchmarkLogger.cpp
+++ b/libc/benchmarks/gpu/BenchmarkLogger.cpp
@@ -1,4 +1,5 @@
 #include "benchmarks/gpu/BenchmarkLogger.h"
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/string.h"
 #include "src/__support/CPP/string_view.h"
 #include "src/__support/OSUtil/io.h"               // write_to_stderr
@@ -7,8 +8,6 @@
 #include "src/__support/macros/properties/types.h" // LIBC_TYPES_HAS_INT128
 #include "src/__support/uint128.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 namespace benchmarks {
 
diff --git a/libc/benchmarks/gpu/CMakeLists.txt b/libc/benchmarks/gpu/CMakeLists.txt
index b58f4fd8b1a42..6ec64bf270b53 100644
--- a/libc/benchmarks/gpu/CMakeLists.txt
+++ b/libc/benchmarks/gpu/CMakeLists.txt
@@ -45,6 +45,7 @@ add_unittest_framework_library(
     LibcGpuBenchmark.h
     BenchmarkLogger.h
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.__support.big_int
     libc.src.__support.c_string
     libc.src.__support.CPP.string
diff --git a/libc/benchmarks/gpu/LibcGpuBenchmark.h b/libc/benchmarks/gpu/LibcGpuBenchmark.h
index f2cfbfbfdcdf0..a6cf62dd30ce5 100644
--- a/libc/benchmarks/gpu/LibcGpuBenchmark.h
+++ b/libc/benchmarks/gpu/LibcGpuBenchmark.h
@@ -3,6 +3,7 @@
 
 #include "benchmarks/gpu/BenchmarkLogger.h"
 #include "benchmarks/gpu/timing/timing.h"
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/array.h"
 #include "src/__support/CPP/functional.h"
 #include "src/__support/CPP/limits.h"
@@ -13,8 +14,6 @@
 #include "src/stdlib/rand.h"
 #include "src/time/clock.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 
 namespace benchmarks {
diff --git a/libc/benchmarks/gpu/src/math/CMakeLists.txt b/libc/benchmarks/gpu/src/math/CMakeLists.txt
index 6870c02449016..7a12ce4e61c9e 100644
--- a/libc/benchmarks/gpu/src/math/CMakeLists.txt
+++ b/libc/benchmarks/gpu/src/math/CMakeLists.txt
@@ -31,6 +31,7 @@ add_benchmark(
   SRCS
     sin_benchmark.cpp
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.math.sin
     libc.src.math.sinf
     libc.src.stdlib.srand
@@ -51,6 +52,7 @@ add_benchmark(
   SRCS
     atan2_benchmark.cpp
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.math.atan2
     libc.src.stdlib.srand
     libc.src.stdlib.rand
diff --git a/libc/benchmarks/gpu/src/math/platform.h b/libc/benchmarks/gpu/src/math/platform.h
index bb7825d38bd42..2dfa9f2299d46 100644
--- a/libc/benchmarks/gpu/src/math/platform.h
+++ b/libc/benchmarks/gpu/src/math/platform.h
@@ -7,9 +7,10 @@
 //===----------------------------------------------------------------------===//
 #ifndef LLVM_LIBC_SRC_MATH_AMDGPU_PLATFORM_H
 #define LLVM_LIBC_SRC_MATH_AMDGPU_PLATFORM_H
+
+#include "hdr/stdint_proxy.h"
 #include "src/__support/macros/attributes.h"
 #include "src/__support/macros/config.h"
-#include <stdint.h>
 
 namespace LIBC_NAMESPACE_DECL {
 
diff --git a/libc/benchmarks/gpu/timing/amdgpu/CMakeLists.txt b/libc/benchmarks/gpu/timing/amdgpu/CMakeLists.txt
index aa5dcd33bee9c..dd7c2d342f70f 100644
--- a/libc/benchmarks/gpu/timing/amdgpu/CMakeLists.txt
+++ b/libc/benchmarks/gpu/timing/amdgpu/CMakeLists.txt
@@ -3,6 +3,7 @@ add_header_library(
   HDRS
     timing.h
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.__support.common
     libc.src.__support.macros.config
     libc.src.__support.macros.attributes
diff --git a/libc/benchmarks/gpu/timing/amdgpu/timing.h b/libc/benchmarks/gpu/timing/amdgpu/timing.h
index 0f2c04c07c921..37dbb9af5976b 100644
--- a/libc/benchmarks/gpu/timing/amdgpu/timing.h
+++ b/libc/benchmarks/gpu/timing/amdgpu/timing.h
@@ -9,6 +9,7 @@
 #ifndef LLVM_LIBC_UTILS_GPU_TIMING_AMDGPU
 #define LLVM_LIBC_UTILS_GPU_TIMING_AMDGPU
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/array.h"
 #include "src/__support/CPP/atomic.h"
 #include "src/__support/CPP/type_traits.h"
@@ -17,8 +18,6 @@
 #include "src/__support/macros/attributes.h"
 #include "src/__support/macros/config.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 
 // Returns the overhead associated with calling the profiling region. This
diff --git a/libc/benchmarks/gpu/timing/nvptx/CMakeLists.txt b/libc/benchmarks/gpu/timing/nvptx/CMakeLists.txt
index 2723c8940814c..a19c16ee4e44d 100644
--- a/libc/benchmarks/gpu/timing/nvptx/CMakeLists.txt
+++ b/libc/benchmarks/gpu/timing/nvptx/CMakeLists.txt
@@ -3,6 +3,7 @@ add_header_library(
   HDRS
     timing.h
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.__support.common
     libc.src.__support.macros.config
     libc.src.__support.macros.attributes
diff --git a/libc/benchmarks/gpu/timing/nvptx/timing.h b/libc/benchmarks/gpu/timing/nvptx/timing.h
index 3ed97645ddc93..3c729636367aa 100644
--- a/libc/benchmarks/gpu/timing/nvptx/timing.h
+++ b/libc/benchmarks/gpu/timing/nvptx/timing.h
@@ -9,6 +9,7 @@
 #ifndef LLVM_LIBC_UTILS_GPU_TIMING_NVPTX
 #define LLVM_LIBC_UTILS_GPU_TIMING_NVPTX
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/array.h"
 #include "src/__support/CPP/atomic.h"
 #include "src/__support/CPP/type_traits.h"
@@ -17,8 +18,6 @@
 #include "src/__support/macros/attributes.h"
 #include "src/__support/macros/config.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 
 // Returns the overhead associated with calling the profiling region. This
diff --git a/libc/config/CMakeLists.txt b/libc/config/CMakeLists.txt
index cf38ae3eed726..4758276469f69 100644
--- a/libc/config/CMakeLists.txt
+++ b/libc/config/CMakeLists.txt
@@ -3,5 +3,6 @@ add_header_library(
   HDRS
     app.h
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.__support.common
 )
diff --git a/libc/config/gpu/app.h b/libc/config/gpu/app.h
index 148c51b702203..17ef3ae7b1ce9 100644
--- a/libc/config/gpu/app.h
+++ b/libc/config/gpu/app.h
@@ -9,11 +9,10 @@
 #ifndef LLVM_LIBC_CONFIG_GPU_APP_H
 #define LLVM_LIBC_CONFIG_GPU_APP_H
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/macros/config.h"
 #include "src/__support/macros/properties/architectures.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 
 // TODO: Move other global values here and export them to the host.
diff --git a/libc/config/linux/app.h b/libc/config/linux/app.h
index 188d34816454b..f3d11da9fc14c 100644
--- a/libc/config/linux/app.h
+++ b/libc/config/linux/app.h
@@ -9,11 +9,10 @@
 #ifndef LLVM_LIBC_CONFIG_LINUX_APP_H
 #define LLVM_LIBC_CONFIG_LINUX_APP_H
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/macros/config.h"
 #include "src/__support/macros/properties/architectures.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 
 // Data structure to capture properties of the linux/ELF TLS image.
diff --git a/libc/config/uefi/app.h b/libc/config/uefi/app.h
index 0374a47ba3402..1f181ed5f9f1f 100644
--- a/libc/config/uefi/app.h
+++ b/libc/config/uefi/app.h
@@ -9,13 +9,12 @@
 #ifndef LLVM_LIBC_CONFIG_UEFI_APP_H
 #define LLVM_LIBC_CONFIG_UEFI_APP_H
 
+#include "hdr/stdint_proxy.h"
 #include "include/llvm-libc-types/EFI_HANDLE.h"
 #include "include/llvm-libc-types/EFI_SYSTEM_TABLE.h"
 #include "src/__support/macros/config.h"
 #include "src/__support/macros/properties/architectures.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 
 // Data structure which captures properties of a UEFI application.
diff --git a/libc/hdr/CMakeLists.txt b/libc/hdr/CMakeLists.txt
index 052a773a4fcec..5fc25d0ca5689 100644
--- a/libc/hdr/CMakeLists.txt
+++ b/libc/hdr/CMakeLists.txt
@@ -243,5 +243,14 @@ add_proxy_header_library(
     libc.include.llvm-libc-macros.offsetof_macro
 )
 
+# stdint.h header.
+add_proxy_header_library(
+  stdint_proxy
+  HDRS
+    stdint_proxy.h
+  FULL_BUILD_DEPENDS
+    libc.include.stdint
+)
+
 add_subdirectory(types)
 add_subdirectory(func)
diff --git a/libc/hdr/stdint_proxy.h b/libc/hdr/stdint_proxy.h
new file mode 100644
index 0000000000000..8e815679a4e24
--- /dev/null
+++ b/libc/hdr/stdint_proxy.h
@@ -0,0 +1,18 @@
+//===-- stdint.h ----------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_HDR_STDINT_PROXY_H
+#define LLVM_LIBC_HDR_STDINT_PROXY_H
+
+// This target is to make sure we have correct build order in full build mode,
+// that is `libc.include.stdint` is added to the dependency of all targets
+// that use <stdint.h> header.
+
+#include <stdint.h>
+
+#endif // LLVM_LIBC_HDR_STDINT_PROXY_H
diff --git a/libc/hdr/types/CMakeLists.txt b/libc/hdr/types/CMakeLists.txt
index f3bdc9f6aedd1..bf85bf69425e9 100644
--- a/libc/hdr/types/CMakeLists.txt
+++ b/libc/hdr/types/CMakeLists.txt
@@ -94,6 +94,7 @@ add_proxy_header_library(
   DEPENDS
     libc.hdr.fcntl_overlay
   FULL_BUILD_DEPENDS
+    libc.hdr.stdint_proxy
     libc.include.llvm-libc-types.struct_flock
 )
 
@@ -104,6 +105,7 @@ add_proxy_header_library(
   DEPENDS
     libc.hdr.fcntl_overlay
   FULL_BUILD_DEPENDS
+    libc.hdr.stdint_proxy
     libc.include.llvm-libc-types.struct_flock64
 )
 
diff --git a/libc/include/CMakeLists.txt b/libc/include/CMakeLists.txt
index 73213826ad607..18fd3f890a343 100644
--- a/libc/include/CMakeLists.txt
+++ b/libc/include/CMakeLists.txt
@@ -101,6 +101,14 @@ add_header_macro(
     .llvm-libc-types.fexcept_t
 )
 
+add_header_macro(
+  stdint
+  ../libc/include/stdint.yaml
+  stdint.h
+  DEPENDS
+    .llvm-libc-macros.stdint_macros
+)
+
 add_header_macro(
   inttypes
   ../libc/include/inttypes.yaml
@@ -109,6 +117,7 @@ add_header_macro(
     .llvm_libc_common_h
     .llvm-libc-types.imaxdiv_t
     .llvm-libc-macros.inttypes_macros
+    .stdint
 )
 
 add_header_macro(
@@ -119,14 +128,6 @@ add_header_macro(
     .llvm-libc-macros.float_macros
 )
 
-add_header_macro(
-  stdint
-  ../libc/include/stdint.yaml
-  stdint.h
-  DEPENDS
-    .llvm-libc-macros.stdint_macros
-)
-
 add_header_macro(
   limits
   ../libc/include/limits.yaml
diff --git a/libc/src/__support/CMakeLists.txt b/libc/src/__support/CMakeLists.txt
index 37a27cc9b7007..2196d9e23bba7 100644
--- a/libc/src/__support/CMakeLists.txt
+++ b/libc/src/__support/CMakeLists.txt
@@ -15,6 +15,7 @@ add_header_library(
   HDRS
     block.h
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.algorithm
     libc.src.__support.CPP.limits
     libc.src.__support.CPP.new
@@ -86,6 +87,7 @@ add_header_library(
     blockstore.h
   DEPENDS
     .libc_assert
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.new
 )
 
@@ -97,6 +99,8 @@ add_header_library(
     macros/properties/architectures.h
     macros/attributes.h
     macros/config.h
+  DEPENDS
+    libc.hdr.stdint_proxy
 )
 
 add_header_library(
@@ -199,6 +203,7 @@ add_header_library(
     integer_to_string.h
   DEPENDS
     .big_int
+    libc.hdr.stdint_proxy
     libc.src.__support.common
     libc.src.__support.CPP.algorithm
     libc.src.__support.CPP.limits
@@ -215,6 +220,7 @@ add_header_library(
     ryu_long_double_constants.h
   DEPENDS
     .libc_assert
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.type_traits
     libc.src.__support.FPUtil.fp_bits
     libc.src.__support.common
@@ -226,6 +232,7 @@ add_header_library(
     high_precision_decimal.h
   DEPENDS
     .str_to_integer
+    libc.hdr.stdint_proxy
 )
 
 add_header_library(
@@ -240,6 +247,7 @@ add_header_library(
     .str_to_num_result
     .uint128
     libc.hdr.errno_macros
+    libc.hdr.stdint_proxy
     libc.src.__support.common
     libc.src.__support.CPP.bit
     libc.src.__support.CPP.limits
@@ -257,6 +265,7 @@ add_header_library(
     integer_literals.h
   DEPENDS
     .uint128
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.limits
 )
 
@@ -290,6 +299,7 @@ add_header_library(
   HDRS
     arg_list.h
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.__support.common
 )
 
@@ -329,6 +339,7 @@ add_header_library(
   DEPENDS
     .math_extras
     .number_pair
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.array
     libc.src.__support.CPP.bit
     libc.src.__support.CPP.type_traits
@@ -361,6 +372,7 @@ add_header_library(
     hash.h
   DEPENDS
     .uint128
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.bit
     libc.src.__support.CPP.limits
     libc.src.__support.macros.attributes
diff --git a/libc/src/__support/CPP/CMakeLists.txt b/libc/src/__support/CPP/CMakeLists.txt
index d2ba00a5384da..8b65a8839ab21 100644
--- a/libc/src/__support/CPP/CMakeLists.txt
+++ b/libc/src/__support/CPP/CMakeLists.txt
@@ -17,6 +17,7 @@ add_header_library(
   DEPENDS
     .limits
     .type_traits
+    libc.hdr.stdint_proxy
     libc.src.__support.macros.attributes
     libc.src.__support.macros.sanitizer
 )
@@ -39,6 +40,8 @@ add_header_library(
   functional
   HDRS
     functional.h
+  DEPENDS
+    libc.hdr.stdint_proxy
 )
 
 add_header_library(
diff --git a/libc/src/__support/CPP/bit.h b/libc/src/__support/CPP/bit.h
index e491f3e032669..df1b177ecb10b 100644
--- a/libc/src/__support/CPP/bit.h
+++ b/libc/src/__support/CPP/bit.h
@@ -11,14 +11,13 @@
 #ifndef LLVM_LIBC_SRC___SUPPORT_CPP_BIT_H
 #define LLVM_LIBC_SRC___SUPPORT_CPP_BIT_H
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/limits.h" // numeric_limits
 #include "src/__support/CPP/type_traits.h"
 #include "src/__support/macros/attributes.h"
 #include "src/__support/macros/config.h"
 #include "src/__support/macros/sanitizer.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 namespace cpp {
 
diff --git a/libc/src/__support/CPP/functional.h b/libc/src/__support/CPP/functional.h
index 50cfa256b6682..5c43d22369717 100644
--- a/libc/src/__support/CPP/functional.h
+++ b/libc/src/__support/CPP/functional.h
@@ -9,6 +9,7 @@
 #ifndef LLVM_LIBC_SRC___SUPPORT_CPP_FUNCTIONAL_H
 #define LLVM_LIBC_SRC___SUPPORT_CPP_FUNCTIONAL_H
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/type_traits/enable_if.h"
 #include "src/__support/CPP/type_traits/is_convertible.h"
 #include "src/__support/CPP/type_traits/is_same.h"
@@ -19,8 +20,6 @@
 #include "src/__support/macros/attributes.h"
 #include "src/__support/macros/config.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 namespace cpp {
 
diff --git a/libc/src/__support/FPUtil/CMakeLists.txt b/libc/src/__support/FPUtil/CMakeLists.txt
index 3024ac62b2951..94f8b95542470 100644
--- a/libc/src/__support/FPUtil/CMakeLists.txt
+++ b/libc/src/__support/FPUtil/CMakeLists.txt
@@ -6,6 +6,7 @@ add_header_library(
     libc.hdr.types.fenv_t
     libc.hdr.fenv_macros
     libc.hdr.math_macros
+    libc.hdr.stdint_proxy
     libc.src.__support.macros.attributes
     libc.src.errno.errno
 )
@@ -28,6 +29,7 @@ add_header_library(
   HDRS
     FPBits.h
   DEPENDS
+    libc.hdr.stdint_proxy
     libc.src.__support.common
     libc.src.__support.CPP.bit
     libc.src.__support.CPP.type_traits
@@ -72,6 +74,7 @@ add_header_library(
     NormalFloat.h
   DEPENDS
     .fp_bits
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.type_traits
     libc.src.__support.common
 )
@@ -248,6 +251,7 @@ add_header_library(
     .nearest_integer_operations
     .normal_float
     libc.hdr.math_macros
+    libc.hdr.stdint_proxy
     libc.src.errno.errno
     libc.src.__support.common
     libc.src.__support.CPP.bit
@@ -277,6 +281,7 @@ add_header_library(
     .cast
     .comparison_operations
     .dyadic_float
+    libc.hdr.stdint_proxy
     libc.src.__support.CPP.bit
     libc.src.__support.CPP.type_traits
     libc.src.__support.macros.config
diff --git a/libc/src/__support/FPUtil/FPBits.h b/libc/src/__support/FPUtil/FPBits.h
index 9e21136558a03..2f695c1583755 100644
--- a/libc/src/__support/FPUtil/FPBits.h
+++ b/libc/src/__support/FPUtil/FPBits.h
@@ -15,6 +15,7 @@
 #ifndef LLVM_LIBC_SRC___SUPPORT_FPUTIL_FPBITS_H
 #define LLVM_LIBC_SRC___SUPPORT_FPUTIL_FPBITS_H
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/bit.h"
 #include "src/__support/CPP/type_traits.h"
 #include "src/__support/common.h"
@@ -26,8 +27,6 @@
 #include "src/__support/sign.h"                    // Sign
 #include "src/__support/uint128.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 namespace fputil {
 
diff --git a/libc/src/__support/FPUtil/NormalFloat.h b/libc/src/__support/FPUtil/NormalFloat.h
index a2f285fc6fb95..b30e36fd03e9f 100644
--- a/libc/src/__support/FPUtil/NormalFloat.h
+++ b/libc/src/__support/FPUtil/NormalFloat.h
@@ -11,12 +11,11 @@
 
 #include "FPBits.h"
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/type_traits.h"
 #include "src/__support/common.h"
 #include "src/__support/macros/config.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 namespace fputil {
 
diff --git a/libc/src/__support/FPUtil/aarch64/FEnvImpl.h b/libc/src/__support/FPUtil/aarch64/FEnvImpl.h
index 914155a01631d..18182ed977cce 100644
--- a/libc/src/__support/FPUtil/aarch64/FEnvImpl.h
+++ b/libc/src/__support/FPUtil/aarch64/FEnvImpl.h
@@ -18,9 +18,9 @@
 #endif
 
 #include <arm_acle.h>
-#include <stdint.h>
 
 #include "hdr/fenv_macros.h"
+#include "hdr/stdint_proxy.h"
 #include "hdr/types/fenv_t.h"
 #include "src/__support/FPUtil/FPBits.h"
 
diff --git a/libc/src/__support/FPUtil/aarch64/fenv_darwin_impl.h b/libc/src/__support/FPUtil/aarch64/fenv_darwin_impl.h
index dcce76b6116be..a2066d1025f63 100644
--- a/libc/src/__support/FPUtil/aarch64/fenv_darwin_impl.h
+++ b/libc/src/__support/FPUtil/aarch64/fenv_darwin_impl.h
@@ -18,9 +18,9 @@
 #endif
 
 #include <arm_acle.h>
-#include <stdint.h>
 
 #include "hdr/fenv_macros.h"
+#include "hdr/stdint_proxy.h"
 #include "hdr/types/fenv_t.h"
 #include "src/__support/FPUtil/FPBits.h"
 
diff --git a/libc/src/__support/FPUtil/arm/FEnvImpl.h b/libc/src/__support/FPUtil/arm/FEnvImpl.h
index aaf37c0a045af..64ab4a9189b77 100644
--- a/libc/src/__support/FPUtil/arm/FEnvImpl.h
+++ b/libc/src/__support/FPUtil/arm/FEnvImpl.h
@@ -10,11 +10,11 @@
 #define LLVM_LIBC_SRC___SUPPORT_FPUTIL_ARM_FENVIMPL_H
 
 #include "hdr/fenv_macros.h"
+#include "hdr/stdint_proxy.h"
 #include "hdr/types/fenv_t.h"
 #include "src/__support/FPUtil/FPBits.h"
 #include "src/__support/macros/attributes.h" // For LIBC_INLINE
 #include "src/__support/macros/config.h"
-#include <stdint.h>
 
 namespace LIBC_NAMESPACE_DECL {
 namespace fputil {
diff --git a/libc/src/__support/FPUtil/bfloat16.h b/libc/src/__support/FPUtil/bfloat16.h
index 84a0dca911691..fa45d73fba6c1 100644
--- a/libc/src/__support/FPUtil/bfloat16.h
+++ b/libc/src/__support/FPUtil/bfloat16.h
@@ -9,6 +9,7 @@
 #ifndef LLVM_LIBC_SRC___SUPPORT_FPUTIL_BFLOAT16_H
 #define LLVM_LIBC_SRC___SUPPORT_FPUTIL_BFLOAT16_H
 
+#include "hdr/stdint_proxy.h"
 #include "src/__support/CPP/bit.h"
 #include "src/__support/CPP/type_traits.h"
 #include "src/__support/FPUtil/cast.h"
@@ -17,8 +18,6 @@
 #include "src/__support/macros/config.h"
 #include "src/__support/macros/properties/types.h"
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 namespace fputil {
 
diff --git a/libc/src/__support/FPUtil/riscv/FEnvImpl.h b/libc/src/__support/FPUtil/riscv/FEnvImpl.h
index 2f525eb5dac5a..cb2d2d59fb86c 100644
--- a/libc/src/__support/FPUtil/riscv/FEnvImpl.h
+++ b/libc/src/__support/FPUtil/riscv/FEnvImpl.h
@@ -10,13 +10,12 @@
 #define LLVM_LIBC_SRC___SUPPORT_FPUTIL_RISCV_FENVIMPL_H
 
 #include "hdr/fenv_macros.h"
+#include "hdr/stdint_proxy.h"
 #include "hdr/types/fenv_t.h"
 #include "src/__support/FPUtil/FPBits.h"
 #include "src/__support/macros/attributes.h" // For LIBC_INLINE_ASM
 #include "src/__support/macros/config.h"     // For LIBC_INLINE
 
-#include <stdint.h>
-
 namespace LIBC_NAMESPACE_DECL {
 namespace fputil {
 
diff --git a/libc/src/__support/FPUtil/x86_64/FEnvImpl.h b/libc/src/__support/FPUtil/x86_64/FEnvImpl.h
index 560727c22978e..5da509796d849 100644
--- a/libc/src/__support/FPUtil/x86_64/FEnvImpl.h
+++ b/libc/src/__support/FPUtil/x86_64/FEnvImpl.h
@@ -17,8 +17,7 @@
 #error "Invalid include"
 #endif
 
-#include <stdint.h>
-
+#include "hdr/stdint_proxy.h"
 #include "hdr/types/fenv_t.h"
 #include "src/__support/macros/sanitizer.h"
 
diff --git a/libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h b/libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h
index 2e6b297ae9349..74a991d40115e 100644
--- a/libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h
+++ b/libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h
@@ -16,12...
[truncated]

@llvmbot llvmbot added the bazel "Peripheral" support tier build system: utils/bazel label Jul 23, 2025
@lntue lntue merged commit 66603dd into llvm:main Jul 24, 2025
15 of 20 checks passed
@lntue lntue deleted the stdint branch July 24, 2025 00:19
@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 24, 2025

LLVM Buildbot has detected a new failure on builder fuchsia-x86_64-linux running on fuchsia-debian-64-us-central1-a-1 while building libc,utils at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/20218

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (failure)
...
[481/2518] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_bit_width_uc.dir/stdc_bit_width_uc.cpp.obj
[482/2518] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_has_single_bit_ull.dir/stdc_has_single_bit_ull.cpp.obj
[483/2518] Building CXX object libc/src/complex/generic/CMakeFiles/libc.src.complex.generic.cproj.dir/cproj.cpp.obj
[484/2518] Building CXX object libc/src/complex/generic/CMakeFiles/libc.src.complex.generic.cprojf.dir/cprojf.cpp.obj
[485/2518] Building CXX object libc/src/complex/generic/CMakeFiles/libc.src.complex.generic.conjl.dir/conjl.cpp.obj
[486/2518] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_has_single_bit_ul.dir/stdc_has_single_bit_ul.cpp.obj
[487/2518] Building CXX object libc/src/__support/CMakeFiles/libc.src.__support.freelist.dir/freelist.cpp.obj
[488/2518] Building CXX object libc/src/complex/generic/CMakeFiles/libc.src.complex.generic.cprojl.dir/cprojl.cpp.obj
[489/2518] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_bit_width_us.dir/stdc_bit_width_us.cpp.obj
[490/2518] Building CXX object libc/src/stdio/baremetal/CMakeFiles/libc.src.stdio.baremetal.scanf.dir/scanf.cpp.obj
FAILED: libc/src/stdio/baremetal/CMakeFiles/libc.src.stdio.baremetal.scanf.dir/scanf.cpp.obj 
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/./bin/clang++ --target=armv7em-none-eabi -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc -isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/include/armv7em-unknown-none-eabi --target=armv7em-none-eabi -Wno-atomic-alignment "-Dvfprintf(stream, format, vlist)=vprintf(format, vlist)" "-Dfprintf(stream, format, ...)=printf(format)" -D_LIBCPP_PRINT=1 -mthumb -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 -Wmisleading-indentation -Wctad-maybe-unsupported -ffunction-sections -fdata-sections -ffile-prefix-map=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/runtimes/runtimes-armv7em-none-eabi-bins=../../../../llvm-project -ffile-prefix-map=/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/= -no-canonical-prefixes -Os -DNDEBUG --target=armv7em-none-eabi -DLIBC_QSORT_IMPL=LIBC_QSORT_HEAP_SORT -DLIBC_TYPES_TIME_T_IS_32_BIT -DLIBC_ADD_NULL_CHECKS "-DLIBC_MATH=(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES)" -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_EXTERNAL -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -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 -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 -MD -MT libc/src/stdio/baremetal/CMakeFiles/libc.src.stdio.baremetal.scanf.dir/scanf.cpp.obj -MF libc/src/stdio/baremetal/CMakeFiles/libc.src.stdio.baremetal.scanf.dir/scanf.cpp.obj.d -o libc/src/stdio/baremetal/CMakeFiles/libc.src.stdio.baremetal.scanf.dir/scanf.cpp.obj -c /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/baremetal/scanf.cpp
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/baremetal/scanf.cpp:16:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/scanf_core/scanf_main.h:14:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/scanf_core/converter.h:15:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/scanf_core/core_structs.h:16:
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/./lib/clang/22/include/inttypes.h:24:15: fatal error: 'inttypes.h' file not found
   24 | #include_next <inttypes.h>
      |               ^~~~~~~~~~~~
1 error generated.
[491/2518] Building CXX object libc/src/stdio/CMakeFiles/libc.src.stdio.sscanf.dir/sscanf.cpp.obj
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.sscanf.dir/sscanf.cpp.obj 
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/./bin/clang++ --target=armv7em-none-eabi -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc -isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/include/armv7em-unknown-none-eabi --target=armv7em-none-eabi -Wno-atomic-alignment "-Dvfprintf(stream, format, vlist)=vprintf(format, vlist)" "-Dfprintf(stream, format, ...)=printf(format)" -D_LIBCPP_PRINT=1 -mthumb -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 -Wmisleading-indentation -Wctad-maybe-unsupported -ffunction-sections -fdata-sections -ffile-prefix-map=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/runtimes/runtimes-armv7em-none-eabi-bins=../../../../llvm-project -ffile-prefix-map=/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/= -no-canonical-prefixes -Os -DNDEBUG --target=armv7em-none-eabi -DLIBC_QSORT_IMPL=LIBC_QSORT_HEAP_SORT -DLIBC_TYPES_TIME_T_IS_32_BIT -DLIBC_ADD_NULL_CHECKS "-DLIBC_MATH=(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES)" -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_EXTERNAL -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -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 -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 -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.sscanf.dir/sscanf.cpp.obj -MF libc/src/stdio/CMakeFiles/libc.src.stdio.sscanf.dir/sscanf.cpp.obj.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.sscanf.dir/sscanf.cpp.obj -c /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/sscanf.cpp
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/sscanf.cpp:14:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/scanf_core/scanf_main.h:14:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/scanf_core/converter.h:15:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/scanf_core/core_structs.h:16:
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/./lib/clang/22/include/inttypes.h:24:15: fatal error: 'inttypes.h' file not found
   24 | #include_next <inttypes.h>
      |               ^~~~~~~~~~~~
1 error generated.
[492/2518] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_bit_width_ul.dir/stdc_bit_width_ul.cpp.obj
[493/2518] Building CXX object libc/src/stdio/CMakeFiles/libc.src.stdio.vsscanf.dir/vsscanf.cpp.obj
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.vsscanf.dir/vsscanf.cpp.obj 
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/./bin/clang++ --target=armv7em-none-eabi -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc -isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/include/armv7em-unknown-none-eabi --target=armv7em-none-eabi -Wno-atomic-alignment "-Dvfprintf(stream, format, vlist)=vprintf(format, vlist)" "-Dfprintf(stream, format, ...)=printf(format)" -D_LIBCPP_PRINT=1 -mthumb -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 -Wmisleading-indentation -Wctad-maybe-unsupported -ffunction-sections -fdata-sections -ffile-prefix-map=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/runtimes/runtimes-armv7em-none-eabi-bins=../../../../llvm-project -ffile-prefix-map=/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/= -no-canonical-prefixes -Os -DNDEBUG --target=armv7em-none-eabi -DLIBC_QSORT_IMPL=LIBC_QSORT_HEAP_SORT -DLIBC_TYPES_TIME_T_IS_32_BIT -DLIBC_ADD_NULL_CHECKS "-DLIBC_MATH=(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES)" -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_EXTERNAL -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -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 -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 -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.vsscanf.dir/vsscanf.cpp.obj -MF libc/src/stdio/CMakeFiles/libc.src.stdio.vsscanf.dir/vsscanf.cpp.obj.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.vsscanf.dir/vsscanf.cpp.obj -c /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/vsscanf.cpp
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/vsscanf.cpp:14:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/scanf_core/scanf_main.h:14:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/scanf_core/converter.h:15:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/scanf_core/core_structs.h:16:
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/./lib/clang/22/include/inttypes.h:24:15: fatal error: 'inttypes.h' file not found
   24 | #include_next <inttypes.h>
      |               ^~~~~~~~~~~~
1 error generated.
[494/2518] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_bit_width_ui.dir/stdc_bit_width_ui.cpp.obj
[495/2518] Building CXX object libc/src/__support/CMakeFiles/libc.src.__support.freetrie.dir/freetrie.cpp.obj
[496/2518] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.issignalingf.dir/issignalingf.cpp.obj
[497/2518] Building CXX object libc/src/__support/StringUtil/CMakeFiles/libc.src.__support.StringUtil.error_to_string.dir/error_to_string.cpp.obj
[498/2518] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_bit_floor_uc.dir/stdc_bit_floor_uc.cpp.obj
[499/2518] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.issignalingl.dir/issignalingl.cpp.obj
Step 6 (build) failure: build (failure)
...
[481/2518] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_bit_width_uc.dir/stdc_bit_width_uc.cpp.obj
[482/2518] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_has_single_bit_ull.dir/stdc_has_single_bit_ull.cpp.obj
[483/2518] Building CXX object libc/src/complex/generic/CMakeFiles/libc.src.complex.generic.cproj.dir/cproj.cpp.obj
[484/2518] Building CXX object libc/src/complex/generic/CMakeFiles/libc.src.complex.generic.cprojf.dir/cprojf.cpp.obj
[485/2518] Building CXX object libc/src/complex/generic/CMakeFiles/libc.src.complex.generic.conjl.dir/conjl.cpp.obj
[486/2518] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_has_single_bit_ul.dir/stdc_has_single_bit_ul.cpp.obj
[487/2518] Building CXX object libc/src/__support/CMakeFiles/libc.src.__support.freelist.dir/freelist.cpp.obj
[488/2518] Building CXX object libc/src/complex/generic/CMakeFiles/libc.src.complex.generic.cprojl.dir/cprojl.cpp.obj
[489/2518] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_bit_width_us.dir/stdc_bit_width_us.cpp.obj
[490/2518] Building CXX object libc/src/stdio/baremetal/CMakeFiles/libc.src.stdio.baremetal.scanf.dir/scanf.cpp.obj
FAILED: libc/src/stdio/baremetal/CMakeFiles/libc.src.stdio.baremetal.scanf.dir/scanf.cpp.obj 
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/./bin/clang++ --target=armv7em-none-eabi -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc -isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/include/armv7em-unknown-none-eabi --target=armv7em-none-eabi -Wno-atomic-alignment "-Dvfprintf(stream, format, vlist)=vprintf(format, vlist)" "-Dfprintf(stream, format, ...)=printf(format)" -D_LIBCPP_PRINT=1 -mthumb -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 -Wmisleading-indentation -Wctad-maybe-unsupported -ffunction-sections -fdata-sections -ffile-prefix-map=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/runtimes/runtimes-armv7em-none-eabi-bins=../../../../llvm-project -ffile-prefix-map=/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/= -no-canonical-prefixes -Os -DNDEBUG --target=armv7em-none-eabi -DLIBC_QSORT_IMPL=LIBC_QSORT_HEAP_SORT -DLIBC_TYPES_TIME_T_IS_32_BIT -DLIBC_ADD_NULL_CHECKS "-DLIBC_MATH=(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES)" -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_EXTERNAL -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -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 -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 -MD -MT libc/src/stdio/baremetal/CMakeFiles/libc.src.stdio.baremetal.scanf.dir/scanf.cpp.obj -MF libc/src/stdio/baremetal/CMakeFiles/libc.src.stdio.baremetal.scanf.dir/scanf.cpp.obj.d -o libc/src/stdio/baremetal/CMakeFiles/libc.src.stdio.baremetal.scanf.dir/scanf.cpp.obj -c /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/baremetal/scanf.cpp
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/baremetal/scanf.cpp:16:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/scanf_core/scanf_main.h:14:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/scanf_core/converter.h:15:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/scanf_core/core_structs.h:16:
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/./lib/clang/22/include/inttypes.h:24:15: fatal error: 'inttypes.h' file not found
   24 | #include_next <inttypes.h>
      |               ^~~~~~~~~~~~
1 error generated.
[491/2518] Building CXX object libc/src/stdio/CMakeFiles/libc.src.stdio.sscanf.dir/sscanf.cpp.obj
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.sscanf.dir/sscanf.cpp.obj 
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/./bin/clang++ --target=armv7em-none-eabi -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc -isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/include/armv7em-unknown-none-eabi --target=armv7em-none-eabi -Wno-atomic-alignment "-Dvfprintf(stream, format, vlist)=vprintf(format, vlist)" "-Dfprintf(stream, format, ...)=printf(format)" -D_LIBCPP_PRINT=1 -mthumb -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 -Wmisleading-indentation -Wctad-maybe-unsupported -ffunction-sections -fdata-sections -ffile-prefix-map=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/runtimes/runtimes-armv7em-none-eabi-bins=../../../../llvm-project -ffile-prefix-map=/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/= -no-canonical-prefixes -Os -DNDEBUG --target=armv7em-none-eabi -DLIBC_QSORT_IMPL=LIBC_QSORT_HEAP_SORT -DLIBC_TYPES_TIME_T_IS_32_BIT -DLIBC_ADD_NULL_CHECKS "-DLIBC_MATH=(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES)" -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_EXTERNAL -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -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 -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 -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.sscanf.dir/sscanf.cpp.obj -MF libc/src/stdio/CMakeFiles/libc.src.stdio.sscanf.dir/sscanf.cpp.obj.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.sscanf.dir/sscanf.cpp.obj -c /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/sscanf.cpp
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/sscanf.cpp:14:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/scanf_core/scanf_main.h:14:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/scanf_core/converter.h:15:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/scanf_core/core_structs.h:16:
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/./lib/clang/22/include/inttypes.h:24:15: fatal error: 'inttypes.h' file not found
   24 | #include_next <inttypes.h>
      |               ^~~~~~~~~~~~
1 error generated.
[492/2518] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_bit_width_ul.dir/stdc_bit_width_ul.cpp.obj
[493/2518] Building CXX object libc/src/stdio/CMakeFiles/libc.src.stdio.vsscanf.dir/vsscanf.cpp.obj
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.vsscanf.dir/vsscanf.cpp.obj 
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/./bin/clang++ --target=armv7em-none-eabi -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc -isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/include/armv7em-unknown-none-eabi --target=armv7em-none-eabi -Wno-atomic-alignment "-Dvfprintf(stream, format, vlist)=vprintf(format, vlist)" "-Dfprintf(stream, format, ...)=printf(format)" -D_LIBCPP_PRINT=1 -mthumb -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 -Wmisleading-indentation -Wctad-maybe-unsupported -ffunction-sections -fdata-sections -ffile-prefix-map=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/runtimes/runtimes-armv7em-none-eabi-bins=../../../../llvm-project -ffile-prefix-map=/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/= -no-canonical-prefixes -Os -DNDEBUG --target=armv7em-none-eabi -DLIBC_QSORT_IMPL=LIBC_QSORT_HEAP_SORT -DLIBC_TYPES_TIME_T_IS_32_BIT -DLIBC_ADD_NULL_CHECKS "-DLIBC_MATH=(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES)" -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_EXTERNAL -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -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 -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 -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.vsscanf.dir/vsscanf.cpp.obj -MF libc/src/stdio/CMakeFiles/libc.src.stdio.vsscanf.dir/vsscanf.cpp.obj.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.vsscanf.dir/vsscanf.cpp.obj -c /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/vsscanf.cpp
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/vsscanf.cpp:14:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/scanf_core/scanf_main.h:14:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/scanf_core/converter.h:15:
In file included from /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/libc/src/stdio/scanf_core/core_structs.h:16:
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-gla0lam_/./lib/clang/22/include/inttypes.h:24:15: fatal error: 'inttypes.h' file not found
   24 | #include_next <inttypes.h>
      |               ^~~~~~~~~~~~
1 error generated.
[494/2518] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_bit_width_ui.dir/stdc_bit_width_ui.cpp.obj
[495/2518] Building CXX object libc/src/__support/CMakeFiles/libc.src.__support.freetrie.dir/freetrie.cpp.obj
[496/2518] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.issignalingf.dir/issignalingf.cpp.obj
[497/2518] Building CXX object libc/src/__support/StringUtil/CMakeFiles/libc.src.__support.StringUtil.error_to_string.dir/error_to_string.cpp.obj
[498/2518] Building CXX object libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_bit_floor_uc.dir/stdc_bit_floor_uc.cpp.obj
[499/2518] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.issignalingl.dir/issignalingl.cpp.obj

rupprecht added a commit to rupprecht/llvm-project that referenced this pull request Jul 24, 2025
rupprecht added a commit that referenced this pull request Jul 24, 2025
rupprecht added a commit to rupprecht/llvm-project that referenced this pull request Jul 24, 2025
rupprecht added a commit that referenced this pull request Jul 24, 2025
@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 24, 2025

LLVM Buildbot has detected a new failure on builder premerge-monolithic-linux running on premerge-linux-1 while building libc,utils at step 7 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/39167

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
...
PASS: lld :: COFF/entry-inference32.test (98863 of 101854)
PASS: lld :: COFF/entry-inference2.test (98864 of 101854)
PASS: lld :: COFF/delayimporttables.yaml (98865 of 101854)
PASS: lld :: COFF/driver-opt.s (98866 of 101854)
PASS: lit :: shtest-external-shell-kill.py (98867 of 101854)
PASS: lld :: COFF/entry-drectve.test (98868 of 101854)
PASS: lld :: COFF/eh_frame_suffix_sorting.s (98869 of 101854)
PASS: lld :: COFF/empty-subsection.s (98870 of 101854)
PASS: lit :: discovery.py (98871 of 101854)
TIMEOUT: MLIR :: Examples/standalone/test.toy (98872 of 101854)
******************** TEST 'MLIR :: Examples/standalone/test.toy' FAILED ********************
Exit Code: 1
Timeout: Reached timeout of 60 seconds

Command Output (stdout):
--
# RUN: at line 1
"/etc/cmake/bin/cmake" "/build/buildbot/premerge-monolithic-linux/llvm-project/mlir/examples/standalone" -G "Ninja"  -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang  -DLLVM_ENABLE_LIBCXX=OFF -DMLIR_DIR=/build/buildbot/premerge-monolithic-linux/build/lib/cmake/mlir  -DLLVM_USE_LINKER=lld  -DPython3_EXECUTABLE="/usr/bin/python3.10"
# executed command: /etc/cmake/bin/cmake /build/buildbot/premerge-monolithic-linux/llvm-project/mlir/examples/standalone -G Ninja -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang -DLLVM_ENABLE_LIBCXX=OFF -DMLIR_DIR=/build/buildbot/premerge-monolithic-linux/build/lib/cmake/mlir -DLLVM_USE_LINKER=lld -DPython3_EXECUTABLE=/usr/bin/python3.10
# .---command stdout------------
# | -- The CXX compiler identification is Clang 16.0.6
# | -- The C compiler identification is Clang 16.0.6
# | -- Detecting CXX compiler ABI info
# | -- Detecting CXX compiler ABI info - done
# | -- Check for working CXX compiler: /usr/bin/clang++ - skipped
# | -- Detecting CXX compile features
# | -- Detecting CXX compile features - done
# | -- Detecting C compiler ABI info
# | -- Detecting C compiler ABI info - done
# | -- Check for working C compiler: /usr/bin/clang - skipped
# | -- Detecting C compile features
# | -- Detecting C compile features - done
# | -- Looking for histedit.h
# | -- Looking for histedit.h - found
# | -- Found LibEdit: /usr/include (found version "2.11") 
# | -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
# | -- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.13") 
# | -- Using MLIRConfig.cmake in: /build/buildbot/premerge-monolithic-linux/build/lib/cmake/mlir
# | -- Using LLVMConfig.cmake in: /build/buildbot/premerge-monolithic-linux/build/lib/cmake/llvm
# | -- Linker detection: unknown
# | -- Performing Test LLVM_LIBSTDCXX_MIN
# | -- Performing Test LLVM_LIBSTDCXX_MIN - Success
# | -- Performing Test LLVM_LIBSTDCXX_SOFT_ERROR
# | -- Performing Test LLVM_LIBSTDCXX_SOFT_ERROR - Success
# | -- Performing Test CXX_SUPPORTS_CUSTOM_LINKER
# | -- Performing Test CXX_SUPPORTS_CUSTOM_LINKER - Success
# | -- Performing Test C_SUPPORTS_FPIC
# | -- Performing Test C_SUPPORTS_FPIC - Success
# | -- Performing Test CXX_SUPPORTS_FPIC

mahesh-attarde pushed a commit to mahesh-attarde/llvm-project that referenced this pull request Jul 28, 2025
mahesh-attarde pushed a commit to mahesh-attarde/llvm-project that referenced this pull request Jul 28, 2025
mahesh-attarde pushed a commit to mahesh-attarde/llvm-project that referenced this pull request Jul 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:AMDGPU backend:RISC-V bazel "Peripheral" support tier build system: utils/bazel libc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants