[libc-commits] [libc] [libc] Enable most tests in hermetic mode (PR #213852)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Sat Aug 8 16:18:21 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime-2` running on `rocm-worker-hw-02` while building `libc` at step 3 "annotate".

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

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

```
Step 3 (annotate) failure: 'python ../llvm.src/offload/ci/openmp-offload-amdgpu-libc-runtime.py ...' (failure)
...
[ 99%/61.699s :: 1->10->3036 (of 3046)] Linking CXX executable libc/test/src/stdio/libc.test.src.stdio.vsprintf_test.__hermetic__.__build__
[ 99%/62.096s :: 1->9->3037 (of 3046)] Linking CXX executable libc/test/src/stdio/libc.test.src.stdio.snprintf_test.__hermetic__.__build__
[ 99%/63.833s :: 1->8->3038 (of 3046)] Linking CXX executable libc/test/src/stdio/libc.test.src.stdio.asprintf_test.__hermetic__.__build__
[ 99%/63.991s :: 1->7->3039 (of 3046)] Linking CXX executable libc/test/src/stdio/libc.test.src.stdio.sscanf_test.__hermetic__.__build__
[ 99%/65.202s :: 1->6->3040 (of 3046)] Linking CXX executable libc/test/src/math/smoke/libc.test.src.math.smoke.sub_same_type_test.__hermetic__.__build__
[ 99%/65.520s :: 1->5->3041 (of 3046)] Linking CXX executable libc/test/src/time/libc.test.src.time.strftime_test.__hermetic__.__build__
[ 99%/66.741s :: 1->4->3042 (of 3046)] Linking CXX executable libc/test/src/math/smoke/libc.test.src.math.smoke.add_same_type_test.__hermetic__.__build__
[ 99%/66.988s :: 1->3->3043 (of 3046)] Linking CXX executable libc/test/src/stdlib/libc.test.src.stdlib.strtof_test.__hermetic__.__build__
[ 99%/67.326s :: 1->2->3044 (of 3046)] Linking CXX executable libc/test/shared/libc.test.shared.shared_math_test.__hermetic__.__build__
[ 99%/209.417s :: 1->1->3045 (of 3046)] Linking CXX executable libc/test/src/__support/printf_core/libc.test.src.__support.printf_core.parser_test.__hermetic__.__build__
FAILED: libc/test/src/__support/printf_core/libc.test.src.__support.printf_core.parser_test.__hermetic__.__build__ 
: && /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/./bin/clang++ --target=amdgpu-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 -Wl,--color-diagnostics    --target=amdgpu-amd-amdhsa -Wno-multi-gpu -mcpu=native -flto -nostdlib -static -Wl,-mllvm,-amdhsa-code-object-version=6 libc/startup/gpu/CMakeFiles/libc.startup.gpu.crt1.dir/start.cpp.o libc/test/src/__support/printf_core/CMakeFiles/libc.test.src.__support.printf_core.parser_test.__hermetic__.__build__.dir/parser_test.cpp.o -o libc/test/src/__support/printf_core/libc.test.src.__support.printf_core.parser_test.__hermetic__.__build__  libc/test/UnitTest/libLibcTest.hermetic.a  libc/test/UnitTest/libLibcDeathTestExecutors.hermetic.a  libc/test/UnitTest/libLibcPrintfHelpers.hermetic.a  libc/test/UnitTest/libLibcHermeticTestSupport.hermetic.a  libc/test/src/__support/printf_core/liblibc.test.src.__support.printf_core.parser_test.__hermetic__.libc.a && :
ld.lld: error: undefined symbol: operator delete(void*, unsigned long, std::align_val_t)
>>> referenced by libc/test/src/__support/printf_core/libc.test.src.__support.printf_core.parser_test.__hermetic__.__build__.lto.o:(__llvm_libc_24_0_0_git::testing::FormatSectionMatcher::~FormatSectionMatcher())
>>> referenced by libc/test/src/__support/printf_core/libc.test.src.__support.printf_core.parser_test.__hermetic__.__build__.lto.o:(__llvm_libc_24_0_0_git::testing::FormatSectionMatcher::~FormatSectionMatcher())
>>> did you mean: operator delete(void*, std::align_val_t)
>>> defined in: libc/test/src/__support/printf_core/libc.test.src.__support.printf_core.parser_test.__hermetic__.__build__.lto.o
clang++: error: ld.lld command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
FAILED: runtimes/CMakeFiles/check-libc-amdgpu-amd-amdhsa /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/runtimes/CMakeFiles/check-libc-amdgpu-amd-amdhsa 
cd /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/runtimes/runtimes-amdgpu-amd-amdhsa-bins && /usr/bin/cmake --build /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/runtimes/runtimes-amdgpu-amd-amdhsa-bins/ --target check-libc --config Release
ninja: build stopped: subcommand failed.
ninja -C llvm.build check-libc-amdgpu-amd-amdhsa -j64 exited with return code 1.
@@@STEP_FAILURE@@@
@@@BUILD_STEP run check-compiler-rt-amdgpu-amd-amdhsa@@@
Running: ninja -C llvm.build check-compiler-rt-amdgpu-amd-amdhsa -j64
ninja: Entering directory `llvm.build'
[  0%/0.000s :: 7->1->0 (of 8)] Performing build step for 'builtins'
ninja: no work to do.
[ 12%/0.028s :: 6->1->1 (of 8)] Performing build step for 'builtins-amdgpu-amd-amdhsa'
ninja: no work to do.
[ 25%/0.051s :: 5->1->2 (of 8)] No install step for 'builtins-amdgpu-amd-amdhsa'
[ 50%/0.095s :: 4->1->4 (of 8)] Completed 'builtins-amdgpu-amd-amdhsa'
[ 50%/0.095s :: 3->1->4 (of 8)] No install step for 'builtins'
[ 75%/0.148s :: 2->1->6 (of 8)] Completed 'builtins'
[ 75%/0.148s :: 1->1->6 (of 8)] Performing configure step for 'runtimes-amdgpu-amd-amdhsa'
Not searching for unused variables given on the command line.
loading initial cache file /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/../compiler-rt/cmake/caches/AMDGPU.cmake
loading initial cache file /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/../libcxx/cmake/caches/AMDGPU.cmake
loading initial cache file /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/projects/runtimes-amdgpu-amd-amdhsa/tmp/runtimes-amdgpu-amd-amdhsa-cache-Release.cmake
CMake Warning at CMakeLists.txt:4 (message):
  Your CMake version is 3.22.1.  Starting with LLVM 24, the minimum version
  of CMake required to build LLVM will become 3.31.0, and using an older
  CMake will become an error.  Please upgrade your CMake to at least 3.31.0
  now to avoid issues in the future.


-- Performing bootstrapping runtimes build.
CMake Warning at /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/cmake/modules/HandleLLVMOptions.cmake:141 (message):
Step 12 (run check-libc-amdgpu-amd-amdhsa) failure: run check-libc-amdgpu-amd-amdhsa (failure)
...
[ 99%/61.699s :: 1->10->3036 (of 3046)] Linking CXX executable libc/test/src/stdio/libc.test.src.stdio.vsprintf_test.__hermetic__.__build__
[ 99%/62.096s :: 1->9->3037 (of 3046)] Linking CXX executable libc/test/src/stdio/libc.test.src.stdio.snprintf_test.__hermetic__.__build__
[ 99%/63.833s :: 1->8->3038 (of 3046)] Linking CXX executable libc/test/src/stdio/libc.test.src.stdio.asprintf_test.__hermetic__.__build__
[ 99%/63.991s :: 1->7->3039 (of 3046)] Linking CXX executable libc/test/src/stdio/libc.test.src.stdio.sscanf_test.__hermetic__.__build__
[ 99%/65.202s :: 1->6->3040 (of 3046)] Linking CXX executable libc/test/src/math/smoke/libc.test.src.math.smoke.sub_same_type_test.__hermetic__.__build__
[ 99%/65.520s :: 1->5->3041 (of 3046)] Linking CXX executable libc/test/src/time/libc.test.src.time.strftime_test.__hermetic__.__build__
[ 99%/66.741s :: 1->4->3042 (of 3046)] Linking CXX executable libc/test/src/math/smoke/libc.test.src.math.smoke.add_same_type_test.__hermetic__.__build__
[ 99%/66.988s :: 1->3->3043 (of 3046)] Linking CXX executable libc/test/src/stdlib/libc.test.src.stdlib.strtof_test.__hermetic__.__build__
[ 99%/67.326s :: 1->2->3044 (of 3046)] Linking CXX executable libc/test/shared/libc.test.shared.shared_math_test.__hermetic__.__build__
[ 99%/209.417s :: 1->1->3045 (of 3046)] Linking CXX executable libc/test/src/__support/printf_core/libc.test.src.__support.printf_core.parser_test.__hermetic__.__build__
FAILED: libc/test/src/__support/printf_core/libc.test.src.__support.printf_core.parser_test.__hermetic__.__build__ 
: && /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/./bin/clang++ --target=amdgpu-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 -Wl,--color-diagnostics    --target=amdgpu-amd-amdhsa -Wno-multi-gpu -mcpu=native -flto -nostdlib -static -Wl,-mllvm,-amdhsa-code-object-version=6 libc/startup/gpu/CMakeFiles/libc.startup.gpu.crt1.dir/start.cpp.o libc/test/src/__support/printf_core/CMakeFiles/libc.test.src.__support.printf_core.parser_test.__hermetic__.__build__.dir/parser_test.cpp.o -o libc/test/src/__support/printf_core/libc.test.src.__support.printf_core.parser_test.__hermetic__.__build__  libc/test/UnitTest/libLibcTest.hermetic.a  libc/test/UnitTest/libLibcDeathTestExecutors.hermetic.a  libc/test/UnitTest/libLibcPrintfHelpers.hermetic.a  libc/test/UnitTest/libLibcHermeticTestSupport.hermetic.a  libc/test/src/__support/printf_core/liblibc.test.src.__support.printf_core.parser_test.__hermetic__.libc.a && :
ld.lld: error: undefined symbol: operator delete(void*, unsigned long, std::align_val_t)
>>> referenced by libc/test/src/__support/printf_core/libc.test.src.__support.printf_core.parser_test.__hermetic__.__build__.lto.o:(__llvm_libc_24_0_0_git::testing::FormatSectionMatcher::~FormatSectionMatcher())
>>> referenced by libc/test/src/__support/printf_core/libc.test.src.__support.printf_core.parser_test.__hermetic__.__build__.lto.o:(__llvm_libc_24_0_0_git::testing::FormatSectionMatcher::~FormatSectionMatcher())
>>> did you mean: operator delete(void*, std::align_val_t)
>>> defined in: libc/test/src/__support/printf_core/libc.test.src.__support.printf_core.parser_test.__hermetic__.__build__.lto.o
clang++: error: ld.lld command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
FAILED: runtimes/CMakeFiles/check-libc-amdgpu-amd-amdhsa /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/runtimes/CMakeFiles/check-libc-amdgpu-amd-amdhsa 
cd /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/runtimes/runtimes-amdgpu-amd-amdhsa-bins && /usr/bin/cmake --build /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/runtimes/runtimes-amdgpu-amd-amdhsa-bins/ --target check-libc --config Release
ninja: build stopped: subcommand failed.
ninja -C llvm.build check-libc-amdgpu-amd-amdhsa -j64 exited with return code 1.

```

</details>

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


More information about the libc-commits mailing list