[libc-commits] [libc] [bazel] add missing header to alloc-checker for bazel clib build (PR #173400)

via libc-commits libc-commits at lists.llvm.org
Tue Dec 23 10:14:10 PST 2025


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

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

<details>
<summary>libc/src/__support/File/linux/CMakeFiles/libc.src.__support.File.linux.file.dir/file.cpp.o</summary>

```
FAILED: libc/src/__support/File/linux/CMakeFiles/libc.src.__support.File.linux.file.dir/file.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_LENGTH_IMPL=clang_vector -DLIBC_COPT_FIND_FIRST_CHARACTER_IMPL=word -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -MD -MT libc/src/__support/File/linux/CMakeFiles/libc.src.__support.File.linux.file.dir/file.cpp.o -MF libc/src/__support/File/linux/CMakeFiles/libc.src.__support.File.linux.file.dir/file.cpp.o.d -o libc/src/__support/File/linux/CMakeFiles/libc.src.__support.File.linux.file.dir/file.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/File/linux/file.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/File/linux/file.cpp:18:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/alloc-checker.h:18:
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:89:14: error: redefinition of 'align_val_t'
89 |   enum class align_val_t: size_t {};
|              ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/CPP/new.h:24:12: note: previous definition is here
24 | enum class align_val_t : size_t {};
|            ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/File/linux/file.cpp:18:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/alloc-checker.h:18:
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:174:33: error: exception specification in declaration does not match previous declaration
174 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
|                                 ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/CPP/new.h:40:19: note: previous declaration is here
40 | LIBC_INLINE void *operator new(size_t, void *p) { return p; }
|                   ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/File/linux/file.cpp:18:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/alloc-checker.h:18:
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:176:33: error: exception specification in declaration does not match previous declaration
176 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
|                                 ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/CPP/new.h:42:19: note: previous declaration is here
42 | LIBC_INLINE void *operator new[](size_t, void *p) { return p; }
|                   ^
3 errors generated.
```
</details>
<details>
<summary>libc/src/__support/File/CMakeFiles/libc.src.__support.File.file.dir/file.cpp.o</summary>

```
FAILED: libc/src/__support/File/CMakeFiles/libc.src.__support.File.file.dir/file.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DLIBC_NAMESPACE=__llvm_libc_22_0_0_git -I/home/gha/actions-runner/_work/llvm-project/llvm-project/libc -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_LENGTH_IMPL=clang_vector -DLIBC_COPT_FIND_FIRST_CHARACTER_IMPL=word -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -fpie -ffixed-point -fno-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -MD -MT libc/src/__support/File/CMakeFiles/libc.src.__support.File.file.dir/file.cpp.o -MF libc/src/__support/File/CMakeFiles/libc.src.__support.File.file.dir/file.cpp.o.d -o libc/src/__support/File/CMakeFiles/libc.src.__support.File.file.dir/file.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/File/file.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/File/file.cpp:16:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/alloc-checker.h:18:
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:89:14: error: redefinition of 'align_val_t'
89 |   enum class align_val_t: size_t {};
|              ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/CPP/new.h:24:12: note: previous definition is here
24 | enum class align_val_t : size_t {};
|            ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/File/file.cpp:16:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/alloc-checker.h:18:
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:174:33: error: exception specification in declaration does not match previous declaration
174 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
|                                 ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/CPP/new.h:40:19: note: previous declaration is here
40 | LIBC_INLINE void *operator new(size_t, void *p) { return p; }
|                   ^
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/File/file.cpp:16:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/alloc-checker.h:18:
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/new:176:33: error: exception specification in declaration does not match previous declaration
176 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
|                                 ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/CPP/new.h:42:19: note: previous declaration is here
42 | LIBC_INLINE void *operator new[](size_t, void *p) { return p; }
|                   ^
3 errors generated.
```
</details>

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

https://github.com/llvm/llvm-project/pull/173400


More information about the libc-commits mailing list