Skip to content

Revert "[libc] Fix stdio tests after #143802" #143824

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
Jun 12, 2025

Conversation

Kewen12
Copy link
Contributor

@Kewen12 Kewen12 commented Jun 12, 2025

Reverts #143810

This PR breaks our buildbot: https://lab.llvm.org/buildbot/#/builders/10/builds/7159 revert to unblock downstream merge.

@llvmbot llvmbot added the libc label Jun 12, 2025
@llvmbot
Copy link
Member

llvmbot commented Jun 12, 2025

@llvm/pr-subscribers-libc

Author: None (Kewen12)

Changes

Reverts llvm/llvm-project#143810

This PR breaks our buildbot: https://lab.llvm.org/buildbot/#/builders/10/builds/7159 revert to unblock downstream merge.


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

5 Files Affected:

  • (modified) libc/docs/configure.rst (+1-1)
  • (modified) libc/test/src/stdio/fgetc_test.cpp (-1)
  • (modified) libc/test/src/stdio/fgetc_unlocked_test.cpp (-1)
  • (modified) libc/test/src/stdio/fgets_test.cpp (-1)
  • (modified) libc/test/src/stdio/setvbuf_test.cpp (-1)
diff --git a/libc/docs/configure.rst b/libc/docs/configure.rst
index 109412225634f..8d53390ae19bf 100644
--- a/libc/docs/configure.rst
+++ b/libc/docs/configure.rst
@@ -29,7 +29,7 @@ to learn about the defaults for your platform and target.
     - ``LIBC_CONF_ENABLE_STRONG_STACK_PROTECTOR``: Enable -fstack-protector-strong to defend against stack smashing attack.
     - ``LIBC_CONF_KEEP_FRAME_POINTER``: Keep frame pointer in functions for better debugging experience.
 * **"errno" options**
-    - ``LIBC_CONF_ERRNO_MODE``: The implementation used for errno, acceptable values are LIBC_ERRNO_MODE_DEFAULT, LIBC_ERRNO_MODE_UNDEFINED, LIBC_ERRNO_MODE_THREAD_LOCAL, LIBC_ERRNO_MODE_SHARED, LIBC_ERRNO_MODE_EXTERNAL, LIBC_ERRNO_MODE_SYSTEM, and LIBC_ERRNO_MODE_SYSTEM_INLINE.
+    - ``LIBC_CONF_ERRNO_MODE``: The implementation used for errno, acceptable values are LIBC_ERRNO_MODE_DEFAULT, LIBC_ERRNO_MODE_UNDEFINED, LIBC_ERRNO_MODE_THREAD_LOCAL, LIBC_ERRNO_MODE_SHARED, LIBC_ERRNO_MODE_EXTERNAL, and LIBC_ERRNO_MODE_SYSTEM.
 * **"general" options**
     - ``LIBC_ADD_NULL_CHECKS``: Add nullptr checks in the library's implementations to some functions for which passing nullptr is undefined behavior.
 * **"math" options**
