Skip to content

[LLVM] Replace use of LLVM_RUNTIMES_TARGET with LLVM_DEFAULT_TARGET_TRIPLE #136208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2025

Conversation

jhuber6
Copy link
Contributor

@jhuber6 jhuber6 commented Apr 17, 2025

Summary:
For purposes of determining the triple, it's more correct to use LLVM_DEFAULT_TARGET_TRIPLE.

@llvmbot
Copy link
Member

llvmbot commented Apr 17, 2025

@llvm/pr-subscribers-libc

Author: Joseph Huber (jhuber6)

Changes

Summary:
The multilib builds pass +name to the runtime target. We were using
this as a strict triple and passing it to the compiler. Parse out the
triple portion in this case.


Full diff: https://github.com/llvm/llvm-project/pull/136208.diff

1 Files Affected:

  • (modified) libc/cmake/modules/LLVMLibCArchitectures.cmake (+6)
diff --git a/libc/cmake/modules/LLVMLibCArchitectures.cmake b/libc/cmake/modules/LLVMLibCArchitectures.cmake
index 62f3a2e3bdb59..d2046d9270063 100644
--- a/libc/cmake/modules/LLVMLibCArchitectures.cmake
+++ b/libc/cmake/modules/LLVMLibCArchitectures.cmake
@@ -211,6 +211,12 @@ if(explicit_target_triple AND
             "GCC target triple (${libc_compiler_triple}) and the explicity "
             "specified target triple (${explicit_target_triple}) do not match.")
   else()
+    # Make sure we don't include any multilib specifiers.
+    string(FIND "${explicit_target_triple}" "+" plus_pos)
+    if(NOT plus_pos EQUAL -1)
+      string(SUBSTRING "${explicit_target_triple}" 0 ${plus_pos} explicit_target_triple)
+    endif()
+
     list(APPEND
          LIBC_COMPILE_OPTIONS_DEFAULT "--target=${explicit_target_triple}")
   endif()

@petrhosek
Copy link
Member

Summary: The multilib builds pass +name to the runtime target.

This shouldn't happen, what's your build configuration?

@jhuber6
Copy link
Contributor Author

jhuber6 commented Apr 18, 2025

Summary: The multilib builds pass +name to the runtime target.

This shouldn't happen, what's your build configuration?

    -DRUNTIMES_x86_64-unknown-linux-gnu_LLVM_ENABLE_RUNTIMES=${RUNTIMES}                           \
    -DRUNTIMES_x86_64-unknown-linux-gnu+debug_LLVM_ENABLE_RUNTIMES=${RUNTIMES}                           \
    -DLLVM_RUNTIME_MULTILIBS=debug                                                                 \
    -DLLVM_RUNTIME_MULTILIB_debug_TARGETS=x86_64-unknown-linux-gnu                                 \

Something like this, I couldn't figure out how it expected it to work. If I just tried doing it any other way it would complain that the target didn't exist.

@petrhosek
Copy link
Member

Summary: The multilib builds pass +name to the runtime target.

This shouldn't happen, what's your build configuration?

    -DRUNTIMES_x86_64-unknown-linux-gnu_LLVM_ENABLE_RUNTIMES=${RUNTIMES}                           \
    -DRUNTIMES_x86_64-unknown-linux-gnu+debug_LLVM_ENABLE_RUNTIMES=${RUNTIMES}                           \
    -DLLVM_RUNTIME_MULTILIBS=debug                                                                 \
    -DLLVM_RUNTIME_MULTILIB_debug_TARGETS=x86_64-unknown-linux-gnu                                 \

Something like this, I couldn't figure out how it expected it to work. If I just tried doing it any other way it would complain that the target didn't exist.

This looks correct but I suspect there might be a bug somewhere in the runtimes implementation since we shouldn't be passing the +${multilib} to the subbuild. I'd prefer addressing the issue rather than working around it inside the libc build. Let me reproduce this locally to figure out what's the problem.

@jhuber6
Copy link
Contributor Author

jhuber6 commented Apr 18, 2025

This looks correct but I suspect there might be a bug somewhere in the runtimes implementation since we shouldn't be passing the +${multilib} to the subbuild. I'd prefer addressing the issue rather than working around it inside the libc build. Let me reproduce this locally to figure out what's the problem.

Here's the full script I was using if it helps https://gist.github.com/jhuber6/91177b9ee4c11ae570f5bcc490271db7. I'm interested in making AMD's ROCm build move towards this instead of separate standalone builds for debugging and other support.

@jhuber6
Copy link
Contributor Author

jhuber6 commented Apr 21, 2025

@petrhosek Is there also an expected way to access the multilib dir? Like, if I have lib/x86_64-unknown-linux-gnu/debug do I need to pass that directory manually? Maybe we could accept --target=<triple>+debug to point there?

@petrhosek
Copy link
Member

The issue is that we started using LLVM_RUNTIMES_TARGET in a way that wasn't intended for. When I introduced that variable, the "target" was meant as build target (i.e. Ninja or Make target) and used for purposes such as deriving the subdirectory name for build artifacts. It wasn't supposed to be used as the target triple, we should be still using LLVM_DEFAULT_TARGET_TRIPLE for that purpose as is already the case in other runtimes like compiler-rt, libunwind, libc++abi and libc++. Unfortunately, it looks like we already started using LLVM_RUNTIMES_TARGET as target triple in flang-rt and libc leading to the issue you've seen. Instead of trying to copt LLVM_RUNTIMES_TARGET, my preference would be to replace LLVM_RUNTIMES_TARGET in flang-rt and libc with LLVM_DEFAULT_TARGET_TRIPLE and then rename LLVM_RUNTIMES_TARGET to something like LLVM_RUNTIMES_SUBDIR to clarify its intended purpose.

@jhuber6
Copy link
Contributor Author

jhuber6 commented Apr 21, 2025

