Skip to content
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

[libc][complex] Added support for CFP16 and CFP128 #112594

Merged
merged 4 commits into from
Oct 18, 2024

Conversation

Sh0g0-1758
Copy link
Member

Fixes: #112217

@llvmbot
Copy link
Collaborator

llvmbot commented Oct 16, 2024

@llvm/pr-subscribers-libc

Author: Shourya Goel (Sh0g0-1758)

Changes

Fixes: #112217


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

8 Files Affected:

  • (modified) libc/include/llvm-libc-types/CMakeLists.txt (+8)
  • (added) libc/include/llvm-libc-types/cfloat128.h (+38)
  • (added) libc/include/llvm-libc-types/cfloat16.h (+20)
  • (modified) libc/src/__support/CPP/CMakeLists.txt (+2)
  • (modified) libc/src/__support/CPP/type_traits/is_complex.h (+14-1)
  • (modified) libc/src/__support/macros/properties/CMakeLists.txt (+10)
  • (added) libc/src/__support/macros/properties/complex_types.h (+25)
  • (modified) libc/test/UnitTest/FPMatcher.h (+16)
diff --git a/libc/include/llvm-libc-types/CMakeLists.txt b/libc/include/llvm-libc-types/CMakeLists.txt
index a4cf4631c8470e..836e8a507bd6f2 100644
--- a/libc/include/llvm-libc-types/CMakeLists.txt
+++ b/libc/include/llvm-libc-types/CMakeLists.txt
@@ -134,6 +134,14 @@ add_header(
   DEPENDS
     libc.include.llvm-libc-macros.float_macros
 )
