[libc] [llvm] [LLVM] Make the GPU loader utilities an LLVM tool (PR #132096)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 20 12:39:32 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-ppc64le-linux-test-suite` running on `ppc64le-clang-test-suite` while building `libc,llvm` at step 5 "build-unified-tree".

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

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

```
Step 5 (build-unified-tree) failure: build (failure)
...
23.094 [1021/34/4958] Building CXX object tools/clang/tools/extra/clang-move/CMakeFiles/obj.clangMove.dir/Move.cpp.o
23.200 [1021/33/4959] Building CXX object tools/clang/tools/extra/clang-reorder-fields/CMakeFiles/obj.clangReorderFields.dir/ReorderFieldsAction.cpp.o
23.352 [1021/32/4960] Linking CXX executable bin/llvm-stress
23.370 [1021/31/4961] Building CXX object tools/clang/tools/clang-installapi/CMakeFiles/clang-installapi.dir/ClangInstallAPI.cpp.o
24.079 [1021/30/4962] Linking CXX executable bin/llvm-dis
24.187 [1021/29/4963] Linking CXX executable bin/llvm-diff
24.615 [1021/28/4964] Building X86GenSubtargetInfo.inc...
24.651 [1021/27/4965] Building RISCVGenInstrInfo.inc...
25.162 [1021/26/4966] Building X86GenDAGISel.inc...
25.496 [1021/25/4967] Building CXX object tools/llvm-gpu-loader/CMakeFiles/llvm-gpu-loader.dir/llvm-gpu-loader.cpp.o
FAILED: tools/llvm-gpu-loader/CMakeFiles/llvm-gpu-loader.dir/llvm-gpu-loader.cpp.o 
ccache /usr/lib64/ccache/c++ -DGTEST_HAS_RTTI=0 -DLIBC_NAMESPACE=__llvm_libc_common_utils -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/tools/llvm-gpu-loader -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/tools/llvm-gpu-loader -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/llvm-gpu-loader/CMakeFiles/llvm-gpu-loader.dir/llvm-gpu-loader.cpp.o -MF tools/llvm-gpu-loader/CMakeFiles/llvm-gpu-loader.dir/llvm-gpu-loader.cpp.o.d -o tools/llvm-gpu-loader/CMakeFiles/llvm-gpu-loader.dir/llvm-gpu-loader.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/tools/llvm-gpu-loader/llvm-gpu-loader.cpp
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/src/__support/CPP/type_traits.h:31,
                 from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/core_structs.h:15,
                 from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter.h:13,
                 from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/src/__support/RPC/rpc_server.h:38,
                 from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/shared/rpc_server.h:12,
                 from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/tools/llvm-gpu-loader/llvm-gpu-loader.h:16,
                 from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/tools/llvm-gpu-loader/llvm-gpu-loader.cpp:15:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/src/__support/CPP/type_traits/is_constant_evaluated.h: In function ‘constexpr bool __llvm_libc_common_utils::cpp::is_constant_evaluated()’:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/src/__support/CPP/type_traits/is_constant_evaluated.h:18:10: error: ‘__builtin_is_constant_evaluated’ was not declared in this scope
   return __builtin_is_constant_evaluated();
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/src/__support/CPP/type_traits/is_constant_evaluated.h:18:10: note: suggested alternative: ‘is_constant_evaluated’
   return __builtin_is_constant_evaluated();
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          is_constant_evaluated
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/src/__support/FPUtil/FPBits.h:25,
                 from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/core_structs.h:16,
                 from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter.h:13,
                 from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/src/__support/RPC/rpc_server.h:38,
                 from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/shared/rpc_server.h:12,
                 from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/tools/llvm-gpu-loader/llvm-gpu-loader.h:16,
                 from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/tools/llvm-gpu-loader/llvm-gpu-loader.cpp:15:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/src/__support/math_extras.h: In function ‘constexpr __llvm_libc_common_utils::cpp::enable_if_t<is_unsigned_v<T>, T> __llvm_libc_common_utils::add_with_carry(T, T, T, T&)’:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/src/__support/math_extras.h:77:44:   in ‘constexpr’ expansion of ‘__llvm_libc_common_utils::cpp::is_constant_evaluated()’
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/src/__support/math_extras.h:77:46: error: ‘constexpr’ call flows off the end of the function
   if constexpr (!cpp::is_constant_evaluated()) {
                                              ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/src/__support/math_extras.h: In function ‘constexpr __llvm_libc_common_utils::cpp::enable_if_t<is_unsigned_v<T>, T> __llvm_libc_common_utils::sub_with_borrow(T, T, T, T&)’:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/src/__support/math_extras.h:103:44:   in ‘constexpr’ expansion of ‘__llvm_libc_common_utils::cpp::is_constant_evaluated()’
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/src/__support/math_extras.h:103:46: error: ‘constexpr’ call flows off the end of the function
   if constexpr (!cpp::is_constant_evaluated()) {
                                              ^
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/core_structs.h:16,
                 from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/converter.h:13,
                 from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/src/__support/RPC/rpc_server.h:38,
                 from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/cmake/Modules/../../libc/shared/rpc_server.h:12,
                 from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/tools/llvm-gpu-loader/llvm-gpu-loader.h:16,

```

</details>

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


More information about the llvm-commits mailing list