[libc-commits] [libc] [libc] Finetune libc.src.__support.OSUtil.osutil dependency. (PR #189501)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Wed Apr 1 12:04:32 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `libc` at step 4 "annotate".

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

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --cmake-file=AMDGPULibcBot.cmake' (failure)
...
[860/2693] Copying CXX header __algorithm/in_fun_result.h
[861/2693] Copying CXX header __atomic/atomic_sync.h
[862/2693] Copying CXX header __atomic/atomic_sync_timed.h
[863/2693] Copying CXX header __algorithm/remove_copy_if.h
[864/2693] Copying CXX header __algorithm/set_symmetric_difference.h
[865/2693] Building CXX object libc/src/locale/CMakeFiles/libc.src.locale.setlocale.dir/setlocale.cpp.o
[866/2693] Copying CXX header __algorithm/ranges_binary_search.h
[867/2693] Copying CXX header __algorithm/stable_partition.h
[868/2693] Copying CXX header __algorithm/ranges_contains.h
[869/2693] Building CXX object libc/src/assert/gpu/CMakeFiles/libc.src.assert.gpu.__assert_fail.dir/__assert_fail.cpp.o
FAILED: libc/src/assert/gpu/CMakeFiles/libc.src.assert.gpu.__assert_fail.dir/__assert_fail.cpp.o 
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/./bin/clang++ --target=amdgcn-amd-amdhsa -DLIBC_NAMESPACE=__llvm_libc_23_0_0_git -D__LIBC_USE_FLOAT16_CONVERSION -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc -isystem /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/include/amdgcn-amd-amdhsa -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 -Wno-comment -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -O3 -DNDEBUG --target=amdgcn-amd-amdhsa -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_LENGTH_IMPL=element -DLIBC_COPT_FIND_FIRST_CHARACTER_IMPL=element -DLIBC_ADD_NULL_CHECKS "-DLIBC_MATH=(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_INTERMEDIATE_COMP_IN_FLOAT | LIBC_MATH_SMALL_TABLES | LIBC_MATH_NO_ERRNO | LIBC_MATH_NO_EXCEPT)" -fno-math-errno -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_SHARED -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_SINGLE -DLIBC_CONF_WCTYPE_MODE=LIBC_WCTYPE_MODE_ASCII -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -DLIBC_COPT_USE_C_ASSERT -DLIBC_TARGET_OS_IS_GPU -fpie -DLIBC_FULL_BUILD -nostdlibinc -ffixed-point -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -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 -nogpulib -fvisibility=hidden -fconvergent-functions -flto -Wno-multi-gpu -Xclang -mcode-object-version=none -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -MD -MT libc/src/assert/gpu/CMakeFiles/libc.src.assert.gpu.__assert_fail.dir/__assert_fail.cpp.o -MF libc/src/assert/gpu/CMakeFiles/libc.src.assert.gpu.__assert_fail.dir/__assert_fail.cpp.o.d -o libc/src/assert/gpu/CMakeFiles/libc.src.assert.gpu.__assert_fail.dir/__assert_fail.cpp.o -c /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/assert/gpu/__assert_fail.cpp
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/assert/gpu/__assert_fail.cpp:22:26: error: unknown type name '__assert_fail'
   22 | LLVM_LIBC_FUNCTION(void, __assert_fail,
      |                          ^
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/assert/gpu/__assert_fail.cpp:23:21: error: a type specifier is required for all declarations
   23 |                    (const char *assertion, const char *file, unsigned line,
      |                     ^
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/assert/gpu/__assert_fail.cpp:22:1: error: a type specifier is required for all declarations
   22 | LLVM_LIBC_FUNCTION(void, __assert_fail,
      | ^
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/assert/gpu/__assert_fail.cpp:22:24: error: 'void' must be the first and only parameter if specified
   22 | LLVM_LIBC_FUNCTION(void, __assert_fail,
      |                        ^
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/assert/gpu/__assert_fail.cpp:36:21: error: no member named 'report_assertion_failure' in namespace '__llvm_libc_23_0_0_git'
   36 |     LIBC_NAMESPACE::report_assertion_failure(assertion, file, line, function);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/assert/gpu/__assert_fail.cpp:36:46: error: use of undeclared identifier 'assertion'
   36 |     LIBC_NAMESPACE::report_assertion_failure(assertion, file, line, function);
      |                                              ^~~~~~~~~
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/assert/gpu/__assert_fail.cpp:36:57: error: use of undeclared identifier 'file'
   36 |     LIBC_NAMESPACE::report_assertion_failure(assertion, file, line, function);
      |                                                         ^~~~
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/assert/gpu/__assert_fail.cpp:36:63: error: use of undeclared identifier 'line'
   36 |     LIBC_NAMESPACE::report_assertion_failure(assertion, file, line, function);
      |                                                               ^~~~
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/assert/gpu/__assert_fail.cpp:36:69: error: use of undeclared identifier 'function'
   36 |     LIBC_NAMESPACE::report_assertion_failure(assertion, file, line, function);
      |                                                                     ^~~~~~~~
9 errors generated.
[870/2693] Copying CXX header __algorithm/ranges_any_of.h
[871/2693] Copying CXX header __algorithm/ranges_all_of.h
[872/2693] Copying CXX header __algorithm/ranges_reverse_copy.h
[873/2693] Copying CXX header __algorithm/radix_sort.h
[874/2693] Copying CXX header __algorithm/push_heap.h
[875/2693] Copying CXX header __algorithm/ranges_shuffle.h
[876/2693] Copying CXX header __algorithm/ranges_find_last.h
[877/2693] Copying CXX header __algorithm/ranges_find_if.h
[878/2693] Copying CXX header __algorithm/ranges_rotate_copy.h
Step 7 (build cmake config) failure: build cmake config (failure)
...
[860/2693] Copying CXX header __algorithm/in_fun_result.h
[861/2693] Copying CXX header __atomic/atomic_sync.h
[862/2693] Copying CXX header __atomic/atomic_sync_timed.h
[863/2693] Copying CXX header __algorithm/remove_copy_if.h
[864/2693] Copying CXX header __algorithm/set_symmetric_difference.h
[865/2693] Building CXX object libc/src/locale/CMakeFiles/libc.src.locale.setlocale.dir/setlocale.cpp.o
[866/2693] Copying CXX header __algorithm/ranges_binary_search.h
[867/2693] Copying CXX header __algorithm/stable_partition.h
[868/2693] Copying CXX header __algorithm/ranges_contains.h
[869/2693] Building CXX object libc/src/assert/gpu/CMakeFiles/libc.src.assert.gpu.__assert_fail.dir/__assert_fail.cpp.o
FAILED: libc/src/assert/gpu/CMakeFiles/libc.src.assert.gpu.__assert_fail.dir/__assert_fail.cpp.o 
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/./bin/clang++ --target=amdgcn-amd-amdhsa -DLIBC_NAMESPACE=__llvm_libc_23_0_0_git -D__LIBC_USE_FLOAT16_CONVERSION -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc -isystem /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/include/amdgcn-amd-amdhsa -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 -Wno-comment -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -O3 -DNDEBUG --target=amdgcn-amd-amdhsa -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_LENGTH_IMPL=element -DLIBC_COPT_FIND_FIRST_CHARACTER_IMPL=element -DLIBC_ADD_NULL_CHECKS "-DLIBC_MATH=(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_INTERMEDIATE_COMP_IN_FLOAT | LIBC_MATH_SMALL_TABLES | LIBC_MATH_NO_ERRNO | LIBC_MATH_NO_EXCEPT)" -fno-math-errno -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_SHARED -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_SINGLE -DLIBC_CONF_WCTYPE_MODE=LIBC_WCTYPE_MODE_ASCII -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -DLIBC_COPT_USE_C_ASSERT -DLIBC_TARGET_OS_IS_GPU -fpie -DLIBC_FULL_BUILD -nostdlibinc -ffixed-point -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -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 -nogpulib -fvisibility=hidden -fconvergent-functions -flto -Wno-multi-gpu -Xclang -mcode-object-version=none -DLIBC_COPT_PUBLIC_PACKAGING -UNDEBUG -MD -MT libc/src/assert/gpu/CMakeFiles/libc.src.assert.gpu.__assert_fail.dir/__assert_fail.cpp.o -MF libc/src/assert/gpu/CMakeFiles/libc.src.assert.gpu.__assert_fail.dir/__assert_fail.cpp.o.d -o libc/src/assert/gpu/CMakeFiles/libc.src.assert.gpu.__assert_fail.dir/__assert_fail.cpp.o -c /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/assert/gpu/__assert_fail.cpp
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/assert/gpu/__assert_fail.cpp:22:26: error: unknown type name '__assert_fail'
   22 | LLVM_LIBC_FUNCTION(void, __assert_fail,
      |                          ^
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/assert/gpu/__assert_fail.cpp:23:21: error: a type specifier is required for all declarations
   23 |                    (const char *assertion, const char *file, unsigned line,
      |                     ^
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/assert/gpu/__assert_fail.cpp:22:1: error: a type specifier is required for all declarations
   22 | LLVM_LIBC_FUNCTION(void, __assert_fail,
      | ^
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/assert/gpu/__assert_fail.cpp:22:24: error: 'void' must be the first and only parameter if specified
   22 | LLVM_LIBC_FUNCTION(void, __assert_fail,
      |                        ^
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/assert/gpu/__assert_fail.cpp:36:21: error: no member named 'report_assertion_failure' in namespace '__llvm_libc_23_0_0_git'
   36 |     LIBC_NAMESPACE::report_assertion_failure(assertion, file, line, function);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/assert/gpu/__assert_fail.cpp:36:46: error: use of undeclared identifier 'assertion'
   36 |     LIBC_NAMESPACE::report_assertion_failure(assertion, file, line, function);
      |                                              ^~~~~~~~~
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/assert/gpu/__assert_fail.cpp:36:57: error: use of undeclared identifier 'file'
   36 |     LIBC_NAMESPACE::report_assertion_failure(assertion, file, line, function);
      |                                                         ^~~~
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/assert/gpu/__assert_fail.cpp:36:63: error: use of undeclared identifier 'line'
   36 |     LIBC_NAMESPACE::report_assertion_failure(assertion, file, line, function);
      |                                                               ^~~~
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/assert/gpu/__assert_fail.cpp:36:69: error: use of undeclared identifier 'function'
   36 |     LIBC_NAMESPACE::report_assertion_failure(assertion, file, line, function);
      |                                                                     ^~~~~~~~
9 errors generated.
[870/2693] Copying CXX header __algorithm/ranges_any_of.h
[871/2693] Copying CXX header __algorithm/ranges_all_of.h
[872/2693] Copying CXX header __algorithm/ranges_reverse_copy.h
[873/2693] Copying CXX header __algorithm/radix_sort.h
[874/2693] Copying CXX header __algorithm/push_heap.h
[875/2693] Copying CXX header __algorithm/ranges_shuffle.h
[876/2693] Copying CXX header __algorithm/ranges_find_last.h
[877/2693] Copying CXX header __algorithm/ranges_find_if.h
[878/2693] Copying CXX header __algorithm/ranges_rotate_copy.h

```

</details>

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


More information about the libc-commits mailing list