[libc-commits] [libc] [libc] Provide isnan, isnanf and isnanl functions (PR #96008)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Tue Jul 9 21:33:14 PDT 2024


llvm-ci wrote:

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

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)
...
Ran 20 tests.  PASS: 20  FAIL: 0
[1388/3640] Building CXX object projects/libc/test/src/fenv/CMakeFiles/libc.test.src.fenv.feclearexcept_test.__build__.dir/feclearexcept_test.cpp.o
[1389/3640] Building CXX object projects/libc/test/src/fenv/CMakeFiles/libc.test.src.fenv.exception_flags_test.__build__.dir/exception_flags_test.cpp.o
[1390/3640] Building CXX object projects/libc/test/src/fenv/CMakeFiles/libc.test.src.fenv.feenableexcept_test.__build__.dir/feenableexcept_test.cpp.o
[1391/3640] Running unit test libc.test.src.errno.errno_test
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcErrnoTest.Basic
[       OK ] LlvmLibcErrnoTest.Basic (5 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[1392/3640] Building CXX object projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysign_test.__unit__.__build__.dir/copysign_test.cpp.o
FAILED: projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysign_test.__unit__.__build__.dir/copysign_test.cpp.o 
/usr/bin/clang++ -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-fullbuild-dbg/build/projects/libc/test/src/math -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math -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/projects/libc/include -fPIC -fno-semantic-interposition -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 -mavx2 -mfma -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -march=native -std=c++17 -MD -MT projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysign_test.__unit__.__build__.dir/copysign_test.cpp.o -MF projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysign_test.__unit__.__build__.dir/copysign_test.cpp.o.d -o projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysign_test.__unit__.__build__.dir/copysign_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/math/copysign_test.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/copysign_test.cpp:9:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/CopySignTest.h:42:11: error: use of undeclared identifier 'isnan'
      if (isnan(x) || isinf(x))
          ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/copysign_test.cpp:13:1: note: in instantiation of member function 'CopySignTest<double>::testRange' requested here
LIST_COPYSIGN_TESTS(double, LIBC_NAMESPACE::copysign)
^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/CopySignTest.h:57:41: note: expanded from macro 'LIST_COPYSIGN_TESTS'
  TEST_F(LlvmLibcCopySignTest, Range) { testRange(&func); }
                                        ^
1 error generated.
[1393/3640] Building CXX object projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysign_test.__unit__.__NO_FMA_OPT.__build__.dir/copysign_test.cpp.o
FAILED: projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysign_test.__unit__.__NO_FMA_OPT.__build__.dir/copysign_test.cpp.o 
/usr/bin/clang++ -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-fullbuild-dbg/build/projects/libc/test/src/math -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math -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/projects/libc/include -fPIC -fno-semantic-interposition -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 -march=native -std=c++17 -MD -MT projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysign_test.__unit__.__NO_FMA_OPT.__build__.dir/copysign_test.cpp.o -MF projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysign_test.__unit__.__NO_FMA_OPT.__build__.dir/copysign_test.cpp.o.d -o projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysign_test.__unit__.__NO_FMA_OPT.__build__.dir/copysign_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/math/copysign_test.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/copysign_test.cpp:9:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/CopySignTest.h:42:11: error: use of undeclared identifier 'isnan'
      if (isnan(x) || isinf(x))
          ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/copysign_test.cpp:13:1: note: in instantiation of member function 'CopySignTest<double>::testRange' requested here
LIST_COPYSIGN_TESTS(double, LIBC_NAMESPACE::copysign)
^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/CopySignTest.h:57:41: note: expanded from macro 'LIST_COPYSIGN_TESTS'
  TEST_F(LlvmLibcCopySignTest, Range) { testRange(&func); }
                                        ^
1 error generated.
[1394/3640] Linking CXX executable projects/libc/test/src/fenv/libc.test.src.fenv.rounding_mode_test.__build__
[1395/3640] Building CXX object projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysignl_test.__unit__.__build__.dir/copysignl_test.cpp.o
FAILED: projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysignl_test.__unit__.__build__.dir/copysignl_test.cpp.o 
/usr/bin/clang++ -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-fullbuild-dbg/build/projects/libc/test/src/math -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math -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/projects/libc/include -fPIC -fno-semantic-interposition -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 -mavx2 -mfma -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -march=native -std=c++17 -MD -MT projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysignl_test.__unit__.__build__.dir/copysignl_test.cpp.o -MF projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysignl_test.__unit__.__build__.dir/copysignl_test.cpp.o.d -o projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysignl_test.__unit__.__build__.dir/copysignl_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/math/copysignl_test.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/copysignl_test.cpp:9:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/CopySignTest.h:42:11: error: use of undeclared identifier 'isnan'
      if (isnan(x) || isinf(x))
          ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/copysignl_test.cpp:13:1: note: in instantiation of member function 'CopySignTest<long double>::testRange' requested here
LIST_COPYSIGN_TESTS(long double, LIBC_NAMESPACE::copysignl)
^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/CopySignTest.h:57:41: note: expanded from macro 'LIST_COPYSIGN_TESTS'
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
Ran 20 tests.  PASS: 20  FAIL: 0
[1388/3640] Building CXX object projects/libc/test/src/fenv/CMakeFiles/libc.test.src.fenv.feclearexcept_test.__build__.dir/feclearexcept_test.cpp.o
[1389/3640] Building CXX object projects/libc/test/src/fenv/CMakeFiles/libc.test.src.fenv.exception_flags_test.__build__.dir/exception_flags_test.cpp.o
[1390/3640] Building CXX object projects/libc/test/src/fenv/CMakeFiles/libc.test.src.fenv.feenableexcept_test.__build__.dir/feenableexcept_test.cpp.o
[1391/3640] Running unit test libc.test.src.errno.errno_test
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcErrnoTest.Basic
[       OK ] LlvmLibcErrnoTest.Basic (5 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[1392/3640] Building CXX object projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysign_test.__unit__.__build__.dir/copysign_test.cpp.o
FAILED: projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysign_test.__unit__.__build__.dir/copysign_test.cpp.o 
/usr/bin/clang++ -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-fullbuild-dbg/build/projects/libc/test/src/math -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math -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/projects/libc/include -fPIC -fno-semantic-interposition -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 -mavx2 -mfma -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -march=native -std=c++17 -MD -MT projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysign_test.__unit__.__build__.dir/copysign_test.cpp.o -MF projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysign_test.__unit__.__build__.dir/copysign_test.cpp.o.d -o projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysign_test.__unit__.__build__.dir/copysign_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/math/copysign_test.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/copysign_test.cpp:9:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/CopySignTest.h:42:11: error: use of undeclared identifier 'isnan'
      if (isnan(x) || isinf(x))
          ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/copysign_test.cpp:13:1: note: in instantiation of member function 'CopySignTest<double>::testRange' requested here
LIST_COPYSIGN_TESTS(double, LIBC_NAMESPACE::copysign)
^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/CopySignTest.h:57:41: note: expanded from macro 'LIST_COPYSIGN_TESTS'
  TEST_F(LlvmLibcCopySignTest, Range) { testRange(&func); }
                                        ^
1 error generated.
[1393/3640] Building CXX object projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysign_test.__unit__.__NO_FMA_OPT.__build__.dir/copysign_test.cpp.o
FAILED: projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysign_test.__unit__.__NO_FMA_OPT.__build__.dir/copysign_test.cpp.o 
/usr/bin/clang++ -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-fullbuild-dbg/build/projects/libc/test/src/math -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math -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/projects/libc/include -fPIC -fno-semantic-interposition -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 -march=native -std=c++17 -MD -MT projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysign_test.__unit__.__NO_FMA_OPT.__build__.dir/copysign_test.cpp.o -MF projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysign_test.__unit__.__NO_FMA_OPT.__build__.dir/copysign_test.cpp.o.d -o projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysign_test.__unit__.__NO_FMA_OPT.__build__.dir/copysign_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/math/copysign_test.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/copysign_test.cpp:9:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/CopySignTest.h:42:11: error: use of undeclared identifier 'isnan'
      if (isnan(x) || isinf(x))
          ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/copysign_test.cpp:13:1: note: in instantiation of member function 'CopySignTest<double>::testRange' requested here
LIST_COPYSIGN_TESTS(double, LIBC_NAMESPACE::copysign)
^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/CopySignTest.h:57:41: note: expanded from macro 'LIST_COPYSIGN_TESTS'
  TEST_F(LlvmLibcCopySignTest, Range) { testRange(&func); }
                                        ^
1 error generated.
[1394/3640] Linking CXX executable projects/libc/test/src/fenv/libc.test.src.fenv.rounding_mode_test.__build__
[1395/3640] Building CXX object projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysignl_test.__unit__.__build__.dir/copysignl_test.cpp.o
FAILED: projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysignl_test.__unit__.__build__.dir/copysignl_test.cpp.o 
/usr/bin/clang++ -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-fullbuild-dbg/build/projects/libc/test/src/math -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math -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/projects/libc/include -fPIC -fno-semantic-interposition -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 -mavx2 -mfma -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -march=native -std=c++17 -MD -MT projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysignl_test.__unit__.__build__.dir/copysignl_test.cpp.o -MF projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysignl_test.__unit__.__build__.dir/copysignl_test.cpp.o.d -o projects/libc/test/src/math/CMakeFiles/libc.test.src.math.copysignl_test.__unit__.__build__.dir/copysignl_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/math/copysignl_test.cpp
In file included from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/copysignl_test.cpp:9:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/CopySignTest.h:42:11: error: use of undeclared identifier 'isnan'
      if (isnan(x) || isinf(x))
          ^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/copysignl_test.cpp:13:1: note: in instantiation of member function 'CopySignTest<long double>::testRange' requested here
LIST_COPYSIGN_TESTS(long double, LIBC_NAMESPACE::copysignl)
^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/CopySignTest.h:57:41: note: expanded from macro 'LIST_COPYSIGN_TESTS'

```

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


More information about the libc-commits mailing list