The issue is that we started using LLVM_RUNTIMES_TARGET in a way that wasn't intended for. When I introduced that variable, the "target" was meant as build target (i.e. Ninja or Make target) and used for purposes such as deriving the subdirectory name for build artifacts. It wasn't supposed to be used as the target triple, we should be still using LLVM_DEFAULT_TARGET_TRIPLE for that purpose as is already the case in other runtimes like compiler-rt, libunwind, libc++abi and libc++. Unfortunately, it looks like we already started using LLVM_RUNTIMES_TARGET as target triple in flang-rt and libc leading to the issue you've seen. Instead of trying to copt LLVM_RUNTIMES_TARGET, my preference would be to replace LLVM_RUNTIMES_TARGET in flang-rt and libc with LLVM_DEFAULT_TARGET_TRIPLE and then rename LLVM_RUNTIMES_TARGET to something like LLVM_RUNTIMES_SUBDIR to clarify its intended purpose.

That was my first question on the other PR, but you said to fix it in runtimes. I can do that.

@jhuber6 jhuber6 changed the title [libc] Fix passing the full runtime target for multilibs [LLVM] Replace use of LLVM_RUNTIMES_TARGET with LLVM_DEFAULT_TARGET_TRIPLE Apr 21, 2025
@jhuber6
Copy link
Contributor Author

jhuber6 commented Apr 21, 2025

I get this error from the bot. Any clue what the intent of this check is...?

CMake Error at /home/runner/work/llvm-project/llvm-project/libc/cmake/modules/LLVMLibCArchitectures.cmake:210 (message):
  GCC target triple (x86_64-linux-gnu) and the explicity specified target
  triple (x86_64-unknown-linux-gnu) do not match.

Summary:
The multilib builds pass `+name` to the runtime target. We were using
this as a strict triple and passing it to the compiler. Parse out the
triple portion in this case.
@jhuber6
Copy link
Contributor Author

jhuber6 commented Apr 22, 2025

I just turned that error into a warning, the problem is that GCC and LLVM set the triple slightly different and we can't pass --target= to GCC like with clang.

@petrhosek
Copy link
Member

The issue is that we started using LLVM_RUNTIMES_TARGET in a way that wasn't intended for. When I introduced that variable, the "target" was meant as build target (i.e. Ninja or Make target) and used for purposes such as deriving the subdirectory name for build artifacts. It wasn't supposed to be used as the target triple, we should be still using LLVM_DEFAULT_TARGET_TRIPLE for that purpose as is already the case in other runtimes like compiler-rt, libunwind, libc++abi and libc++. Unfortunately, it looks like we already started using LLVM_RUNTIMES_TARGET as target triple in flang-rt and libc leading to the issue you've seen. Instead of trying to copt LLVM_RUNTIMES_TARGET, my preference would be to replace LLVM_RUNTIMES_TARGET in flang-rt and libc with LLVM_DEFAULT_TARGET_TRIPLE and then rename LLVM_RUNTIMES_TARGET to something like LLVM_RUNTIMES_SUBDIR to clarify its intended purpose.

That was my first question on the other PR, but you said to fix it in runtimes. I can do that.

Thanks for doing this cleanup!

@jhuber6 jhuber6 merged commit 2e145f1 into llvm:main Apr 22, 2025
17 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 22, 2025

LLVM Buildbot has detected a new failure on builder libc-x86_64-debian-gcc-fullbuild-dbg running on libc-x86_64-debian-fullbuild while building flang-rt,libc at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/strings/bzero_test.cpp:12:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/memory_check_utils.h: In function ‘uint16_t __llvm_libc_20_0_0_git::Checksum(cpp::span<char>)’:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/memory_check_utils.h:160:46: warning: conversion from ‘unsigned int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
  160 |     sum1 = (sum1 + static_cast<uint16_t>(c)) % 255U;
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/memory_check_utils.h:161:26: warning: conversion from ‘unsigned int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
  161 |     sum2 = (sum2 + sum1) % 255U;
      |            ~~~~~~~~~~~~~~^~~~~~
[1208/1222] Linking CXX executable libc/test/src/strings/libc.test.src.strings.bzero_test.__unit__.__build__
[1209/1222] Building CXX object libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o
FAILED: libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o 
/usr/bin/g++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/libc/include -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -Wconversion -Wno-sign-conversion -Wimplicit-fallthrough -Wwrite-strings -fext-numeric-literals -Wno-pedantic -std=gnu++17 -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/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:9:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/memory_check_utils.h: In function ‘uint16_t __llvm_libc_20_0_0_git::Checksum(cpp::span<char>)’:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/memory_check_utils.h:160:46: warning: conversion from ‘unsigned int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
  160 |     sum1 = (sum1 + static_cast<uint16_t>(c)) % 255U;
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/memory_check_utils.h:161:26: warning: conversion from ‘unsigned int’ to ‘uint16_t’ {aka ‘short unsigned int’} may change value [-Wconversion]
  161 |     sum2 = (sum2 + sum1) % 255U;
      |            ~~~~~~~~~~~~~~^~~~~~
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:15:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/string/memory_utils/op_generic.h: In instantiation of ‘struct __llvm_libc_20_0_0_git::generic::Memcmp<__vector(2) long long int>’:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:332:34:   required from ‘void __llvm_libc_20_0_0_git::LlvmLibcOpTest_Memcmp<T>::Run() [with T = __llvm_libc_20_0_0_git::generic::Memcmp<__vector(2) long long int>]’
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:330:1:   required from here
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/string/memory_utils/op_generic.h:397:17: error: static assertion failed
  397 |   static_assert(is_element_type_v<T>);
      |                 ^~~~~~~~~~~~~~~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/string/memory_utils/op_generic.h:397:17: note: ‘__llvm_libc_20_0_0_git::generic::is_element_type_v<__vector(2) long long int>’ evaluates to false
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp: In instantiation of ‘void __llvm_libc_20_0_0_git::LlvmLibcOpTest_Memset<T>::Run() [with T = __llvm_libc_20_0_0_git::generic::Memset<long unsigned int>]’:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:160:1:   required from here
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:177:34: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
  177 |       const uint8_t value = size % 10;
      |                             ~~~~~^~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:188:36: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
  188 |         const uint8_t value = size % 10;
      |                               ~~~~~^~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp: In instantiation of ‘void __llvm_libc_20_0_0_git::LlvmLibcOpTest_Memset<T>::Run() [with T = __llvm_libc_20_0_0_git::generic::Memset<__llvm_libc_20_0_0_git::cpp::array<long unsigned int, 2> >]’:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:160:1:   required from here
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:177:34: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
  177 |       const uint8_t value = size % 10;
      |                             ~~~~~^~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:188:36: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
  188 |         const uint8_t value = size % 10;
      |                               ~~~~~^~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp: In instantiation of ‘void __llvm_libc_20_0_0_git::LlvmLibcOpTest_Memset<T>::Run() [with T = __llvm_libc_20_0_0_git::generic::Memset<__vector(16) unsigned char>]’:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:160:1:   required from here
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:177:34: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]
  177 |       const uint8_t value = size % 10;
      |                             ~~~~~^~~~

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 22, 2025