+add_header(
+  cfloat128
+  HDR
+    cfloat128.h
+  DEPENDS
+    libc.include.llvm-libc-macros.float_macros
+)
+add_header(cfloat16 HDR cfloat16.h)
 add_header(fsblkcnt_t HDR fsblkcnt_t.h)
 add_header(fsfilcnt_t HDR fsfilcnt_t.h)
 add_header(
diff --git a/libc/include/llvm-libc-types/cfloat128.h b/libc/include/llvm-libc-types/cfloat128.h
new file mode 100644
index 00000000000000..0cc8ed3041d6f0
--- /dev/null
+++ b/libc/include/llvm-libc-types/cfloat128.h
@@ -0,0 +1,38 @@
+//===-- Definition of cfloat128 type --------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_TYPES_CFLOAT128_H
+#define LLVM_LIBC_TYPES_CFLOAT128_H
+
+#include "../llvm-libc-macros/float-macros.h" // LDBL_MANT_DIG
+
+// Currently, the complex variant of C23 `_Float128` type is only defined as a
+// built-in type in GCC 7 or later, and only for C.  For C++, or for clang,
+// the complex variant of `__float128` is defined instead, and only on x86-64
+// targets.
+//
+// TODO: Update the complex variant of C23 `_Float128` type detection again when
+// clang supports it.
+//   https://github.com/llvm/llvm-project/issues/80195
+#if defined(__STDC_IEC_60559_COMPLEX__) && !defined(__clang__) &&              \
+    !defined(__cplusplus)
+#define LIBC_TYPES_HAS_CFLOAT128
+typedef _Complex _Float128 cfloat128;
+#elif defined(__FLOAT128__) || defined(__SIZEOF_FLOAT128__)
+// Use _Complex __float128 type.  gcc and clang sometime use __SIZEOF_FLOAT128__
+// to notify the availability of __float128. clang also uses __FLOAT128__ macro
+// to notify the availability of __float128 type:
+// https://reviews.llvm.org/D15120
+#define LIBC_TYPES_HAS_CFLOAT128
+typedef _Complex __float128 cfloat128;
+#elif (LDBL_MANT_DIG == 113)
+#define LIBC_TYPES_HAS_CFLOAT128
+typedef _Complex long double cfloat128;
+#endif
+
+#endif // LLVM_LIBC_TYPES_CFLOAT128_H
diff --git a/libc/include/llvm-libc-types/cfloat16.h b/libc/include/llvm-libc-types/cfloat16.h
new file mode 100644
index 00000000000000..e7e5631e025074
--- /dev/null
+++ b/libc/include/llvm-libc-types/cfloat16.h
@@ -0,0 +1,20 @@
+//===-- Definition of cfloat16 type ---------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_TYPES_CFLOAT16_H
+#define LLVM_LIBC_TYPES_CFLOAT16_H
+
+#if defined(__FLT16_MANT_DIG__) &&                                             \
+    (!defined(__GNUC__) || __GNUC__ >= 13 || defined(__clang__)) &&            \
+    !defined(__arm__) && !defined(_M_ARM) && !defined(__riscv) &&              \
+    !defined(_WIN32)
+#define LIBC_TYPES_HAS_CFLOAT16
+typedef _Complex _Float16 cfloat16;
+#endif
+
+#endif // LLVM_LIBC_TYPES_CFLOAT16_H
diff --git a/libc/src/__support/CPP/CMakeLists.txt b/libc/src/__support/CPP/CMakeLists.txt
index c1981b827042ca..774668be42e56d 100644
--- a/libc/src/__support/CPP/CMakeLists.txt
+++ b/libc/src/__support/CPP/CMakeLists.txt
@@ -126,6 +126,7 @@ add_header_library(
     type_traits/is_array.h
     type_traits/is_base_of.h
     type_traits/is_class.h
+    type_traits/is_complex.h
     type_traits/is_const.h
     type_traits/is_constant_evaluated.h
     type_traits/is_convertible.h
@@ -165,6 +166,7 @@ add_header_library(
     libc.include.llvm-libc-macros.stdfix_macros
     libc.src.__support.macros.attributes
     libc.src.__support.macros.properties.types
+    libc.src.__support.macros.properties.complex_types
 )
 
 add_header_library(
diff --git a/libc/src/__support/CPP/type_traits/is_complex.h b/libc/src/__support/CPP/type_traits/is_complex.h
index 4f5ee9abdb33a5..23f05c08ccab5a 100644
--- a/libc/src/__support/CPP/type_traits/is_complex.h
+++ b/libc/src/__support/CPP/type_traits/is_complex.h
@@ -10,6 +10,10 @@
 
 #include "src/__support/CPP/type_traits/is_same.h"
 #include "src/__support/CPP/type_traits/remove_cv.h"
+#include "src/__support/macros/attributes.h"
+#include "src/__support/macros/config.h"
+// LIBC_TYPES_HAS_CFLOAT16 && LIBC_TYPES_HAS_CFLOAT128
+#include "src/__support/macros/properties/complex_types.h"
 
 namespace LIBC_NAMESPACE_DECL {
 namespace cpp {
@@ -25,7 +29,16 @@ template <typename T> struct is_complex {
 public:
   LIBC_INLINE_VAR static constexpr bool value =
       __is_unqualified_any_of<T, _Complex float, _Complex double,
-                              _Complex long double>();
+                              _Complex long double
+#ifdef LIBC_TYPES_HAS_CFLOAT16
+                              ,
+                              cfloat16
+#endif
+#ifdef LIBC_TYPES_HAS_CFLOAT128
+                              ,
+                              cfloat128
+#endif
+                              >();
 };
 template <typename T>
 LIBC_INLINE_VAR constexpr bool is_complex_v = is_complex<T>::value;
diff --git a/libc/src/__support/macros/properties/CMakeLists.txt b/libc/src/__support/macros/properties/CMakeLists.txt
index c69f3a85d7287a..80ed63a2fbcf70 100644
--- a/libc/src/__support/macros/properties/CMakeLists.txt
+++ b/libc/src/__support/macros/properties/CMakeLists.txt
@@ -37,3 +37,13 @@ add_header_library(
     libc.include.llvm-libc-macros.float16_macros
     libc.include.llvm-libc-types.float128
 )
+
+add_header_library(
+  complex_types
+  HDRS
+    complex_types.h
+  DEPENDS
+    .types
+    libc.include.llvm-libc-types.cfloat16
+    libc.include.llvm-libc-types.cfloat128
+)
diff --git a/libc/src/__support/macros/properties/complex_types.h b/libc/src/__support/macros/properties/complex_types.h
new file mode 100644
index 00000000000000..3f4a7646649c64
--- /dev/null
+++ b/libc/src/__support/macros/properties/complex_types.h
@@ -0,0 +1,25 @@
+//===-- Complex Types support -----------------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+// Complex Types detection and support.
+
+#ifndef LLVM_LIBC_SRC___SUPPORT_MACROS_PROPERTIES_CTYPES_H
+#define LLVM_LIBC_SRC___SUPPORT_MACROS_PROPERTIES_CTYPES_H
+
+#include "include/llvm-libc-types/cfloat128.h"
+#include "include/llvm-libc-types/cfloat16.h"
+#include "types.h"
+
+// -- cfloat16 support --------------------------------------------------------
+// LIBC_TYPES_HAS_CFLOAT16 and 'cfloat16' type is provided by
+// "include/llvm-libc-types/cfloat16.h"
+
+// -- cfloat128 support -------------------------------------------------------
+// LIBC_TYPES_HAS_CFLOAT128 and 'cfloat128' type are provided by
+// "include/llvm-libc-types/cfloat128.h"
+
+#endif // LLVM_LIBC_SRC___SUPPORT_MACROS_PROPERTIES_CTYPES_H
diff --git a/libc/test/UnitTest/FPMatcher.h b/libc/test/UnitTest/FPMatcher.h
index 5220b1245bf3a5..181fb353febd0b 100644
--- a/libc/test/UnitTest/FPMatcher.h
+++ b/libc/test/UnitTest/FPMatcher.h
@@ -128,6 +128,14 @@ template <typename T, TestCond Condition> class CFPMatcher : public Matcher<T> {
       return matchComplex<double>();
     else if (cpp::is_complex_type_same<T, _Complex long double>())
       return matchComplex<long double>();
+#ifdef LIBC_TYPES_HAS_CFLOAT16
+    else if (cpp::is_complex_type_same<T, cfloat16>)
+      return matchComplex<float16>();
+#endif
+#ifdef LIBC_TYPES_HAS_CFLOAT128
+    else if (cpp::is_complex_type_same<T, cfloat128>)
+      return matchComplex<float128>();
+#endif
   }
 
   void explainError() override {
@@ -137,6 +145,14 @@ template <typename T, TestCond Condition> class CFPMatcher : public Matcher<T> {
       return explainErrorComplex<double>();
     else if (cpp::is_complex_type_same<T, _Complex long double>())
       return explainErrorComplex<long double>();
+#ifdef LIBC_TYPES_HAS_CFLOAT16
+    else if (cpp::is_complex_type_same<T, cfloat16>)
+      return explainErrorComplex<float16>();
+#endif
+#ifdef LIBC_TYPES_HAS_CFLOAT128
+    else if (cpp::is_complex_type_same<T, cfloat128>)
+      return explainErrorComplex<float128>();
+#endif
   }
 };
 

@Sh0g0-1758 Sh0g0-1758 merged commit 7be4ab0 into llvm:main Oct 18, 2024
7 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 18, 2024

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

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

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)
...
Running: ninja libc-unit-tests
[1/3861] Linking C executable projects/libc/test/include/libc.test.include.iscanonical_c_test.__unit__.__build__
[2/3861] Building CXX object projects/libc/src/__support/OSUtil/linux/CMakeFiles/libc.src.__support.OSUtil.linux.vdso.dir/vdso.cpp.o
[3/3861] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.stdckdint_test.__unit__.__build__.dir/stdckdint_test.cpp.o
[4/3861] Building CXX object projects/libc/src/fenv/CMakeFiles/libc.src.fenv.feholdexcept.__internal__.dir/feholdexcept.cpp.o
[5/3861] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.assert_test.__unit__.__build__.dir/assert_test.cpp.o
[6/3861] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.sys_queue_test.__unit__.__build__.dir/sys/queue_test.cpp.o
warning: unknown warning option '-Wno-gnu-statement-expression-from-macro-expansion'; did you mean '-Wno-gnu-statement-expression'? [-Wunknown-warning-option]
1 warning generated.
[7/3861] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.isinfl_test.__unit__.__build__.dir/isinfl_test.cpp.o
FAILED: projects/libc/test/include/CMakeFiles/libc.test.include.isinfl_test.__unit__.__build__.dir/isinfl_test.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_18_0_0_git -D_DEBUG -Iprojects/libc/test/include -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc -isystem projects/libc/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -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 -fpie -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -std=c++17 -MD -MT projects/libc/test/include/CMakeFiles/libc.test.include.isinfl_test.__unit__.__build__.dir/isinfl_test.cpp.o -MF projects/libc/test/include/CMakeFiles/libc.test.include.isinfl_test.__unit__.__build__.dir/isinfl_test.cpp.o.d -o projects/libc/test/include/CMakeFiles/libc.test.include.isinfl_test.__unit__.__build__.dir/isinfl_test.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/isinfl_test.cpp
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/isinfl_test.cpp:9:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/IsInfTest.h:12:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/UnitTest/FPMatcher.h:14:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/src/__support/CPP/type_traits/is_complex.h:16:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/src/__support/macros/properties/complex_types.h:14:
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/include/llvm-libc-types/cfloat16.h:17:9: error: '_Complex _Float16' is invalid
typedef _Complex _Float16 cfloat16;
        ^
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/isinfl_test.cpp:9:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/IsInfTest.h:15:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/include/llvm-libc-macros/math-function-macros.h:12:
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/include/llvm-libc-macros/math-macros.h:29:9: warning: 'HUGE_VAL' macro redefined [-Wmacro-redefined]
#define HUGE_VAL __builtin_huge_val()
        ^
/usr/include/math.h:48:10: note: previous definition is here
# define HUGE_VAL (__builtin_huge_val ())
         ^
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/isinfl_test.cpp:9:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/IsInfTest.h:15:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/include/llvm-libc-macros/math-function-macros.h:12:
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/include/llvm-libc-macros/math-macros.h:30:9: warning: 'HUGE_VALF' macro redefined [-Wmacro-redefined]
#define HUGE_VALF __builtin_huge_valf()
        ^
/usr/include/math.h:59:11: note: previous definition is here
#  define HUGE_VALF (__builtin_huge_valf ())
          ^
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/isinfl_test.cpp:9:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/IsInfTest.h:15:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/include/llvm-libc-macros/math-function-macros.h:12:
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/include/llvm-libc-macros/math-macros.h:31:9: warning: 'INFINITY' macro redefined [-Wmacro-redefined]
#define INFINITY __builtin_inff()
        ^
/usr/include/math.h:91:11: note: previous definition is here
#  define INFINITY (__builtin_inff ())
          ^
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/isinfl_test.cpp:9:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/IsInfTest.h:15:
Step 7 (libc-unit-tests) failure: libc-unit-tests (failure)
...
Running: ninja libc-unit-tests
[1/3861] Linking C executable projects/libc/test/include/libc.test.include.iscanonical_c_test.__unit__.__build__
[2/3861] Building CXX object projects/libc/src/__support/OSUtil/linux/CMakeFiles/libc.src.__support.OSUtil.linux.vdso.dir/vdso.cpp.o
[3/3861] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.stdckdint_test.__unit__.__build__.dir/stdckdint_test.cpp.o
[4/3861] Building CXX object projects/libc/src/fenv/CMakeFiles/libc.src.fenv.feholdexcept.__internal__.dir/feholdexcept.cpp.o
[5/3861] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.assert_test.__unit__.__build__.dir/assert_test.cpp.o
[6/3861] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.sys_queue_test.__unit__.__build__.dir/sys/queue_test.cpp.o
warning: unknown warning option '-Wno-gnu-statement-expression-from-macro-expansion'; did you mean '-Wno-gnu-statement-expression'? [-Wunknown-warning-option]
1 warning generated.
[7/3861] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.isinfl_test.__unit__.__build__.dir/isinfl_test.cpp.o
FAILED: projects/libc/test/include/CMakeFiles/libc.test.include.isinfl_test.__unit__.__build__.dir/isinfl_test.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_18_0_0_git -D_DEBUG -Iprojects/libc/test/include -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc -isystem projects/libc/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -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 -fpie -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -std=c++17 -MD -MT projects/libc/test/include/CMakeFiles/libc.test.include.isinfl_test.__unit__.__build__.dir/isinfl_test.cpp.o -MF projects/libc/test/include/CMakeFiles/libc.test.include.isinfl_test.__unit__.__build__.dir/isinfl_test.cpp.o.d -o projects/libc/test/include/CMakeFiles/libc.test.include.isinfl_test.__unit__.__build__.dir/isinfl_test.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/isinfl_test.cpp
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/isinfl_test.cpp:9:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/IsInfTest.h:12:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/UnitTest/FPMatcher.h:14:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/src/__support/CPP/type_traits/is_complex.h:16:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/src/__support/macros/properties/complex_types.h:14:
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/include/llvm-libc-types/cfloat16.h:17:9: error: '_Complex _Float16' is invalid
typedef _Complex _Float16 cfloat16;
        ^
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/isinfl_test.cpp:9:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/IsInfTest.h:15:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/include/llvm-libc-macros/math-function-macros.h:12:
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/include/llvm-libc-macros/math-macros.h:29:9: warning: 'HUGE_VAL' macro redefined [-Wmacro-redefined]
#define HUGE_VAL __builtin_huge_val()
        ^
/usr/include/math.h:48:10: note: previous definition is here
# define HUGE_VAL (__builtin_huge_val ())
         ^
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/isinfl_test.cpp:9:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/IsInfTest.h:15:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/include/llvm-libc-macros/math-function-macros.h:12:
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/include/llvm-libc-macros/math-macros.h:30:9: warning: 'HUGE_VALF' macro redefined [-Wmacro-redefined]
#define HUGE_VALF __builtin_huge_valf()
        ^
/usr/include/math.h:59:11: note: previous definition is here
#  define HUGE_VALF (__builtin_huge_valf ())
          ^
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/isinfl_test.cpp:9:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/IsInfTest.h:15:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/include/llvm-libc-macros/math-function-macros.h:12:
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/include/llvm-libc-macros/math-macros.h:31:9: warning: 'INFINITY' macro redefined [-Wmacro-redefined]
#define INFINITY __builtin_inff()
        ^
/usr/include/math.h:91:11: note: previous definition is here
#  define INFINITY (__builtin_inff ())
          ^
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/isinfl_test.cpp:9:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/test/include/IsInfTest.h:15:

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 18, 2024

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/8724

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)
...
[572/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.dfmal.dir/dfmal.cpp.o
[573/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.llround.dir/llround.cpp.o
[574/3784] Building CXX object projects/libc/src/stdio/CMakeFiles/libc.src.stdio.fscanf.__internal__.dir/fscanf.cpp.o
[575/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.dsqrtf128.__internal__.dir/dsqrtf128.cpp.o
[576/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.canonicalize.__internal__.dir/canonicalize.cpp.o
[577/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.floorf.dir/floorf.cpp.o
[578/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.floorl.dir/floorl.cpp.o
[579/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.rintf16.__internal__.dir/rintf16.cpp.o
[580/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.iscanonicalf16.dir/iscanonicalf16.cpp.o
[581/3784] Building CXX object projects/libc/test/src/math/CMakeFiles/libc.test.src.math.ldexpf_test.__unit__.__build__.dir/ldexpf_test.cpp.o
FAILED: projects/libc/test/src/math/CMakeFiles/libc.test.src.math.ldexpf_test.__unit__.__build__.dir/ldexpf_test.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -D_DEBUG -Iprojects/libc/test/src/math -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc -isystem projects/libc/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -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 -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -std=c++17 -MD -MT projects/libc/test/src/math/CMakeFiles/libc.test.src.math.ldexpf_test.__unit__.__build__.dir/ldexpf_test.cpp.o -MF projects/libc/test/src/math/CMakeFiles/libc.test.src.math.ldexpf_test.__unit__.__build__.dir/ldexpf_test.cpp.o.d -o projects/libc/test/src/math/CMakeFiles/libc.test.src.math.ldexpf_test.__unit__.__build__.dir/ldexpf_test.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/ldexpf_test.cpp
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/ldexpf_test.cpp:9:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/LdExpTest.h:16:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/FPMatcher.h:14:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/CPP/type_traits/is_complex.h:16:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/macros/properties/complex_types.h:14:
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/include/llvm-libc-types/cfloat16.h:17:9: error: '_Complex _Float16' is invalid
typedef _Complex _Float16 cfloat16;
        ^
1 error generated.
[582/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fromfpxf16.dir/fromfpxf16.cpp.o
[583/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fminimumf16.__NO_MISC_MATH_BASIC_OPS_OPT.__internal__.dir/fminimumf16.cpp.o
[584/3784] Building CXX object projects/libc/test/src/math/CMakeFiles/libc.test.src.math.fminl_test.__unit__.__build__.dir/fminl_test.cpp.o
FAILED: projects/libc/test/src/math/CMakeFiles/libc.test.src.math.fminl_test.__unit__.__build__.dir/fminl_test.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -D_DEBUG -Iprojects/libc/test/src/math -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc -isystem projects/libc/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -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 -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -std=c++17 -MD -MT projects/libc/test/src/math/CMakeFiles/libc.test.src.math.fminl_test.__unit__.__build__.dir/fminl_test.cpp.o -MF projects/libc/test/src/math/CMakeFiles/libc.test.src.math.fminl_test.__unit__.__build__.dir/fminl_test.cpp.o.d -o projects/libc/test/src/math/CMakeFiles/libc.test.src.math.fminl_test.__unit__.__build__.dir/fminl_test.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/fminl_test.cpp
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/fminl_test.cpp:9:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/FMinTest.h:14:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/FPMatcher.h:14:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/CPP/type_traits/is_complex.h:16:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/macros/properties/complex_types.h:14:
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/include/llvm-libc-types/cfloat16.h:17:9: error: '_Complex _Float16' is invalid
typedef _Complex _Float16 cfloat16;
        ^
1 error generated.
[585/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.frexpl.dir/frexpl.cpp.o
[586/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.ceill.dir/ceill.cpp.o
[587/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.frexpf16.__internal__.dir/frexpf16.cpp.o
[588/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.remquof.__internal__.dir/remquof.cpp.o
[589/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.modfl.dir/modfl.cpp.o
[590/3784] Building CXX object projects/libc/src/stdio/CMakeFiles/libc.src.stdio.sprintf.__internal__.dir/sprintf.cpp.o
[591/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.floorf16.dir/floorf16.cpp.o
[592/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.exp2f.__internal__.dir/exp2f.cpp.o
[593/3784] Building CXX object projects/libc/test/src/math/CMakeFiles/libc.test.src.math.fdim_test.__unit__.__build__.dir/fdim_test.cpp.o
FAILED: projects/libc/test/src/math/CMakeFiles/libc.test.src.math.fdim_test.__unit__.__build__.dir/fdim_test.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -D_DEBUG -Iprojects/libc/test/src/math -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc -isystem projects/libc/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -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 -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -std=c++17 -MD -MT projects/libc/test/src/math/CMakeFiles/libc.test.src.math.fdim_test.__unit__.__build__.dir/fdim_test.cpp.o -MF projects/libc/test/src/math/CMakeFiles/libc.test.src.math.fdim_test.__unit__.__build__.dir/fdim_test.cpp.o.d -o projects/libc/test/src/math/CMakeFiles/libc.test.src.math.fdim_test.__unit__.__build__.dir/fdim_test.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/fdim_test.cpp
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/fdim_test.cpp:9:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/FDimTest.h:13:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/FPMatcher.h:14:
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[572/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.dfmal.dir/dfmal.cpp.o
[573/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.llround.dir/llround.cpp.o
[574/3784] Building CXX object projects/libc/src/stdio/CMakeFiles/libc.src.stdio.fscanf.__internal__.dir/fscanf.cpp.o
[575/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.dsqrtf128.__internal__.dir/dsqrtf128.cpp.o
[576/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.canonicalize.__internal__.dir/canonicalize.cpp.o
[577/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.floorf.dir/floorf.cpp.o
[578/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.floorl.dir/floorl.cpp.o
[579/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.rintf16.__internal__.dir/rintf16.cpp.o
[580/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.iscanonicalf16.dir/iscanonicalf16.cpp.o
[581/3784] Building CXX object projects/libc/test/src/math/CMakeFiles/libc.test.src.math.ldexpf_test.__unit__.__build__.dir/ldexpf_test.cpp.o
FAILED: projects/libc/test/src/math/CMakeFiles/libc.test.src.math.ldexpf_test.__unit__.__build__.dir/ldexpf_test.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -D_DEBUG -Iprojects/libc/test/src/math -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc -isystem projects/libc/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -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 -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -std=c++17 -MD -MT projects/libc/test/src/math/CMakeFiles/libc.test.src.math.ldexpf_test.__unit__.__build__.dir/ldexpf_test.cpp.o -MF projects/libc/test/src/math/CMakeFiles/libc.test.src.math.ldexpf_test.__unit__.__build__.dir/ldexpf_test.cpp.o.d -o projects/libc/test/src/math/CMakeFiles/libc.test.src.math.ldexpf_test.__unit__.__build__.dir/ldexpf_test.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/ldexpf_test.cpp
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/ldexpf_test.cpp:9:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/LdExpTest.h:16:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/FPMatcher.h:14:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/CPP/type_traits/is_complex.h:16:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/macros/properties/complex_types.h:14:
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/include/llvm-libc-types/cfloat16.h:17:9: error: '_Complex _Float16' is invalid
typedef _Complex _Float16 cfloat16;
        ^
1 error generated.
[582/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fromfpxf16.dir/fromfpxf16.cpp.o
[583/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fminimumf16.__NO_MISC_MATH_BASIC_OPS_OPT.__internal__.dir/fminimumf16.cpp.o
[584/3784] Building CXX object projects/libc/test/src/math/CMakeFiles/libc.test.src.math.fminl_test.__unit__.__build__.dir/fminl_test.cpp.o
FAILED: projects/libc/test/src/math/CMakeFiles/libc.test.src.math.fminl_test.__unit__.__build__.dir/fminl_test.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -D_DEBUG -Iprojects/libc/test/src/math -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc -isystem projects/libc/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -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 -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -std=c++17 -MD -MT projects/libc/test/src/math/CMakeFiles/libc.test.src.math.fminl_test.__unit__.__build__.dir/fminl_test.cpp.o -MF projects/libc/test/src/math/CMakeFiles/libc.test.src.math.fminl_test.__unit__.__build__.dir/fminl_test.cpp.o.d -o projects/libc/test/src/math/CMakeFiles/libc.test.src.math.fminl_test.__unit__.__build__.dir/fminl_test.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/fminl_test.cpp
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/fminl_test.cpp:9:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/FMinTest.h:14:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/FPMatcher.h:14:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/CPP/type_traits/is_complex.h:16:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/macros/properties/complex_types.h:14:
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/include/llvm-libc-types/cfloat16.h:17:9: error: '_Complex _Float16' is invalid
typedef _Complex _Float16 cfloat16;
        ^
1 error generated.
[585/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.frexpl.dir/frexpl.cpp.o
[586/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.ceill.dir/ceill.cpp.o
[587/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.frexpf16.__internal__.dir/frexpf16.cpp.o
[588/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.remquof.__internal__.dir/remquof.cpp.o
[589/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.modfl.dir/modfl.cpp.o
[590/3784] Building CXX object projects/libc/src/stdio/CMakeFiles/libc.src.stdio.sprintf.__internal__.dir/sprintf.cpp.o
[591/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.floorf16.dir/floorf16.cpp.o
[592/3784] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.exp2f.__internal__.dir/exp2f.cpp.o
[593/3784] Building CXX object projects/libc/test/src/math/CMakeFiles/libc.test.src.math.fdim_test.__unit__.__build__.dir/fdim_test.cpp.o
FAILED: projects/libc/test/src/math/CMakeFiles/libc.test.src.math.fdim_test.__unit__.__build__.dir/fdim_test.cpp.o 
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -D_DEBUG -Iprojects/libc/test/src/math -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc -isystem projects/libc/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -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 -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -std=c++17 -MD -MT projects/libc/test/src/math/CMakeFiles/libc.test.src.math.fdim_test.__unit__.__build__.dir/fdim_test.cpp.o -MF projects/libc/test/src/math/CMakeFiles/libc.test.src.math.fdim_test.__unit__.__build__.dir/fdim_test.cpp.o.d -o projects/libc/test/src/math/CMakeFiles/libc.test.src.math.fdim_test.__unit__.__build__.dir/fdim_test.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/fdim_test.cpp
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/fdim_test.cpp:9:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/FDimTest.h:13:
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/UnitTest/FPMatcher.h:14:

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 18, 2024

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/8644

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)
...
[1532/4867] Building CXX object projects/libc/src/string/CMakeFiles/libc.src.string.memmove.__internal__.dir/memmove.cpp.o
[1533/4867] Building CXX object projects/libc/src/search/CMakeFiles/libc.src.search.hdestroy.__internal__.dir/hdestroy.cpp.o
[1534/4867] Building CXX object projects/libc/src/search/CMakeFiles/libc.src.search.hcreate.__internal__.dir/hcreate.cpp.o
[1535/4867] Building CXX object projects/libc/src/search/CMakeFiles/libc.src.search.hdestroy_r.__internal__.dir/hdestroy_r.cpp.o
[1536/4867] Building CXX object projects/libc/src/search/CMakeFiles/libc.src.search.hcreate_r.__internal__.dir/hcreate_r.cpp.o
[1537/4867] Building CXX object projects/libc/src/search/CMakeFiles/libc.src.search.hsearch.__internal__.dir/hsearch.cpp.o
[1538/4867] Building CXX object projects/libc/src/search/CMakeFiles/libc.src.search.hsearch_r.__internal__.dir/hsearch_r.cpp.o
[1539/4867] Building CXX object projects/libc/test/UnitTest/CMakeFiles/LibcTest.unit.dir/LibcTestMain.cpp.o
[1540/4867] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.assert_test.__unit__.__build__.dir/assert_test.cpp.o
[1541/4867] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.complex_test.__unit__.__build__.dir/complex_test.cpp.o
FAILED: projects/libc/test/include/CMakeFiles/libc.test.include.complex_test.__unit__.__build__.dir/complex_test.cpp.o 
/usr/bin/g++ -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -D_DEBUG -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/test/include -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/include -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/projects/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -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 -fext-numeric-literals -Wno-pedantic -std=c++17 -MD -MT projects/libc/test/include/CMakeFiles/libc.test.include.complex_test.__unit__.__build__.dir/complex_test.cpp.o -MF projects/libc/test/include/CMakeFiles/libc.test.include.complex_test.__unit__.__build__.dir/complex_test.cpp.o.d -o projects/libc/test/include/CMakeFiles/libc.test.include.complex_test.__unit__.__build__.dir/complex_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/include/complex_test.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/src/__support/macros/properties/complex_types.h:13,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/CPP/type_traits/is_complex.h:16,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/FPMatcher.h:14,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/include/complex_test.cpp:10:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/include/llvm-libc-types/cfloat128.h:32:29: error: expected initializer before ‘cfloat128’
   32 | typedef _Complex __float128 cfloat128;
      |                             ^~~~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/CPP/type_traits/is_complex.h:39:31: error: ‘cfloat128’ was not declared in this scope; did you mean ‘float128’?
   39 |                               cfloat128
      |                               ^~~~~~~~~
      |                               float128
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/FPMatcher.h: In member function ‘bool __llvm_libc_19_0_0_git::testing::CFPMatcher<T, Condition>::match(T)’:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/FPMatcher.h:137:43: error: ‘cfloat128’ was not declared in this scope; did you mean ‘float128’?
  137 |     else if (cpp::is_complex_type_same<T, cfloat128>)
      |                                           ^~~~~~~~~
      |                                           float128
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/FPMatcher.h: In member function ‘void __llvm_libc_19_0_0_git::testing::CFPMatcher<T, Condition>::explainError()’:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/FPMatcher.h:154:43: error: ‘cfloat128’ was not declared in this scope; did you mean ‘float128’?
  154 |     else if (cpp::is_complex_type_same<T, cfloat128>)
      |                                           ^~~~~~~~~
      |                                           float128
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/FPMatcher.h: In instantiation of ‘class __llvm_libc_19_0_0_git::testing::CFPMatcher<__complex__ float, __llvm_libc_19_0_0_git::testing::TestCond::EQ>’:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/include/complex_test.cpp:17:37:   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/UnitTest/FPMatcher.h:66:12: error: non-constant condition for static assertion
   66 |       cpp::is_complex_v<T>,
      |       ~~~~~^~~~~~~~~~~~~~~
[1542/4867] Building CXX object projects/libc/test/UnitTest/CMakeFiles/LibcDeathTestExecutors.unit.dir/LibcDeathTestExecutors.cpp.o
[1543/4867] Building CXX object projects/libc/test/UnitTest/CMakeFiles/LibcTest.unit.dir/CmakeFilePath.cpp.o
[1544/4867] Building CXX object projects/libc/test/UnitTest/CMakeFiles/LibcMemoryHelpers.unit.dir/MemoryMatcher.cpp.o
[1545/4867] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.stdckdint_test.__unit__.__build__.dir/stdckdint_test.cpp.o
[1546/4867] Building CXX object projects/libc/test/UnitTest/CMakeFiles/LibcFPTestHelpers.unit.dir/FEnvSafeTest.cpp.o
[1547/4867] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.issubnormalf_test.__unit__.__build__.dir/issubnormalf_test.cpp.o
FAILED: projects/libc/test/include/CMakeFiles/libc.test.include.issubnormalf_test.__unit__.__build__.dir/issubnormalf_test.cpp.o 
/usr/bin/g++ -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -D_DEBUG -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/test/include -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/include -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/projects/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -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 -fext-numeric-literals -Wno-pedantic -std=c++17 -MD -MT projects/libc/test/include/CMakeFiles/libc.test.include.issubnormalf_test.__unit__.__build__.dir/issubnormalf_test.cpp.o -MF projects/libc/test/include/CMakeFiles/libc.test.include.issubnormalf_test.__unit__.__build__.dir/issubnormalf_test.cpp.o.d -o projects/libc/test/include/CMakeFiles/libc.test.include.issubnormalf_test.__unit__.__build__.dir/issubnormalf_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/include/issubnormalf_test.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/src/__support/macros/properties/complex_types.h:13,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/CPP/type_traits/is_complex.h:16,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/FPMatcher.h:14,
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[1532/4867] Building CXX object projects/libc/src/string/CMakeFiles/libc.src.string.memmove.__internal__.dir/memmove.cpp.o
[1533/4867] Building CXX object projects/libc/src/search/CMakeFiles/libc.src.search.hdestroy.__internal__.dir/hdestroy.cpp.o
[1534/4867] Building CXX object projects/libc/src/search/CMakeFiles/libc.src.search.hcreate.__internal__.dir/hcreate.cpp.o
[1535/4867] Building CXX object projects/libc/src/search/CMakeFiles/libc.src.search.hdestroy_r.__internal__.dir/hdestroy_r.cpp.o
[1536/4867] Building CXX object projects/libc/src/search/CMakeFiles/libc.src.search.hcreate_r.__internal__.dir/hcreate_r.cpp.o
[1537/4867] Building CXX object projects/libc/src/search/CMakeFiles/libc.src.search.hsearch.__internal__.dir/hsearch.cpp.o
[1538/4867] Building CXX object projects/libc/src/search/CMakeFiles/libc.src.search.hsearch_r.__internal__.dir/hsearch_r.cpp.o
[1539/4867] Building CXX object projects/libc/test/UnitTest/CMakeFiles/LibcTest.unit.dir/LibcTestMain.cpp.o
[1540/4867] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.assert_test.__unit__.__build__.dir/assert_test.cpp.o
[1541/4867] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.complex_test.__unit__.__build__.dir/complex_test.cpp.o
FAILED: projects/libc/test/include/CMakeFiles/libc.test.include.complex_test.__unit__.__build__.dir/complex_test.cpp.o 
/usr/bin/g++ -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -D_DEBUG -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/test/include -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/include -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/projects/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -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 -fext-numeric-literals -Wno-pedantic -std=c++17 -MD -MT projects/libc/test/include/CMakeFiles/libc.test.include.complex_test.__unit__.__build__.dir/complex_test.cpp.o -MF projects/libc/test/include/CMakeFiles/libc.test.include.complex_test.__unit__.__build__.dir/complex_test.cpp.o.d -o projects/libc/test/include/CMakeFiles/libc.test.include.complex_test.__unit__.__build__.dir/complex_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/include/complex_test.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/src/__support/macros/properties/complex_types.h:13,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/CPP/type_traits/is_complex.h:16,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/FPMatcher.h:14,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/include/complex_test.cpp:10:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/include/llvm-libc-types/cfloat128.h:32:29: error: expected initializer before ‘cfloat128’
   32 | typedef _Complex __float128 cfloat128;
      |                             ^~~~~~~~~
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/CPP/type_traits/is_complex.h:39:31: error: ‘cfloat128’ was not declared in this scope; did you mean ‘float128’?
   39 |                               cfloat128
      |                               ^~~~~~~~~
      |                               float128
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/FPMatcher.h: In member function ‘bool __llvm_libc_19_0_0_git::testing::CFPMatcher<T, Condition>::match(T)’:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/FPMatcher.h:137:43: error: ‘cfloat128’ was not declared in this scope; did you mean ‘float128’?
  137 |     else if (cpp::is_complex_type_same<T, cfloat128>)
      |                                           ^~~~~~~~~
      |                                           float128
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/FPMatcher.h: In member function ‘void __llvm_libc_19_0_0_git::testing::CFPMatcher<T, Condition>::explainError()’:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/FPMatcher.h:154:43: error: ‘cfloat128’ was not declared in this scope; did you mean ‘float128’?
  154 |     else if (cpp::is_complex_type_same<T, cfloat128>)
      |                                           ^~~~~~~~~
      |                                           float128
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/FPMatcher.h: In instantiation of ‘class __llvm_libc_19_0_0_git::testing::CFPMatcher<__complex__ float, __llvm_libc_19_0_0_git::testing::TestCond::EQ>’:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/include/complex_test.cpp:17:37:   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/UnitTest/FPMatcher.h:66:12: error: non-constant condition for static assertion
   66 |       cpp::is_complex_v<T>,
      |       ~~~~~^~~~~~~~~~~~~~~
[1542/4867] Building CXX object projects/libc/test/UnitTest/CMakeFiles/LibcDeathTestExecutors.unit.dir/LibcDeathTestExecutors.cpp.o
[1543/4867] Building CXX object projects/libc/test/UnitTest/CMakeFiles/LibcTest.unit.dir/CmakeFilePath.cpp.o
[1544/4867] Building CXX object projects/libc/test/UnitTest/CMakeFiles/LibcMemoryHelpers.unit.dir/MemoryMatcher.cpp.o
[1545/4867] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.stdckdint_test.__unit__.__build__.dir/stdckdint_test.cpp.o
[1546/4867] Building CXX object projects/libc/test/UnitTest/CMakeFiles/LibcFPTestHelpers.unit.dir/FEnvSafeTest.cpp.o
[1547/4867] Building CXX object projects/libc/test/include/CMakeFiles/libc.test.include.issubnormalf_test.__unit__.__build__.dir/issubnormalf_test.cpp.o
FAILED: projects/libc/test/include/CMakeFiles/libc.test.include.issubnormalf_test.__unit__.__build__.dir/issubnormalf_test.cpp.o 
/usr/bin/g++ -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -D_DEBUG -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/projects/libc/test/include -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/include -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/projects/libc/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -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 -fext-numeric-literals -Wno-pedantic -std=c++17 -MD -MT projects/libc/test/include/CMakeFiles/libc.test.include.issubnormalf_test.__unit__.__build__.dir/issubnormalf_test.cpp.o -MF projects/libc/test/include/CMakeFiles/libc.test.include.issubnormalf_test.__unit__.__build__.dir/issubnormalf_test.cpp.o.d -o projects/libc/test/include/CMakeFiles/libc.test.include.issubnormalf_test.__unit__.__build__.dir/issubnormalf_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/include/issubnormalf_test.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/src/__support/macros/properties/complex_types.h:13,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/CPP/type_traits/is_complex.h:16,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/FPMatcher.h:14,

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.

[libc][complex] Add support for complex variant of FP16 and FP128.
4 participants