[libc-commits] [libc] [libc] Tweak the runtimes cross-build for GPU (PR #178548)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Thu Jan 29 06:40:49 PST 2026


jhuber6 wrote:

Anyone know why the Ubuntu CI is failing with this?
```
 FAILED: [code=1] libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o 
sccache /usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_23_0_0_git -D_DEBUG -I/home/runner/work/llvm-project/llvm-project/libc -I/home/runner/work/llvm-project/llvm-project/build/libc -isystem /home/runner/work/llvm-project/llvm-project/build/libc/include -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 -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g -std=gnu++17 --target=x86_64-unknown-linux-gnu -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_CONF_WCTYPE_MODE=LIBC_WCTYPE_MODE_ASCII -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -fpie -Wall -Wextra -Wconversion -Wno-sign-conversion -Wimplicit-fallthrough -Wwrite-strings -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wstrict-prototypes -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wthread-safety -DLIBC_TEST=UNIT -MD -MT libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o -MF libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o.d -o libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o -c /home/runner/work/llvm-project/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp
In file included from /home/runner/work/llvm-project/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:15:
/home/runner/work/llvm-project/llvm-project/libc/src/string/memory_utils/op_generic.h:418:17: error: static assertion failed due to requirement 'is_element_type_v<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  418 |   static_assert(is_element_type_v<T>);
      |                 ^~~~~~~~~~~~~~~~~~~~
/home/runner/work/llvm-project/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:335:28: note: in instantiation of template class '__llvm_libc_23_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>' requested here
  335 |   constexpr size_t kSize = Impl::SIZE;
      |                            ^
/home/runner/work/llvm-project/llvm-project/libc/test/UnitTest/LibcTest.h:306:8: note: in instantiation of member function '__llvm_libc_23_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_23_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
  306 | struct TestCreator<TemplatedTestClass, Head, Tail...>
      |        ^
/home/runner/work/llvm-project/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:335:32: error: incomplete definition of type '__llvm_libc_23_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  335 |   constexpr size_t kSize = Impl::SIZE;
      |                            ~~~~^~
/home/runner/work/llvm-project/llvm-project/libc/test/UnitTest/LibcTest.h:306:8: note: in instantiation of member function '__llvm_libc_23_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_23_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
  306 | struct TestCreator<TemplatedTestClass, Head, Tail...>
      |        ^
/home/runner/work/llvm-project/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:337:68: error: no member named 'block' in '__llvm_libc_23_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  337 |     static constexpr auto BlockImpl = CmpBlockAdaptor<kSize, Impl::block>;
      |     
```
It doesn't look related.

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


More information about the libc-commits mailing list