LLVM Buildbot has detected a new failure on builder libc-x86_64-debian-dbg-asan running on libc-x86_64-debian while building flang-rt,libc at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[ RUN      ] LlvmLibcMemcmpTest.LhsBeforeRhsLexically
[       OK ] LlvmLibcMemcmpTest.LhsBeforeRhsLexically (3 us)
[ RUN      ] LlvmLibcMemcmpTest.LhsAfterRhsLexically
[       OK ] LlvmLibcMemcmpTest.LhsAfterRhsLexically (3 us)
[ RUN      ] LlvmLibcMemcmpTest.Issue77080
[       OK ] LlvmLibcMemcmpTest.Issue77080 (2 us)
[ RUN      ] LlvmLibcMemcmpTest.SizeSweep
[       OK ] LlvmLibcMemcmpTest.SizeSweep (46 ms)
Ran 6 tests.  PASS: 6  FAIL: 0
[3997/4299] Building CXX object libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o
FAILED: libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/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 -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fno-omit-frame-pointer -fsanitize=address -fdiagnostics-color -g --target=x86_64-unknown-linux-gnu -fpie -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 -std=gnu++17 -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/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:15:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/src/string/memory_utils/op_generic.h:397:3: error: static_assert failed due to requirement 'is_element_type_v<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  static_assert(is_element_type_v<T>);
  ^             ~~~~~~~~~~~~~~~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:332:28: note: in instantiation of template class '__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>' requested here
  constexpr size_t kSize = Impl::SIZE;
                           ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/UnitTest/LibcTest.h:301:8: note: in instantiation of member function '__llvm_libc_20_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
struct TestCreator<TemplatedTestClass, Head, Tail...>
       ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:332:32: error: incomplete definition of type '__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  constexpr size_t kSize = Impl::SIZE;
                           ~~~~^~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/UnitTest/LibcTest.h:301:8: note: in instantiation of member function '__llvm_libc_20_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
struct TestCreator<TemplatedTestClass, Head, Tail...>
       ^
2 errors generated.
[3998/4299] Running unit test libc.test.src.string.memset_test.__unit__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcMemsetTest.SizeSweep
[       OK ] LlvmLibcMemsetTest.SizeSweep (1 ms)
[ RUN      ] LlvmLibcMemsetTest.CheckAccess
[       OK ] LlvmLibcMemsetTest.CheckAccess (3 ms)
Ran 2 tests.  PASS: 2  FAIL: 0
[3999/4299] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.strcasecmp_test.__unit__.__build__.dir/strcasecmp_test.cpp.o
[4000/4299] Running unit test libc.test.src.string.memmove_test.__unit__
[==========] Running 7 tests from 1 test suite.
[ RUN      ] LlvmLibcMemmoveTest.MoveZeroByte
[       OK ] LlvmLibcMemmoveTest.MoveZeroByte (9 us)
[ RUN      ] LlvmLibcMemmoveTest.DstAndSrcPointToSameAddress
[       OK ] LlvmLibcMemmoveTest.DstAndSrcPointToSameAddress (3 us)
[ RUN      ] LlvmLibcMemmoveTest.DstStartsBeforeSrc
[       OK ] LlvmLibcMemmoveTest.DstStartsBeforeSrc (3 us)
[ RUN      ] LlvmLibcMemmoveTest.DstStartsAfterSrc
[       OK ] LlvmLibcMemmoveTest.DstStartsAfterSrc (3 us)
[ RUN      ] LlvmLibcMemmoveTest.SrcFollowDst
[       OK ] LlvmLibcMemmoveTest.SrcFollowDst (2 us)
Step 7 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[ RUN      ] LlvmLibcMemcmpTest.LhsBeforeRhsLexically
[       OK ] LlvmLibcMemcmpTest.LhsBeforeRhsLexically (3 us)
[ RUN      ] LlvmLibcMemcmpTest.LhsAfterRhsLexically
[       OK ] LlvmLibcMemcmpTest.LhsAfterRhsLexically (3 us)
[ RUN      ] LlvmLibcMemcmpTest.Issue77080
[       OK ] LlvmLibcMemcmpTest.Issue77080 (2 us)
[ RUN      ] LlvmLibcMemcmpTest.SizeSweep
[       OK ] LlvmLibcMemcmpTest.SizeSweep (46 ms)
Ran 6 tests.  PASS: 6  FAIL: 0
[3997/4299] Building CXX object libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o
FAILED: libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/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 -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fno-omit-frame-pointer -fsanitize=address -fdiagnostics-color -g --target=x86_64-unknown-linux-gnu -fpie -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 -std=gnu++17 -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/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:15:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/src/string/memory_utils/op_generic.h:397:3: error: static_assert failed due to requirement 'is_element_type_v<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  static_assert(is_element_type_v<T>);
  ^             ~~~~~~~~~~~~~~~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:332:28: note: in instantiation of template class '__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>' requested here
  constexpr size_t kSize = Impl::SIZE;
                           ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/UnitTest/LibcTest.h:301:8: note: in instantiation of member function '__llvm_libc_20_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
struct TestCreator<TemplatedTestClass, Head, Tail...>
       ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:332:32: error: incomplete definition of type '__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  constexpr size_t kSize = Impl::SIZE;
                           ~~~~^~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-asan/llvm-project/libc/test/UnitTest/LibcTest.h:301:8: note: in instantiation of member function '__llvm_libc_20_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
struct TestCreator<TemplatedTestClass, Head, Tail...>
       ^