diff --git a/libc/test/src/stdio/fgetc_test.cpp b/libc/test/src/stdio/fgetc_test.cpp
index 1faa49112fb63..7c652f666a8f3 100644
--- a/libc/test/src/stdio/fgetc_test.cpp
+++ b/libc/test/src/stdio/fgetc_test.cpp
@@ -33,7 +33,6 @@ class LlvmLibcGetcTest : public LIBC_NAMESPACE::testing::ErrnoCheckingTest {
     // This is an error and not a real EOF.
     ASSERT_EQ(LIBC_NAMESPACE::feof(file), 0);
     ASSERT_NE(LIBC_NAMESPACE::ferror(file), 0);
-    ASSERT_ERRNO_FAILURE();
 
     ASSERT_EQ(0, LIBC_NAMESPACE::fclose(file));
 
diff --git a/libc/test/src/stdio/fgetc_unlocked_test.cpp b/libc/test/src/stdio/fgetc_unlocked_test.cpp
index 7b2efe642fb5e..f4471dd82df15 100644
--- a/libc/test/src/stdio/fgetc_unlocked_test.cpp
+++ b/libc/test/src/stdio/fgetc_unlocked_test.cpp
@@ -36,7 +36,6 @@ class LlvmLibcGetcTest : public LIBC_NAMESPACE::testing::ErrnoCheckingTest {
     // This is an error and not a real EOF.
     ASSERT_EQ(LIBC_NAMESPACE::feof(file), 0);
     ASSERT_NE(LIBC_NAMESPACE::ferror(file), 0);
-    ASSERT_ERRNO_FAILURE();
 
     ASSERT_EQ(0, LIBC_NAMESPACE::fclose(file));
 
diff --git a/libc/test/src/stdio/fgets_test.cpp b/libc/test/src/stdio/fgets_test.cpp
index 2d7c68d490811..c00a9256af52d 100644
--- a/libc/test/src/stdio/fgets_test.cpp
+++ b/libc/test/src/stdio/fgets_test.cpp
@@ -36,7 +36,6 @@ TEST_F(LlvmLibcFgetsTest, WriteAndReadCharacters) {
   // This is an error and not a real EOF.
   ASSERT_EQ(LIBC_NAMESPACE::feof(file), 0);
   ASSERT_NE(LIBC_NAMESPACE::ferror(file), 0);
-  ASSERT_ERRNO_FAILURE();
 
   ASSERT_EQ(0, LIBC_NAMESPACE::fclose(file));
 
diff --git a/libc/test/src/stdio/setvbuf_test.cpp b/libc/test/src/stdio/setvbuf_test.cpp
index a0936ba79ef73..4144bc1bef447 100644
--- a/libc/test/src/stdio/setvbuf_test.cpp
+++ b/libc/test/src/stdio/setvbuf_test.cpp
@@ -11,7 +11,6 @@
 #include "src/stdio/fread.h"
 #include "src/stdio/fwrite.h"
 #include "src/stdio/setvbuf.h"
-#include "test/UnitTest/ErrnoCheckingTest.h"
 #include "test/UnitTest/Test.h"
 
 #include "hdr/stdio_macros.h"

@ronlieb ronlieb self-requested a review June 12, 2025 03:23
@ronlieb ronlieb merged commit a71210e into llvm:main Jun 12, 2025
16 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 12, 2025

LLVM Buildbot has detected a new failure on builder libc-riscv32-qemu-yocto-fullbuild-dbg running on rv32gc-qemu-system while building libc at step 4 "annotate".

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

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)
...
-- Build files have been written to: /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build
@@@BUILD_STEP build libc@@@
Running: ninja libc
ninja: no work to do.
@@@BUILD_STEP build libc-startup@@@
Running: ninja libc-startup
ninja: no work to do.
@@@BUILD_STEP libc-unit-tests@@@
Running: ninja libc-unit-tests
[1/1022] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o
FAILED: libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o 
/usr/local/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_21_0_0_git -D_DEBUG -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc -isystem /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/libc/include -mabi=ilp32d -march=rv32imafdc --target=riscv32-unknown-linux-gnu --sysroot=/opt/riscv/sysroot --gcc-toolchain=/opt/riscv -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g -std=gnu++17 --target=riscv32-unknown-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ffixed-point -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 -MD -MT libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o -MF libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o.d -o libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o -c /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:18:54: error: no type named 'ErrnoCheckingTest' in namespace '__llvm_libc_21_0_0_git::testing'
   18 | using LlvmLibcSetvbufTest = LIBC_NAMESPACE::testing::ErrnoCheckingTest;
      |                             ~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:8: error: expected class name
   20 | TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
      |        ^
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: only virtual member functions can be marked 'override'
   20 | TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
      | ^
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:397:16: note: expanded from macro 'TEST_F'
  397 |     void Run() override;                                                       \
      |                ^
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: only virtual member functions can be marked 'override'
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:398:33: note: expanded from macro 'TEST_F'
  398 |     const char *getName() const override { return #SuiteClass "." #TestName; } \
      |                                 ^
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: use of undeclared identifier 'addTest'
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:396:33: note: expanded from macro 'TEST_F'
  396 |     SuiteClass##_##TestName() { addTest(this); }                               \
      |                                 ^
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:28:3: error: no matching function for call to 'test'
   28 |   ASSERT_FALSE(fw == nullptr);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:462:27: note: expanded from macro 'ASSERT_FALSE'
  462 | #define ASSERT_FALSE(VAL) ASSERT_EQ(VAL, false)
      |                           ^~~~~~~~~~~~~~~~~~~~~
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:438:29: note: expanded from macro 'ASSERT_EQ'
  438 | #define ASSERT_EQ(LHS, RHS) LIBC_TEST_BINOP_(EQ, LHS, RHS, return)
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:430:26: note: expanded from macro 'LIBC_TEST_BINOP_'
  430 |   LIBC_TEST_SCAFFOLDING_(test(LIBC_NAMESPACE::testing::TestCond::COND, LHS,    \
      |                          ^~~~
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:423:7: note: expanded from macro 'LIBC_TEST_SCAFFOLDING_'
  423 |   if (TEST)                                                                    \
      |       ^~~~
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:99:6: note: candidate function template not viable: requires 7 arguments, but 6 were provided
   99 | bool test(RunContext *Ctx, TestCond Cond, ValType LHS, ValType RHS,
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
@@@BUILD_STEP libc-unit-tests@@@
Running: ninja libc-unit-tests
[1/1022] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o
FAILED: libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o 
/usr/local/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_21_0_0_git -D_DEBUG -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc -isystem /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/libc/include -mabi=ilp32d -march=rv32imafdc --target=riscv32-unknown-linux-gnu --sysroot=/opt/riscv/sysroot --gcc-toolchain=/opt/riscv -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g -std=gnu++17 --target=riscv32-unknown-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ffixed-point -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 -MD -MT libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o -MF libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o.d -o libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o -c /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:18:54: error: no type named 'ErrnoCheckingTest' in namespace '__llvm_libc_21_0_0_git::testing'
   18 | using LlvmLibcSetvbufTest = LIBC_NAMESPACE::testing::ErrnoCheckingTest;
      |                             ~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:8: error: expected class name
   20 | TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
      |        ^
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: only virtual member functions can be marked 'override'
   20 | TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
      | ^
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:397:16: note: expanded from macro 'TEST_F'
  397 |     void Run() override;                                                       \
      |                ^
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: only virtual member functions can be marked 'override'
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:398:33: note: expanded from macro 'TEST_F'
  398 |     const char *getName() const override { return #SuiteClass "." #TestName; } \
      |                                 ^
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: use of undeclared identifier 'addTest'
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:396:33: note: expanded from macro 'TEST_F'
  396 |     SuiteClass##_##TestName() { addTest(this); }                               \
      |                                 ^
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:28:3: error: no matching function for call to 'test'
   28 |   ASSERT_FALSE(fw == nullptr);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:462:27: note: expanded from macro 'ASSERT_FALSE'
  462 | #define ASSERT_FALSE(VAL) ASSERT_EQ(VAL, false)
      |                           ^~~~~~~~~~~~~~~~~~~~~
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:438:29: note: expanded from macro 'ASSERT_EQ'
  438 | #define ASSERT_EQ(LHS, RHS) LIBC_TEST_BINOP_(EQ, LHS, RHS, return)
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:430:26: note: expanded from macro 'LIBC_TEST_BINOP_'
  430 |   LIBC_TEST_SCAFFOLDING_(test(LIBC_NAMESPACE::testing::TestCond::COND, LHS,    \
      |                          ^~~~
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:423:7: note: expanded from macro 'LIBC_TEST_SCAFFOLDING_'
  423 |   if (TEST)                                                                    \
      |       ^~~~
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:99:6: note: candidate function template not viable: requires 7 arguments, but 6 were provided
   99 | bool test(RunContext *Ctx, TestCond Cond, ValType LHS, ValType RHS,
      |      ^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  100 |           const char *LHSStr, const char *RHSStr, Location Loc);
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:30:3: error: no matching function for call to 'test'
   30 |   ASSERT_EQ(LIBC_NAMESPACE::setvbuf(fw, buffer, _IONBF, BUFSIZ), 0);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:438:29: note: expanded from macro 'ASSERT_EQ'
  438 | #define ASSERT_EQ(LHS, RHS) LIBC_TEST_BINOP_(EQ, LHS, RHS, return)

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 12, 2025

LLVM Buildbot has detected a new failure on builder libc-aarch64-ubuntu-fullbuild-dbg running on libc-aarch64-ubuntu while building libc at step 4 "annotate".

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

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 ] LlvmLibcGetPayloadTest.NaNs (4 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[389/920] Running unit test libc.test.src.math.smoke.exp2f_test.__unit__.__NO_ROUND_OPT
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcExp2fTest.SpecialNumbers
[       OK ] LlvmLibcExp2fTest.SpecialNumbers (15 us)
[ RUN      ] LlvmLibcExp2fTest.Overflow
[       OK ] LlvmLibcExp2fTest.Overflow (3 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[390/920] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o
FAILED: libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc -isystem 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 -fdiagnostics-color -g -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -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/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o -MF libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o.d -o libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:18:54: error: no type named 'ErrnoCheckingTest' in namespace '__llvm_libc_20_0_0_git::testing'
using LlvmLibcSetvbufTest = LIBC_NAMESPACE::testing::ErrnoCheckingTest;
                            ~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:8: error: expected class name
TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
       ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: only virtual member functions can be marked 'override'
TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:397:16: note: expanded from macro 'TEST_F'
    void Run() override;                                                       \
               ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: only virtual member functions can be marked 'override'
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:398:33: note: expanded from macro 'TEST_F'
    const char *getName() const override { return #SuiteClass "." #TestName; } \
                                ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: use of undeclared identifier 'addTest'
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:396:33: note: expanded from macro 'TEST_F'
    SuiteClass##_##TestName() { addTest(this); }                               \
                                ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:28:3: error: no matching function for call to 'test'
  ASSERT_FALSE(fw == nullptr);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:462:27: note: expanded from macro 'ASSERT_FALSE'
#define ASSERT_FALSE(VAL) ASSERT_EQ(VAL, false)
                          ^~~~~~~~~~~~~~~~~~~~~
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:438:29: note: expanded from macro 'ASSERT_EQ'
#define ASSERT_EQ(LHS, RHS) LIBC_TEST_BINOP_(EQ, LHS, RHS, return)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:430:26: note: expanded from macro 'LIBC_TEST_BINOP_'
  LIBC_TEST_SCAFFOLDING_(test(LIBC_NAMESPACE::testing::TestCond::COND, LHS,    \
                         ^~~~
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:423:7: note: expanded from macro 'LIBC_TEST_SCAFFOLDING_'
  if (TEST)                                                                    \
      ^~~~
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:99:6: note: candidate function template not viable: requires 7 arguments, but 6 were provided
bool test(RunContext *Ctx, TestCond Cond, ValType LHS, ValType RHS,
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[       OK ] LlvmLibcGetPayloadTest.NaNs (4 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[389/920] Running unit test libc.test.src.math.smoke.exp2f_test.__unit__.__NO_ROUND_OPT
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcExp2fTest.SpecialNumbers
[       OK ] LlvmLibcExp2fTest.SpecialNumbers (15 us)
[ RUN      ] LlvmLibcExp2fTest.Overflow
[       OK ] LlvmLibcExp2fTest.Overflow (3 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[390/920] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o
FAILED: libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc -isystem 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 -fdiagnostics-color -g -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -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/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o -MF libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o.d -o libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:18:54: error: no type named 'ErrnoCheckingTest' in namespace '__llvm_libc_20_0_0_git::testing'
using LlvmLibcSetvbufTest = LIBC_NAMESPACE::testing::ErrnoCheckingTest;
                            ~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:8: error: expected class name
TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
       ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: only virtual member functions can be marked 'override'
TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:397:16: note: expanded from macro 'TEST_F'
    void Run() override;                                                       \
               ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: only virtual member functions can be marked 'override'
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:398:33: note: expanded from macro 'TEST_F'
    const char *getName() const override { return #SuiteClass "." #TestName; } \
                                ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: use of undeclared identifier 'addTest'
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:396:33: note: expanded from macro 'TEST_F'
    SuiteClass##_##TestName() { addTest(this); }                               \
                                ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:28:3: error: no matching function for call to 'test'
  ASSERT_FALSE(fw == nullptr);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:462:27: note: expanded from macro 'ASSERT_FALSE'
#define ASSERT_FALSE(VAL) ASSERT_EQ(VAL, false)
                          ^~~~~~~~~~~~~~~~~~~~~
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:438:29: note: expanded from macro 'ASSERT_EQ'
#define ASSERT_EQ(LHS, RHS) LIBC_TEST_BINOP_(EQ, LHS, RHS, return)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:430:26: note: expanded from macro 'LIBC_TEST_BINOP_'
  LIBC_TEST_SCAFFOLDING_(test(LIBC_NAMESPACE::testing::TestCond::COND, LHS,    \
                         ^~~~
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:423:7: note: expanded from macro 'LIBC_TEST_SCAFFOLDING_'
  if (TEST)                                                                    \
      ^~~~
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:99:6: note: candidate function template not viable: requires 7 arguments, but 6 were provided
bool test(RunContext *Ctx, TestCond Cond, ValType LHS, ValType RHS,

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 12, 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 libc at step 4 "annotate".

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

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)
...
[1180/1192] Running unit test libc.test.src.math.smoke.llrintf128_test.__unit__
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcRoundToIntegerTest.InfinityAndNaN
[       OK ] LlvmLibcRoundToIntegerTest.InfinityAndNaN (10 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.RoundNumbers
[       OK ] LlvmLibcRoundToIntegerTest.RoundNumbers (19 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.SubnormalRange
[       OK ] LlvmLibcRoundToIntegerTest.SubnormalRange (2363 ms)
Ran 3 tests.  PASS: 3  FAIL: 0
[1181/1192] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o
FAILED: libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.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 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -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/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o -MF libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o.d -o libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.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/stdio/setvbuf_test.cpp
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:18:54: error: ‘ErrnoCheckingTest’ in namespace ‘__llvm_libc_20_0_0_git::testing’ does not name a type
   18 | using LlvmLibcSetvbufTest = LIBC_NAMESPACE::testing::ErrnoCheckingTest;
      |                                                      ^~~~~~~~~~~~~~~~~
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/UnitTest/Test.h:37,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:14:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:394:53: error: expected class-name before ‘{’ token
  394 |   class SuiteClass##_##TestName : public SuiteClass {                          \
      |                                                     ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: note: in expansion of macro ‘TEST_F’
   20 | TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
      | ^~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:397:10: error: ‘void LlvmLibcSetvbufTest_SetNBFBuffer::Run()’ marked ‘override’, but does not override
  397 |     void Run() override;                                                       \
      |          ^~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: note: in expansion of macro ‘TEST_F’
   20 | TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
      | ^~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:398:17: error: ‘const char* LlvmLibcSetvbufTest_SetNBFBuffer::getName() const’ marked ‘override’, but does not override
  398 |     const char *getName() const override { return #SuiteClass "." #TestName; } \
      |                 ^~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: note: in expansion of macro ‘TEST_F’
   20 | TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
      | ^~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp: In constructor ‘LlvmLibcSetvbufTest_SetNBFBuffer::LlvmLibcSetvbufTest_SetNBFBuffer()’:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:396:33: error: ‘addTest’ was not declared in this scope
  396 |     SuiteClass##_##TestName() { addTest(this); }                               \
      |                                 ^~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: note: in expansion of macro ‘TEST_F’
   20 | TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
      | ^~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp: In member function ‘void LlvmLibcSetvbufTest_SetNBFBuffer::Run()’:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:430:30: error: no matching function for call to ‘test(__llvm_libc_20_0_0_git::testing::TestCond, bool, bool, const char [14], const char [6], __llvm_libc_20_0_0_git::testing::internal::Location)’
  430 |   LIBC_TEST_SCAFFOLDING_(test(LIBC_NAMESPACE::testing::TestCond::COND, LHS,    \
      |                          ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  431 |                               RHS, #LHS, #RHS, LIBC_TEST_LOC_()),              \
      |                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:423:7: note: in definition of macro ‘LIBC_TEST_SCAFFOLDING_’
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[1180/1192] Running unit test libc.test.src.math.smoke.llrintf128_test.__unit__
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcRoundToIntegerTest.InfinityAndNaN
[       OK ] LlvmLibcRoundToIntegerTest.InfinityAndNaN (10 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.RoundNumbers
[       OK ] LlvmLibcRoundToIntegerTest.RoundNumbers (19 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.SubnormalRange
[       OK ] LlvmLibcRoundToIntegerTest.SubnormalRange (2363 ms)
Ran 3 tests.  PASS: 3  FAIL: 0
[1181/1192] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o
FAILED: libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.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 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -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/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o -MF libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o.d -o libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.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/stdio/setvbuf_test.cpp
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:18:54: error: ‘ErrnoCheckingTest’ in namespace ‘__llvm_libc_20_0_0_git::testing’ does not name a type
   18 | using LlvmLibcSetvbufTest = LIBC_NAMESPACE::testing::ErrnoCheckingTest;
      |                                                      ^~~~~~~~~~~~~~~~~
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/UnitTest/Test.h:37,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:14:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:394:53: error: expected class-name before ‘{’ token
  394 |   class SuiteClass##_##TestName : public SuiteClass {                          \
      |                                                     ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: note: in expansion of macro ‘TEST_F’
   20 | TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
      | ^~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:397:10: error: ‘void LlvmLibcSetvbufTest_SetNBFBuffer::Run()’ marked ‘override’, but does not override
  397 |     void Run() override;                                                       \
      |          ^~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: note: in expansion of macro ‘TEST_F’
   20 | TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
      | ^~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:398:17: error: ‘const char* LlvmLibcSetvbufTest_SetNBFBuffer::getName() const’ marked ‘override’, but does not override
  398 |     const char *getName() const override { return #SuiteClass "." #TestName; } \
      |                 ^~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: note: in expansion of macro ‘TEST_F’
   20 | TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
      | ^~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp: In constructor ‘LlvmLibcSetvbufTest_SetNBFBuffer::LlvmLibcSetvbufTest_SetNBFBuffer()’:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:396:33: error: ‘addTest’ was not declared in this scope
  396 |     SuiteClass##_##TestName() { addTest(this); }                               \
      |                                 ^~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: note: in expansion of macro ‘TEST_F’
   20 | TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
      | ^~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp: In member function ‘void LlvmLibcSetvbufTest_SetNBFBuffer::Run()’:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:430:30: error: no matching function for call to ‘test(__llvm_libc_20_0_0_git::testing::TestCond, bool, bool, const char [14], const char [6], __llvm_libc_20_0_0_git::testing::internal::Location)’
  430 |   LIBC_TEST_SCAFFOLDING_(test(LIBC_NAMESPACE::testing::TestCond::COND, LHS,    \
      |                          ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  431 |                               RHS, #LHS, #RHS, LIBC_TEST_LOC_()),              \
      |                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:423:7: note: in definition of macro ‘LIBC_TEST_SCAFFOLDING_’

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 12, 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 libc at step 4 "annotate".

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

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 ] LlvmLibcFStatTest.NonExistentFile (7 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[1088/1191] Running unit test libc.test.src.sys.stat.fchmodat_test
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcFchmodatTest.ChangeAndOpen
[       OK ] LlvmLibcFchmodatTest.ChangeAndOpen (107 us)
[ RUN      ] LlvmLibcFchmodatTest.NonExistentFile
[       OK ] LlvmLibcFchmodatTest.NonExistentFile (6 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[1089/1191] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o
FAILED: libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.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 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -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/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o -MF libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o.d -o libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.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/stdio/setvbuf_test.cpp
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:18:54: error: no type named 'ErrnoCheckingTest' in namespace '__llvm_libc_20_0_0_git::testing'
using LlvmLibcSetvbufTest = LIBC_NAMESPACE::testing::ErrnoCheckingTest;
                            ~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:8: error: expected class name
TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
       ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: only virtual member functions can be marked 'override'
TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
^
/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:397:16: note: expanded from macro 'TEST_F'
    void Run() override;                                                       \
               ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: only virtual member functions can be marked 'override'
/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:398:33: note: expanded from macro 'TEST_F'
    const char *getName() const override { return #SuiteClass "." #TestName; } \
                                ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: use of undeclared identifier 'addTest'
/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:396:33: note: expanded from macro 'TEST_F'
    SuiteClass##_##TestName() { addTest(this); }                               \
                                ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:28:3: error: no matching function for call to 'test'
  ASSERT_FALSE(fw == nullptr);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/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:462:27: note: expanded from macro 'ASSERT_FALSE'
#define ASSERT_FALSE(VAL) ASSERT_EQ(VAL, false)
                          ^~~~~~~~~~~~~~~~~~~~~
/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:438:29: note: expanded from macro 'ASSERT_EQ'
#define ASSERT_EQ(LHS, RHS) LIBC_TEST_BINOP_(EQ, LHS, RHS, return)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/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:430:26: note: expanded from macro 'LIBC_TEST_BINOP_'
  LIBC_TEST_SCAFFOLDING_(test(LIBC_NAMESPACE::testing::TestCond::COND, LHS,    \
                         ^~~~
/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:423:7: note: expanded from macro 'LIBC_TEST_SCAFFOLDING_'
  if (TEST)                                                                    \
      ^~~~
/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:99:6: note: candidate function template not viable: requires 7 arguments, but 6 were provided
bool test(RunContext *Ctx, TestCond Cond, ValType LHS, ValType RHS,
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[       OK ] LlvmLibcFStatTest.NonExistentFile (7 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[1088/1191] Running unit test libc.test.src.sys.stat.fchmodat_test
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcFchmodatTest.ChangeAndOpen
[       OK ] LlvmLibcFchmodatTest.ChangeAndOpen (107 us)
[ RUN      ] LlvmLibcFchmodatTest.NonExistentFile
[       OK ] LlvmLibcFchmodatTest.NonExistentFile (6 us)
Ran 2 tests.  PASS: 2  FAIL: 0
[1089/1191] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o
FAILED: libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.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 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -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/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o -MF libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o.d -o libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.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/stdio/setvbuf_test.cpp
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:18:54: error: no type named 'ErrnoCheckingTest' in namespace '__llvm_libc_20_0_0_git::testing'
using LlvmLibcSetvbufTest = LIBC_NAMESPACE::testing::ErrnoCheckingTest;
                            ~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:8: error: expected class name
TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
       ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: only virtual member functions can be marked 'override'
TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
^
/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:397:16: note: expanded from macro 'TEST_F'
    void Run() override;                                                       \
               ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: only virtual member functions can be marked 'override'
/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:398:33: note: expanded from macro 'TEST_F'
    const char *getName() const override { return #SuiteClass "." #TestName; } \
                                ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: use of undeclared identifier 'addTest'
/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:396:33: note: expanded from macro 'TEST_F'
    SuiteClass##_##TestName() { addTest(this); }                               \
                                ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:28:3: error: no matching function for call to 'test'
  ASSERT_FALSE(fw == nullptr);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/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:462:27: note: expanded from macro 'ASSERT_FALSE'
#define ASSERT_FALSE(VAL) ASSERT_EQ(VAL, false)
                          ^~~~~~~~~~~~~~~~~~~~~
/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:438:29: note: expanded from macro 'ASSERT_EQ'
#define ASSERT_EQ(LHS, RHS) LIBC_TEST_BINOP_(EQ, LHS, RHS, return)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/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:430:26: note: expanded from macro 'LIBC_TEST_BINOP_'
  LIBC_TEST_SCAFFOLDING_(test(LIBC_NAMESPACE::testing::TestCond::COND, LHS,    \
                         ^~~~
/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:423:7: note: expanded from macro 'LIBC_TEST_SCAFFOLDING_'
  if (TEST)                                                                    \
      ^~~~
/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:99:6: note: candidate function template not viable: requires 7 arguments, but 6 were provided
bool test(RunContext *Ctx, TestCond Cond, ValType LHS, ValType RHS,

@jhuber6
Copy link
Contributor

jhuber6 commented Jun 12, 2025

Wasn't fast enough to warn you, but there was a follow-up patch that this didn't revert...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 12, 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 libc at step 4 "annotate".

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

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      ] LlvmLibcStrtoumaxTest.DecodeInOtherBases
[       OK ] LlvmLibcStrtoumaxTest.DecodeInOtherBases (451 ms)
[ RUN      ] LlvmLibcStrtoumaxTest.CleanBaseSixteenDecode
[       OK ] LlvmLibcStrtoumaxTest.CleanBaseSixteenDecode (9 us)
[ RUN      ] LlvmLibcStrtoumaxTest.MessyBaseSixteenDecode
[       OK ] LlvmLibcStrtoumaxTest.MessyBaseSixteenDecode (3 us)
[ RUN      ] LlvmLibcStrtoumaxTest.AutomaticBaseSelection
[       OK ] LlvmLibcStrtoumaxTest.AutomaticBaseSelection (4 us)
Ran 7 tests.  PASS: 7  FAIL: 0
[1175/1196] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o
FAILED: libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.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 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -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/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o -MF libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o.d -o libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.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/stdio/setvbuf_test.cpp
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:18:54: error: no type named 'ErrnoCheckingTest' in namespace '__llvm_libc_20_0_0_git::testing'
using LlvmLibcSetvbufTest = LIBC_NAMESPACE::testing::ErrnoCheckingTest;
                            ~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:8: error: expected class name
TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
       ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: only virtual member functions can be marked 'override'
TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:397:16: note: expanded from macro 'TEST_F'
    void Run() override;                                                       \
               ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: only virtual member functions can be marked 'override'
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:398:33: note: expanded from macro 'TEST_F'
    const char *getName() const override { return #SuiteClass "." #TestName; } \
                                ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: use of undeclared identifier 'addTest'
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:396:33: note: expanded from macro 'TEST_F'
    SuiteClass##_##TestName() { addTest(this); }                               \
                                ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:28:3: error: no matching function for call to 'test'
  ASSERT_FALSE(fw == nullptr);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:462:27: note: expanded from macro 'ASSERT_FALSE'
#define ASSERT_FALSE(VAL) ASSERT_EQ(VAL, false)
                          ^~~~~~~~~~~~~~~~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:438:29: note: expanded from macro 'ASSERT_EQ'
#define ASSERT_EQ(LHS, RHS) LIBC_TEST_BINOP_(EQ, LHS, RHS, return)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:430:26: note: expanded from macro 'LIBC_TEST_BINOP_'
  LIBC_TEST_SCAFFOLDING_(test(LIBC_NAMESPACE::testing::TestCond::COND, LHS,    \
                         ^~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:423:7: note: expanded from macro 'LIBC_TEST_SCAFFOLDING_'
  if (TEST)                                                                    \
      ^~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:99:6: note: candidate function template not viable: requires 7 arguments, but 6 were provided
bool test(RunContext *Ctx, TestCond Cond, ValType LHS, ValType RHS,
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[ RUN      ] LlvmLibcStrtoumaxTest.DecodeInOtherBases
[       OK ] LlvmLibcStrtoumaxTest.DecodeInOtherBases (451 ms)
[ RUN      ] LlvmLibcStrtoumaxTest.CleanBaseSixteenDecode
[       OK ] LlvmLibcStrtoumaxTest.CleanBaseSixteenDecode (9 us)
[ RUN      ] LlvmLibcStrtoumaxTest.MessyBaseSixteenDecode
[       OK ] LlvmLibcStrtoumaxTest.MessyBaseSixteenDecode (3 us)
[ RUN      ] LlvmLibcStrtoumaxTest.AutomaticBaseSelection
[       OK ] LlvmLibcStrtoumaxTest.AutomaticBaseSelection (4 us)
Ran 7 tests.  PASS: 7  FAIL: 0
[1175/1196] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o
FAILED: libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.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 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -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/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o -MF libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o.d -o libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.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/stdio/setvbuf_test.cpp
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:18:54: error: no type named 'ErrnoCheckingTest' in namespace '__llvm_libc_20_0_0_git::testing'
using LlvmLibcSetvbufTest = LIBC_NAMESPACE::testing::ErrnoCheckingTest;
                            ~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:8: error: expected class name
TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
       ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: only virtual member functions can be marked 'override'
TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:397:16: note: expanded from macro 'TEST_F'
    void Run() override;                                                       \
               ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: only virtual member functions can be marked 'override'
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:398:33: note: expanded from macro 'TEST_F'
    const char *getName() const override { return #SuiteClass "." #TestName; } \
                                ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: use of undeclared identifier 'addTest'
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:396:33: note: expanded from macro 'TEST_F'
    SuiteClass##_##TestName() { addTest(this); }                               \
                                ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:28:3: error: no matching function for call to 'test'
  ASSERT_FALSE(fw == nullptr);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:462:27: note: expanded from macro 'ASSERT_FALSE'
#define ASSERT_FALSE(VAL) ASSERT_EQ(VAL, false)
                          ^~~~~~~~~~~~~~~~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:438:29: note: expanded from macro 'ASSERT_EQ'
#define ASSERT_EQ(LHS, RHS) LIBC_TEST_BINOP_(EQ, LHS, RHS, return)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:430:26: note: expanded from macro 'LIBC_TEST_BINOP_'
  LIBC_TEST_SCAFFOLDING_(test(LIBC_NAMESPACE::testing::TestCond::COND, LHS,    \
                         ^~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:423:7: note: expanded from macro 'LIBC_TEST_SCAFFOLDING_'
  if (TEST)                                                                    \
      ^~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:99:6: note: candidate function template not viable: requires 7 arguments, but 6 were provided
bool test(RunContext *Ctx, TestCond Cond, ValType LHS, ValType RHS,

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 12, 2025

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

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

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      ] LlvmLibcFOpenCookieTest.WriteOnlyCookieTest
[       OK ] LlvmLibcFOpenCookieTest.WriteOnlyCookieTest (28 us)
[ RUN      ] LlvmLibcFOpenCookieTest.AppendOnlyCookieTest
[       OK ] LlvmLibcFOpenCookieTest.AppendOnlyCookieTest (24 us)
[ RUN      ] LlvmLibcFOpenCookieTest.ReadUpdateCookieTest
[       OK ] LlvmLibcFOpenCookieTest.ReadUpdateCookieTest (28 us)
[ RUN      ] LlvmLibcFOpenCookieTest.WriteUpdateCookieTest
[       OK ] LlvmLibcFOpenCookieTest.WriteUpdateCookieTest (22 us)
Ran 5 tests.  PASS: 5  FAIL: 0
[768/1076] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o
FAILED: libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -I/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc -isystem /home/libc_worker/libc-riscv64-debian/libc-riscv64-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 -fdiagnostics-color -g -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -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/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o -MF libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o.d -o libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o -c /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:18:54: error: no type named 'ErrnoCheckingTest' in namespace '__llvm_libc_20_0_0_git::testing'
using LlvmLibcSetvbufTest = LIBC_NAMESPACE::testing::ErrnoCheckingTest;
                            ~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:8: error: expected class name
TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
       ^
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: only virtual member functions can be marked 'override'
TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
^
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:397:16: note: expanded from macro 'TEST_F'
    void Run() override;                                                       \
               ^
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: only virtual member functions can be marked 'override'
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:398:33: note: expanded from macro 'TEST_F'
    const char *getName() const override { return #SuiteClass "." #TestName; } \
                                ^
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: use of undeclared identifier 'addTest'
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:396:33: note: expanded from macro 'TEST_F'
    SuiteClass##_##TestName() { addTest(this); }                               \
                                ^
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:28:3: error: no matching function for call to 'test'
  ASSERT_FALSE(fw == nullptr);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:462:27: note: expanded from macro 'ASSERT_FALSE'
#define ASSERT_FALSE(VAL) ASSERT_EQ(VAL, false)
                          ^~~~~~~~~~~~~~~~~~~~~
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:438:29: note: expanded from macro 'ASSERT_EQ'
#define ASSERT_EQ(LHS, RHS) LIBC_TEST_BINOP_(EQ, LHS, RHS, return)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:430:26: note: expanded from macro 'LIBC_TEST_BINOP_'
  LIBC_TEST_SCAFFOLDING_(test(LIBC_NAMESPACE::testing::TestCond::COND, LHS,    \
                         ^~~~
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:423:7: note: expanded from macro 'LIBC_TEST_SCAFFOLDING_'
  if (TEST)                                                                    \
      ^~~~
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:99:6: note: candidate function template not viable: requires 7 arguments, but 6 were provided
bool test(RunContext *Ctx, TestCond Cond, ValType LHS, ValType RHS,
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[ RUN      ] LlvmLibcFOpenCookieTest.WriteOnlyCookieTest
[       OK ] LlvmLibcFOpenCookieTest.WriteOnlyCookieTest (28 us)
[ RUN      ] LlvmLibcFOpenCookieTest.AppendOnlyCookieTest
[       OK ] LlvmLibcFOpenCookieTest.AppendOnlyCookieTest (24 us)
[ RUN      ] LlvmLibcFOpenCookieTest.ReadUpdateCookieTest
[       OK ] LlvmLibcFOpenCookieTest.ReadUpdateCookieTest (28 us)
[ RUN      ] LlvmLibcFOpenCookieTest.WriteUpdateCookieTest
[       OK ] LlvmLibcFOpenCookieTest.WriteUpdateCookieTest (22 us)
Ran 5 tests.  PASS: 5  FAIL: 0
[768/1076] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o
FAILED: libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -I/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc -isystem /home/libc_worker/libc-riscv64-debian/libc-riscv64-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 -fdiagnostics-color -g -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -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/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o -MF libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o.d -o libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.setvbuf_test.__unit__.__build__.dir/setvbuf_test.cpp.o -c /home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:18:54: error: no type named 'ErrnoCheckingTest' in namespace '__llvm_libc_20_0_0_git::testing'
using LlvmLibcSetvbufTest = LIBC_NAMESPACE::testing::ErrnoCheckingTest;
                            ~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:8: error: expected class name
TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
       ^
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: only virtual member functions can be marked 'override'
TEST_F(LlvmLibcSetvbufTest, SetNBFBuffer) {
^
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:397:16: note: expanded from macro 'TEST_F'
    void Run() override;                                                       \
               ^
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: only virtual member functions can be marked 'override'
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:398:33: note: expanded from macro 'TEST_F'
    const char *getName() const override { return #SuiteClass "." #TestName; } \
                                ^
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:20:1: error: use of undeclared identifier 'addTest'
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:396:33: note: expanded from macro 'TEST_F'
    SuiteClass##_##TestName() { addTest(this); }                               \
                                ^
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/src/stdio/setvbuf_test.cpp:28:3: error: no matching function for call to 'test'
  ASSERT_FALSE(fw == nullptr);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:462:27: note: expanded from macro 'ASSERT_FALSE'
#define ASSERT_FALSE(VAL) ASSERT_EQ(VAL, false)
                          ^~~~~~~~~~~~~~~~~~~~~
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:438:29: note: expanded from macro 'ASSERT_EQ'
#define ASSERT_EQ(LHS, RHS) LIBC_TEST_BINOP_(EQ, LHS, RHS, return)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:430:26: note: expanded from macro 'LIBC_TEST_BINOP_'
  LIBC_TEST_SCAFFOLDING_(test(LIBC_NAMESPACE::testing::TestCond::COND, LHS,    \
                         ^~~~
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:423:7: note: expanded from macro 'LIBC_TEST_SCAFFOLDING_'
  if (TEST)                                                                    \
      ^~~~
/home/libc_worker/libc-riscv64-debian/libc-riscv64-debian-fullbuild-dbg/llvm-project/libc/test/UnitTest/LibcTest.h:99:6: note: candidate function template not viable: requires 7 arguments, but 6 were provided
bool test(RunContext *Ctx, TestCond Cond, ValType LHS, ValType RHS,

@Kewen12
Copy link
Contributor Author

Kewen12 commented Jun 12, 2025

Wasn't fast enough to warn you, but there was a follow-up patch that this didn't revert...

@jhuber6 can you please help revert that one? or shall we re-revert this one and put up a fix? Our bot consistently failed.

@jhuber6
Copy link
Contributor

jhuber6 commented Jun 12, 2025

Wasn't fast enough to warn you, but there was a follow-up patch that this didn't revert...

@jhuber6 can you please help revert that one? or shall we re-revert this one and put up a fix? Our bot consistently failed.

Sorry, I don't have easy access and it's very late for me. Likely you'll need to revert both 1ecd108 and 3c7af17 together.

@vonosmas
Copy link
Contributor

Created #143829 to revert the original patch as well. Apologies for causing this mess, folks! I should've reverted this immediately after the buildbot breakage, instead of trying out a fixup.

tomtor pushed a commit to tomtor/llvm-project that referenced this pull request Jun 14, 2025
akuhlens pushed a commit to akuhlens/llvm-project that referenced this pull request Jun 24, 2025
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.

6 participants