2 errors generated.
[3998/4299] Running unit test libc.test.src.string.memset_test.__unit__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcMemsetTest.SizeSweep
[       OK ] LlvmLibcMemsetTest.SizeSweep (1 ms)
[ RUN      ] LlvmLibcMemsetTest.CheckAccess
[       OK ] LlvmLibcMemsetTest.CheckAccess (3 ms)
Ran 2 tests.  PASS: 2  FAIL: 0
[3999/4299] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.strcasecmp_test.__unit__.__build__.dir/strcasecmp_test.cpp.o
[4000/4299] Running unit test libc.test.src.string.memmove_test.__unit__
[==========] Running 7 tests from 1 test suite.
[ RUN      ] LlvmLibcMemmoveTest.MoveZeroByte
[       OK ] LlvmLibcMemmoveTest.MoveZeroByte (9 us)
[ RUN      ] LlvmLibcMemmoveTest.DstAndSrcPointToSameAddress
[       OK ] LlvmLibcMemmoveTest.DstAndSrcPointToSameAddress (3 us)
[ RUN      ] LlvmLibcMemmoveTest.DstStartsBeforeSrc
[       OK ] LlvmLibcMemmoveTest.DstStartsBeforeSrc (3 us)
[ RUN      ] LlvmLibcMemmoveTest.DstStartsAfterSrc
[       OK ] LlvmLibcMemmoveTest.DstStartsAfterSrc (3 us)
[ RUN      ] LlvmLibcMemmoveTest.SrcFollowDst
[       OK ] LlvmLibcMemmoveTest.SrcFollowDst (2 us)

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 22, 2025

LLVM Buildbot has detected a new failure on builder libc-x86_64-debian-fullbuild-dbg-asan running on libc-x86_64-debian-fullbuild while building flang-rt,libc at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[4602/5176] Linking CXX executable libc/test/src/string/libc.test.src.string.memset_opt_host_test.__unit__.__build__
[4603/5176] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.index_test.__unit__.__build__.dir/index_test.cpp.o
[4604/5176] Running unit test libc.test.src.string.memset_opt_host_test.__unit__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcMemsetTest.SizeSweep
[       OK ] LlvmLibcMemsetTest.SizeSweep (1 ms)
Ran 1 tests.  PASS: 1  FAIL: 0
[4605/5176] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.strncasecmp_l_test.__unit__.__build__.dir/strncasecmp_l_test.cpp.o
[4606/5176] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.strncasecmp_test.__unit__.__build__.dir/strncasecmp_test.cpp.o
[4607/5176] Building CXX object libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o
FAILED: libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/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 -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fno-omit-frame-pointer -fsanitize=address -fdiagnostics-color -g --target=x86_64-unknown-linux-gnu -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -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 -std=gnu++17 -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/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:15:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/src/string/memory_utils/op_generic.h:397:3: error: static_assert failed due to requirement 'is_element_type_v<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  static_assert(is_element_type_v<T>);
  ^             ~~~~~~~~~~~~~~~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:332:28: note: in instantiation of template class '__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>' requested here
  constexpr size_t kSize = Impl::SIZE;
                           ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/UnitTest/LibcTest.h:301:8: note: in instantiation of member function '__llvm_libc_20_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
struct TestCreator<TemplatedTestClass, Head, Tail...>
       ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:332:32: error: incomplete definition of type '__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  constexpr size_t kSize = Impl::SIZE;
                           ~~~~^~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/UnitTest/LibcTest.h:301:8: note: in instantiation of member function '__llvm_libc_20_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
struct TestCreator<TemplatedTestClass, Head, Tail...>
       ^
2 errors generated.
[4608/5176] Running unit test libc.test.src.string.memmove_opt_host_test.__unit__
[==========] Running 7 tests from 1 test suite.
[ RUN      ] LlvmLibcMemmoveTest.MoveZeroByte
[       OK ] LlvmLibcMemmoveTest.MoveZeroByte (28 us)
[ RUN      ] LlvmLibcMemmoveTest.DstAndSrcPointToSameAddress
[       OK ] LlvmLibcMemmoveTest.DstAndSrcPointToSameAddress (11 us)
[ RUN      ] LlvmLibcMemmoveTest.DstStartsBeforeSrc
[       OK ] LlvmLibcMemmoveTest.DstStartsBeforeSrc (8 us)
[ RUN      ] LlvmLibcMemmoveTest.DstStartsAfterSrc
[       OK ] LlvmLibcMemmoveTest.DstStartsAfterSrc (4 us)
[ RUN      ] LlvmLibcMemmoveTest.SrcFollowDst
[       OK ] LlvmLibcMemmoveTest.SrcFollowDst (11 us)
[ RUN      ] LlvmLibcMemmoveTest.DstFollowSrc
[       OK ] LlvmLibcMemmoveTest.DstFollowSrc (5 us)
[ RUN      ] LlvmLibcMemmoveTest.SizeSweep
[       OK ] LlvmLibcMemmoveTest.SizeSweep (141 ms)
Ran 7 tests.  PASS: 7  FAIL: 0
[4609/5176] Running unit test libc.test.src.string.memmove_test.__unit__
[==========] Running 7 tests from 1 test suite.
[ RUN      ] LlvmLibcMemmoveTest.MoveZeroByte
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[4602/5176] Linking CXX executable libc/test/src/string/libc.test.src.string.memset_opt_host_test.__unit__.__build__
[4603/5176] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.index_test.__unit__.__build__.dir/index_test.cpp.o
[4604/5176] Running unit test libc.test.src.string.memset_opt_host_test.__unit__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcMemsetTest.SizeSweep
[       OK ] LlvmLibcMemsetTest.SizeSweep (1 ms)
Ran 1 tests.  PASS: 1  FAIL: 0
[4605/5176] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.strncasecmp_l_test.__unit__.__build__.dir/strncasecmp_l_test.cpp.o
[4606/5176] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.strncasecmp_test.__unit__.__build__.dir/strncasecmp_test.cpp.o
[4607/5176] Building CXX object libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o
FAILED: libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/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 -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fno-omit-frame-pointer -fsanitize=address -fdiagnostics-color -g --target=x86_64-unknown-linux-gnu -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -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 -std=gnu++17 -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/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:15:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/src/string/memory_utils/op_generic.h:397:3: error: static_assert failed due to requirement 'is_element_type_v<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  static_assert(is_element_type_v<T>);
  ^             ~~~~~~~~~~~~~~~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:332:28: note: in instantiation of template class '__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>' requested here
  constexpr size_t kSize = Impl::SIZE;
                           ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/UnitTest/LibcTest.h:301:8: note: in instantiation of member function '__llvm_libc_20_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
struct TestCreator<TemplatedTestClass, Head, Tail...>
       ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:332:32: error: incomplete definition of type '__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  constexpr size_t kSize = Impl::SIZE;
                           ~~~~^~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/UnitTest/LibcTest.h:301:8: note: in instantiation of member function '__llvm_libc_20_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
struct TestCreator<TemplatedTestClass, Head, Tail...>
       ^
2 errors generated.
[4608/5176] Running unit test libc.test.src.string.memmove_opt_host_test.__unit__
[==========] Running 7 tests from 1 test suite.
[ RUN      ] LlvmLibcMemmoveTest.MoveZeroByte
[       OK ] LlvmLibcMemmoveTest.MoveZeroByte (28 us)
[ RUN      ] LlvmLibcMemmoveTest.DstAndSrcPointToSameAddress
[       OK ] LlvmLibcMemmoveTest.DstAndSrcPointToSameAddress (11 us)
[ RUN      ] LlvmLibcMemmoveTest.DstStartsBeforeSrc
[       OK ] LlvmLibcMemmoveTest.DstStartsBeforeSrc (8 us)
[ RUN      ] LlvmLibcMemmoveTest.DstStartsAfterSrc
[       OK ] LlvmLibcMemmoveTest.DstStartsAfterSrc (4 us)
[ RUN      ] LlvmLibcMemmoveTest.SrcFollowDst
[       OK ] LlvmLibcMemmoveTest.SrcFollowDst (11 us)
[ RUN      ] LlvmLibcMemmoveTest.DstFollowSrc
[       OK ] LlvmLibcMemmoveTest.DstFollowSrc (5 us)
[ RUN      ] LlvmLibcMemmoveTest.SizeSweep
[       OK ] LlvmLibcMemmoveTest.SizeSweep (141 ms)
Ran 7 tests.  PASS: 7  FAIL: 0
[4609/5176] Running unit test libc.test.src.string.memmove_test.__unit__
[==========] Running 7 tests from 1 test suite.
[ RUN      ] LlvmLibcMemmoveTest.MoveZeroByte

jhuber6 added a commit that referenced this pull request Apr 22, 2025
…LT_TARGET_TRIPLE` (#136208)"

This reverts commit 2e145f1.

Somehow causes some static assertions to fail?
@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 22, 2025

LLVM Buildbot has detected a new failure on builder libc-x86_64-debian-fullbuild-dbg running on libc-x86_64-debian-fullbuild while building flang-rt,libc at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[       OK ] LlvmLibcRindexTest.ShouldFindLastOfDuplicates (2 us)
[ RUN      ] LlvmLibcRindexTest.EmptyStringShouldOnlyMatchNullTerminator
[       OK ] LlvmLibcRindexTest.EmptyStringShouldOnlyMatchNullTerminator (15 us)
Ran 8 tests.  PASS: 8  FAIL: 0
[4633/5196] Running unit test libc.test.src.strings.ffsll_test.__unit__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcFfsllTest.SimpleFfsll
[       OK ] LlvmLibcFfsllTest.SimpleFfsll (6 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[4634/5196] Building CXX object libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o
FAILED: libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/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 -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g --target=x86_64-unknown-linux-gnu -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -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 -std=gnu++17 -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/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:15:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/src/string/memory_utils/op_generic.h:397:3: error: static_assert failed due to requirement 'is_element_type_v<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  static_assert(is_element_type_v<T>);
  ^             ~~~~~~~~~~~~~~~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:332:28: note: in instantiation of template class '__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>' requested here
  constexpr size_t kSize = Impl::SIZE;
                           ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:301:8: note: in instantiation of member function '__llvm_libc_20_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
struct TestCreator<TemplatedTestClass, Head, Tail...>
       ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:332:32: error: incomplete definition of type '__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  constexpr size_t kSize = Impl::SIZE;
                           ~~~~^~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:301:8: note: in instantiation of member function '__llvm_libc_20_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
struct TestCreator<TemplatedTestClass, Head, Tail...>
       ^
2 errors generated.
[4635/5196] Linking CXX executable libc/test/src/strings/libc.test.src.strings.bcopy_test.__unit__.__build__
[4636/5196] Running unit test libc.test.src.string.memmove_opt_host_test.__unit__
[==========] Running 7 tests from 1 test suite.
[ RUN      ] LlvmLibcMemmoveTest.MoveZeroByte
[       OK ] LlvmLibcMemmoveTest.MoveZeroByte (4 us)
[ RUN      ] LlvmLibcMemmoveTest.DstAndSrcPointToSameAddress
[       OK ] LlvmLibcMemmoveTest.DstAndSrcPointToSameAddress (2 us)
[ RUN      ] LlvmLibcMemmoveTest.DstStartsBeforeSrc
[       OK ] LlvmLibcMemmoveTest.DstStartsBeforeSrc (1 us)
[ RUN      ] LlvmLibcMemmoveTest.DstStartsAfterSrc
[       OK ] LlvmLibcMemmoveTest.DstStartsAfterSrc (1 us)
[ RUN      ] LlvmLibcMemmoveTest.SrcFollowDst
[       OK ] LlvmLibcMemmoveTest.SrcFollowDst (1 us)
[ RUN      ] LlvmLibcMemmoveTest.DstFollowSrc
[       OK ] LlvmLibcMemmoveTest.DstFollowSrc (2 us)
[ RUN      ] LlvmLibcMemmoveTest.SizeSweep
[       OK ] LlvmLibcMemmoveTest.SizeSweep (102 ms)
Ran 7 tests.  PASS: 7  FAIL: 0
[4637/5196] Running unit test libc.test.src.string.memmove_test.__unit__
[==========] Running 7 tests from 1 test suite.
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[       OK ] LlvmLibcRindexTest.ShouldFindLastOfDuplicates (2 us)
[ RUN      ] LlvmLibcRindexTest.EmptyStringShouldOnlyMatchNullTerminator
[       OK ] LlvmLibcRindexTest.EmptyStringShouldOnlyMatchNullTerminator (15 us)
Ran 8 tests.  PASS: 8  FAIL: 0
[4633/5196] Running unit test libc.test.src.strings.ffsll_test.__unit__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcFfsllTest.SimpleFfsll
[       OK ] LlvmLibcFfsllTest.SimpleFfsll (6 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[4634/5196] Building CXX object libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o
FAILED: libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/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 -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g --target=x86_64-unknown-linux-gnu -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -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 -std=gnu++17 -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/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:15:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/src/string/memory_utils/op_generic.h:397:3: error: static_assert failed due to requirement 'is_element_type_v<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  static_assert(is_element_type_v<T>);
  ^             ~~~~~~~~~~~~~~~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:332:28: note: in instantiation of template class '__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>' requested here
  constexpr size_t kSize = Impl::SIZE;
                           ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:301:8: note: in instantiation of member function '__llvm_libc_20_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
struct TestCreator<TemplatedTestClass, Head, Tail...>
       ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:332:32: error: incomplete definition of type '__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  constexpr size_t kSize = Impl::SIZE;
                           ~~~~^~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:301:8: note: in instantiation of member function '__llvm_libc_20_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
struct TestCreator<TemplatedTestClass, Head, Tail...>
       ^
2 errors generated.
[4635/5196] Linking CXX executable libc/test/src/strings/libc.test.src.strings.bcopy_test.__unit__.__build__
[4636/5196] Running unit test libc.test.src.string.memmove_opt_host_test.__unit__
[==========] Running 7 tests from 1 test suite.
[ RUN      ] LlvmLibcMemmoveTest.MoveZeroByte
[       OK ] LlvmLibcMemmoveTest.MoveZeroByte (4 us)
[ RUN      ] LlvmLibcMemmoveTest.DstAndSrcPointToSameAddress
[       OK ] LlvmLibcMemmoveTest.DstAndSrcPointToSameAddress (2 us)
[ RUN      ] LlvmLibcMemmoveTest.DstStartsBeforeSrc
[       OK ] LlvmLibcMemmoveTest.DstStartsBeforeSrc (1 us)
[ RUN      ] LlvmLibcMemmoveTest.DstStartsAfterSrc
[       OK ] LlvmLibcMemmoveTest.DstStartsAfterSrc (1 us)
[ RUN      ] LlvmLibcMemmoveTest.SrcFollowDst
[       OK ] LlvmLibcMemmoveTest.SrcFollowDst (1 us)
[ RUN      ] LlvmLibcMemmoveTest.DstFollowSrc
[       OK ] LlvmLibcMemmoveTest.DstFollowSrc (2 us)
[ RUN      ] LlvmLibcMemmoveTest.SizeSweep
[       OK ] LlvmLibcMemmoveTest.SizeSweep (102 ms)
Ran 7 tests.  PASS: 7  FAIL: 0
[4637/5196] Running unit test libc.test.src.string.memmove_test.__unit__
[==========] Running 7 tests from 1 test suite.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 22, 2025

LLVM Buildbot has detected a new failure on builder libc-x86_64-debian-dbg running on libc-x86_64-debian while building flang-rt,libc at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[4009/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.ffsl_test.__unit__.__build__.dir/ffsl_test.cpp.o
[4010/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.bcmp_opt_host_test.__unit__.__build__.dir/bcmp_test.cpp.o
[4011/4312] Running unit test libc.test.src.strings.ffs_test.__unit__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcFfsTest.SimpleFfs
[       OK ] LlvmLibcFfsTest.SimpleFfs (5 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[4012/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.index_test.__unit__.__build__.dir/index_test.cpp.o
[4013/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.strncasecmp_test.__unit__.__build__.dir/strncasecmp_test.cpp.o
[4014/4312] Building CXX object libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o
FAILED: libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/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 -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g --target=x86_64-unknown-linux-gnu -fpie -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 -std=gnu++17 -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/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:15:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/src/string/memory_utils/op_generic.h:397:3: error: static_assert failed due to requirement 'is_element_type_v<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  static_assert(is_element_type_v<T>);
  ^             ~~~~~~~~~~~~~~~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:332:28: note: in instantiation of template class '__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>' requested here
  constexpr size_t kSize = Impl::SIZE;
                           ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:301:8: note: in instantiation of member function '__llvm_libc_20_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
struct TestCreator<TemplatedTestClass, Head, Tail...>
       ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:332:32: error: incomplete definition of type '__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  constexpr size_t kSize = Impl::SIZE;
                           ~~~~^~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:301:8: note: in instantiation of member function '__llvm_libc_20_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
struct TestCreator<TemplatedTestClass, Head, Tail...>
       ^
2 errors generated.
[4015/4312] Building CXX object libc/test/src/wchar/CMakeFiles/libc.test.src.wchar.wcslen_test.__unit__.__build__.dir/wcslen_test.cpp.o
[4016/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.bcmp_test.__unit__.__build__.dir/bcmp_test.cpp.o
[4017/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.bzero_opt_host_test.__unit__.__build__.dir/bzero_test.cpp.o
[4018/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.bcopy_test.__unit__.__build__.dir/bcopy_test.cpp.o
[4019/4312] Building CXX object libc/test/src/wchar/CMakeFiles/libc.test.src.wchar.wctob_test.__unit__.__build__.dir/wctob_test.cpp.o
[4020/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.bzero_test.__unit__.__build__.dir/bzero_test.cpp.o
[4021/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.strcasecmp_test.__unit__.__build__
[4022/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.rindex_test.__unit__.__build__
[4023/4312] Building CXX object libc/test/src/wchar/CMakeFiles/libc.test.src.wchar.btowc_test.__unit__.__build__.dir/btowc_test.cpp.o
[4024/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.index_test.__unit__.__build__
[4025/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.ffsll_test.__unit__.__build__
[4026/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.bcmp_opt_host_test.__unit__.__build__
[4027/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.chdir_test.__build__.dir/chdir_test.cpp.o
[4028/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.access_test.__build__.dir/access_test.cpp.o
[4029/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.ffsl_test.__unit__.__build__
[4030/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.strncasecmp_test.__unit__.__build__
[4031/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.dup3_test.__build__.dir/dup3_test.cpp.o
[4032/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.fchdir_test.__build__.dir/fchdir_test.cpp.o
[4033/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.ftruncate_test.__build__.dir/ftruncate_test.cpp.o
[4034/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.read_write_test.__build__.dir/read_write_test.cpp.o
Step 7 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[4009/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.ffsl_test.__unit__.__build__.dir/ffsl_test.cpp.o
[4010/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.bcmp_opt_host_test.__unit__.__build__.dir/bcmp_test.cpp.o
[4011/4312] Running unit test libc.test.src.strings.ffs_test.__unit__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcFfsTest.SimpleFfs
[       OK ] LlvmLibcFfsTest.SimpleFfs (5 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[4012/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.index_test.__unit__.__build__.dir/index_test.cpp.o
[4013/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.strncasecmp_test.__unit__.__build__.dir/strncasecmp_test.cpp.o
[4014/4312] Building CXX object libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o
FAILED: libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/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 -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g --target=x86_64-unknown-linux-gnu -fpie -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 -std=gnu++17 -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/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:15:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/src/string/memory_utils/op_generic.h:397:3: error: static_assert failed due to requirement 'is_element_type_v<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  static_assert(is_element_type_v<T>);
  ^             ~~~~~~~~~~~~~~~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:332:28: note: in instantiation of template class '__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>' requested here
  constexpr size_t kSize = Impl::SIZE;
                           ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:301:8: note: in instantiation of member function '__llvm_libc_20_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
struct TestCreator<TemplatedTestClass, Head, Tail...>
       ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:332:32: error: incomplete definition of type '__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  constexpr size_t kSize = Impl::SIZE;
                           ~~~~^~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:301:8: note: in instantiation of member function '__llvm_libc_20_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
struct TestCreator<TemplatedTestClass, Head, Tail...>
       ^
2 errors generated.
[4015/4312] Building CXX object libc/test/src/wchar/CMakeFiles/libc.test.src.wchar.wcslen_test.__unit__.__build__.dir/wcslen_test.cpp.o
[4016/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.bcmp_test.__unit__.__build__.dir/bcmp_test.cpp.o
[4017/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.bzero_opt_host_test.__unit__.__build__.dir/bzero_test.cpp.o
[4018/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.bcopy_test.__unit__.__build__.dir/bcopy_test.cpp.o
[4019/4312] Building CXX object libc/test/src/wchar/CMakeFiles/libc.test.src.wchar.wctob_test.__unit__.__build__.dir/wctob_test.cpp.o
[4020/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.bzero_test.__unit__.__build__.dir/bzero_test.cpp.o
[4021/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.strcasecmp_test.__unit__.__build__
[4022/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.rindex_test.__unit__.__build__
[4023/4312] Building CXX object libc/test/src/wchar/CMakeFiles/libc.test.src.wchar.btowc_test.__unit__.__build__.dir/btowc_test.cpp.o
[4024/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.index_test.__unit__.__build__
[4025/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.ffsll_test.__unit__.__build__
[4026/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.bcmp_opt_host_test.__unit__.__build__
[4027/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.chdir_test.__build__.dir/chdir_test.cpp.o
[4028/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.access_test.__build__.dir/access_test.cpp.o
[4029/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.ffsl_test.__unit__.__build__
[4030/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.strncasecmp_test.__unit__.__build__
[4031/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.dup3_test.__build__.dir/dup3_test.cpp.o
[4032/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.fchdir_test.__build__.dir/fchdir_test.cpp.o
[4033/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.ftruncate_test.__build__.dir/ftruncate_test.cpp.o
[4034/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.read_write_test.__build__.dir/read_write_test.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 22, 2025

LLVM Buildbot has detected a new failure on builder libc-x86_64-debian running on libc-x86_64-debian while building flang-rt,libc at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[ RUN      ] LlvmLibcMemmoveTest.SizeSweep
[       OK ] LlvmLibcMemmoveTest.SizeSweep (28 ms)
Ran 7 tests.  PASS: 7  FAIL: 0
[4008/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.index_test.__unit__.__build__.dir/index_test.cpp.o
[4009/4312] Running unit test libc.test.src.strings.ffs_test.__unit__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcFfsTest.SimpleFfs
[       OK ] LlvmLibcFfsTest.SimpleFfs (3 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[4010/4312] Building CXX object libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o
FAILED: libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/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 -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG --target=x86_64-unknown-linux-gnu -fpie -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 -std=gnu++17 -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/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:15:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/src/string/memory_utils/op_generic.h:397:3: error: static_assert failed due to requirement 'is_element_type_v<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  static_assert(is_element_type_v<T>);
  ^             ~~~~~~~~~~~~~~~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:332:28: note: in instantiation of template class '__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>' requested here
  constexpr size_t kSize = Impl::SIZE;
                           ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/UnitTest/LibcTest.h:301:8: note: in instantiation of member function '__llvm_libc_20_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
struct TestCreator<TemplatedTestClass, Head, Tail...>
       ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:332:32: error: incomplete definition of type '__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  constexpr size_t kSize = Impl::SIZE;
                           ~~~~^~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/UnitTest/LibcTest.h:301:8: note: in instantiation of member function '__llvm_libc_20_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
struct TestCreator<TemplatedTestClass, Head, Tail...>
       ^
2 errors generated.
[4011/4312] Linking CXX executable libc/test/src/string/libc.test.src.string.memmove_test.__unit__.__build__
[4012/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.rindex_test.__unit__.__build__.dir/rindex_test.cpp.o
[4013/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.ffsl_test.__unit__.__build__
[4014/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.ffsll_test.__unit__.__build__
[4015/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.strncasecmp_test.__unit__.__build__.dir/strncasecmp_test.cpp.o
[4016/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.strcasecmp_test.__unit__.__build__
[4017/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.bcopy_test.__unit__.__build__
[4018/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.index_test.__unit__.__build__
[4019/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.bcmp_opt_host_test.__unit__.__build__.dir/bcmp_test.cpp.o
[4020/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.bcmp_test.__unit__.__build__.dir/bcmp_test.cpp.o
[4021/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.bzero_opt_host_test.__unit__.__build__.dir/bzero_test.cpp.o
[4022/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.bzero_test.__unit__.__build__.dir/bzero_test.cpp.o
[4023/4312] Building CXX object libc/test/src/wchar/CMakeFiles/libc.test.src.wchar.wcslen_test.__unit__.__build__.dir/wcslen_test.cpp.o
[4024/4312] Building CXX object libc/test/src/wchar/CMakeFiles/libc.test.src.wchar.btowc_test.__unit__.__build__.dir/btowc_test.cpp.o
[4025/4312] Building CXX object libc/test/src/wchar/CMakeFiles/libc.test.src.wchar.wctob_test.__unit__.__build__.dir/wctob_test.cpp.o
[4026/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.linkat_test.__build__.dir/linkat_test.cpp.o
[4027/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.link_test.__build__.dir/link_test.cpp.o
[4028/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.dup_test.__build__.dir/dup_test.cpp.o
[4029/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.pipe_test.__build__.dir/pipe_test.cpp.o
[4030/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.access_test.__build__.dir/access_test.cpp.o
Step 7 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[ RUN      ] LlvmLibcMemmoveTest.SizeSweep
[       OK ] LlvmLibcMemmoveTest.SizeSweep (28 ms)
Ran 7 tests.  PASS: 7  FAIL: 0
[4008/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.index_test.__unit__.__build__.dir/index_test.cpp.o
[4009/4312] Running unit test libc.test.src.strings.ffs_test.__unit__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcFfsTest.SimpleFfs
[       OK ] LlvmLibcFfsTest.SimpleFfs (3 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[4010/4312] Building CXX object libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o
FAILED: libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.utils_test.__unit__.__build__.dir/op_tests.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc -isystem /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/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 -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG --target=x86_64-unknown-linux-gnu -fpie -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 -std=gnu++17 -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/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:15:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/src/string/memory_utils/op_generic.h:397:3: error: static_assert failed due to requirement 'is_element_type_v<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  static_assert(is_element_type_v<T>);
  ^             ~~~~~~~~~~~~~~~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:332:28: note: in instantiation of template class '__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>' requested here
  constexpr size_t kSize = Impl::SIZE;
                           ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/UnitTest/LibcTest.h:301:8: note: in instantiation of member function '__llvm_libc_20_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
struct TestCreator<TemplatedTestClass, Head, Tail...>
       ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/src/string/memory_utils/op_tests.cpp:332:32: error: incomplete definition of type '__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>'
  constexpr size_t kSize = Impl::SIZE;
                           ~~~~^~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian/llvm-project/libc/test/UnitTest/LibcTest.h:301:8: note: in instantiation of member function '__llvm_libc_20_0_0_git::LlvmLibcOpTest_Memcmp<__llvm_libc_20_0_0_git::generic::Memcmp<__attribute__((__vector_size__(2 * sizeof(long long)))) long long>>::Run' requested here
struct TestCreator<TemplatedTestClass, Head, Tail...>
       ^
2 errors generated.
[4011/4312] Linking CXX executable libc/test/src/string/libc.test.src.string.memmove_test.__unit__.__build__
[4012/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.rindex_test.__unit__.__build__.dir/rindex_test.cpp.o
[4013/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.ffsl_test.__unit__.__build__
[4014/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.ffsll_test.__unit__.__build__
[4015/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.strncasecmp_test.__unit__.__build__.dir/strncasecmp_test.cpp.o
[4016/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.strcasecmp_test.__unit__.__build__
[4017/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.bcopy_test.__unit__.__build__
[4018/4312] Linking CXX executable libc/test/src/strings/libc.test.src.strings.index_test.__unit__.__build__
[4019/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.bcmp_opt_host_test.__unit__.__build__.dir/bcmp_test.cpp.o
[4020/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.bcmp_test.__unit__.__build__.dir/bcmp_test.cpp.o
[4021/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.bzero_opt_host_test.__unit__.__build__.dir/bzero_test.cpp.o
[4022/4312] Building CXX object libc/test/src/strings/CMakeFiles/libc.test.src.strings.bzero_test.__unit__.__build__.dir/bzero_test.cpp.o
[4023/4312] Building CXX object libc/test/src/wchar/CMakeFiles/libc.test.src.wchar.wcslen_test.__unit__.__build__.dir/wcslen_test.cpp.o
[4024/4312] Building CXX object libc/test/src/wchar/CMakeFiles/libc.test.src.wchar.btowc_test.__unit__.__build__.dir/btowc_test.cpp.o
[4025/4312] Building CXX object libc/test/src/wchar/CMakeFiles/libc.test.src.wchar.wctob_test.__unit__.__build__.dir/wctob_test.cpp.o
[4026/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.linkat_test.__build__.dir/linkat_test.cpp.o
[4027/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.link_test.__build__.dir/link_test.cpp.o
[4028/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.dup_test.__build__.dir/dup_test.cpp.o
[4029/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.pipe_test.__build__.dir/pipe_test.cpp.o
[4030/4312] Building CXX object libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.access_test.__build__.dir/access_test.cpp.o

@jhuber6
Copy link
Contributor Author

jhuber6 commented Apr 22, 2025

This made things unhappy, I think because the LLVM default triple is always defined while the previous one was only defined for these runtime crossbuilds? We could make a new variable and keep them distinct or something.

IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
…T_TRIPLE` (llvm#136208)

Summary:
For purposes of determining the triple, it's more correct to use
`LLVM_DEFAULT_TARGET_TRIPLE`.
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
…LT_TARGET_TRIPLE` (llvm#136208)"

This reverts commit 2e145f1.

Somehow causes some static assertions to fail?
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
…T_TRIPLE` (llvm#136208)

Summary:
For purposes of determining the triple, it's more correct to use
`LLVM_DEFAULT_TARGET_TRIPLE`.
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
…LT_TARGET_TRIPLE` (llvm#136208)"

This reverts commit 2e145f1.

Somehow causes some static assertions to fail?
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
…T_TRIPLE` (llvm#136208)

Summary:
For purposes of determining the triple, it's more correct to use
`LLVM_DEFAULT_TARGET_TRIPLE`.
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
…LT_TARGET_TRIPLE` (llvm#136208)"

This reverts commit 2e145f1.

Somehow causes some static assertions to fail?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants