[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:31:44 PDT 2024


llvm-ci wrote:

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

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      ] LlvmLibcMemSizeTest.Multiplication
[       OK ] LlvmLibcMemSizeTest.Multiplication (1 us)
[ RUN      ] LlvmLibcMemSizeTest.AlignUp
[       OK ] LlvmLibcMemSizeTest.AlignUp (24 us)
[ RUN      ] LlvmLibcBlockBitTest.OffsetTo
[       OK ] LlvmLibcBlockBitTest.OffsetTo (3 us)
Ran 5 tests.  PASS: 5  FAIL: 0
[931/2785] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.str_to_float_test.__unit__.__build__.dir/str_to_double_test.cpp.o
[932/2785] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.str_to_float_test.__unit__.__build__.dir/str_to_long_double_test.cpp.o
[933/2785] Building CXX object projects/libc/test/src/math/CMakeFiles/libc.test.src.math.ilogbf_test.__unit__.__build__.dir/ilogbf_test.cpp.o
FAILED: projects/libc/test/src/math/CMakeFiles/libc.test.src.math.ilogbf_test.__unit__.__build__.dir/ilogbf_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 -mcpu=native -std=c++17 -MD -MT projects/libc/test/src/math/CMakeFiles/libc.test.src.math.ilogbf_test.__unit__.__build__.dir/ilogbf_test.cpp.o -MF projects/libc/test/src/math/CMakeFiles/libc.test.src.math.ilogbf_test.__unit__.__build__.dir/ilogbf_test.cpp.o.d -o projects/libc/test/src/math/CMakeFiles/libc.test.src.math.ilogbf_test.__unit__.__build__.dir/ilogbf_test.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/ilogbf_test.cpp
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/ilogbf_test.cpp:9:
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/ILogbTest.h:85:11: error: use of undeclared identifier 'isnan'
      if (isnan(x) || isinf(x) || x == 0.0)
          ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/ilogbf_test.cpp:31:3: note: in instantiation of function template specialization 'LlvmLibcILogbTest::test_subnormal_range<float>' requested here
  test_subnormal_range<float>(&LIBC_NAMESPACE::ilogbf);
  ^
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/ilogbf_test.cpp:9:
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/ILogbTest.h:104:11: error: use of undeclared identifier 'isnan'
      if (isnan(x) || isinf(x) || x == 0.0)
          ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/ilogbf_test.cpp:35:3: note: in instantiation of function template specialization 'LlvmLibcILogbTest::test_normal_range<float>' requested here
  test_normal_range<float>(&LIBC_NAMESPACE::ilogbf);
  ^
2 errors generated.
[934/2785] Linking CXX executable projects/libc/test/include/libc.test.include.stdbit_test.__unit__.__build__
[935/2785] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.endian_test.__unit__.__build__.dir/endian_test.cpp.o
[936/2785] Linking CXX executable projects/libc/test/src/__support/libc.test.src.__support.str_to_float_test.__unit__.__build__
[937/2785] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.char_vector_test.__unit__.__build__.dir/char_vector_test.cpp.o
[938/2785] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.math_extras_test.__unit__.__build__.dir/math_extras_test.cpp.o
[939/2785] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.fixedvector_test.__unit__.__build__.dir/fixedvector_test.cpp.o
[940/2785] Building CXX object projects/libc/test/src/__support/CPP/CMakeFiles/libc.test.src.__support.CPP.int_seq_test.__unit__.__build__.dir/integer_sequence_test.cpp.o
[941/2785] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.madvise_test.__build__.dir/madvise_test.cpp.o
[942/2785] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.log2f_test.__unit__.__build__.dir/log2f_test.cpp.o
[943/2785] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.hash_test.__unit__.__build__.dir/hash_test.cpp.o
[944/2785] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.mmap_test.__build__.dir/mmap_test.cpp.o
[945/2785] Building CXX object projects/libc/test/src/__support/CPP/CMakeFiles/libc.test.src.__support.CPP.array_test.__unit__.__build__.dir/array_test.cpp.o
[946/2785] Building CXX object projects/libc/test/src/__support/CPP/CMakeFiles/libc.test.src.__support.CPP.bitset_test.__unit__.__build__.dir/bitset_test.cpp.o
[947/2785] Building CXX object projects/libc/test/src/__support/CPP/CMakeFiles/libc.test.src.__support.CPP.string_test.__unit__.__build__.dir/string_test.cpp.o
[948/2785] Building CXX object projects/libc/test/src/__support/CPP/CMakeFiles/libc.test.src.__support.CPP.cstddef_test.__unit__.__build__.dir/cstddef_test.cpp.o
[949/2785] Building CXX object projects/libc/test/src/__support/CPP/CMakeFiles/libc.test.src.__support.CPP.algorithm_test.__unit__.__build__.dir/algorithm_test.cpp.o
[950/2785] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.block_test.__unit__.__build__.dir/block_test.cpp.o
ninja: build stopped: subcommand failed.
['ninja', 'libc-unit-tests'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 164, in step
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[ RUN      ] LlvmLibcMemSizeTest.Multiplication
[       OK ] LlvmLibcMemSizeTest.Multiplication (1 us)
[ RUN      ] LlvmLibcMemSizeTest.AlignUp
[       OK ] LlvmLibcMemSizeTest.AlignUp (24 us)
[ RUN      ] LlvmLibcBlockBitTest.OffsetTo
[       OK ] LlvmLibcBlockBitTest.OffsetTo (3 us)
Ran 5 tests.  PASS: 5  FAIL: 0
[931/2785] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.str_to_float_test.__unit__.__build__.dir/str_to_double_test.cpp.o
[932/2785] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.str_to_float_test.__unit__.__build__.dir/str_to_long_double_test.cpp.o
[933/2785] Building CXX object projects/libc/test/src/math/CMakeFiles/libc.test.src.math.ilogbf_test.__unit__.__build__.dir/ilogbf_test.cpp.o
FAILED: projects/libc/test/src/math/CMakeFiles/libc.test.src.math.ilogbf_test.__unit__.__build__.dir/ilogbf_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 -mcpu=native -std=c++17 -MD -MT projects/libc/test/src/math/CMakeFiles/libc.test.src.math.ilogbf_test.__unit__.__build__.dir/ilogbf_test.cpp.o -MF projects/libc/test/src/math/CMakeFiles/libc.test.src.math.ilogbf_test.__unit__.__build__.dir/ilogbf_test.cpp.o.d -o projects/libc/test/src/math/CMakeFiles/libc.test.src.math.ilogbf_test.__unit__.__build__.dir/ilogbf_test.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/ilogbf_test.cpp
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/ilogbf_test.cpp:9:
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/ILogbTest.h:85:11: error: use of undeclared identifier 'isnan'
      if (isnan(x) || isinf(x) || x == 0.0)
          ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/ilogbf_test.cpp:31:3: note: in instantiation of function template specialization 'LlvmLibcILogbTest::test_subnormal_range<float>' requested here
  test_subnormal_range<float>(&LIBC_NAMESPACE::ilogbf);
  ^
In file included from /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/ilogbf_test.cpp:9:
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/ILogbTest.h:104:11: error: use of undeclared identifier 'isnan'
      if (isnan(x) || isinf(x) || x == 0.0)
          ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/test/src/math/ilogbf_test.cpp:35:3: note: in instantiation of function template specialization 'LlvmLibcILogbTest::test_normal_range<float>' requested here
  test_normal_range<float>(&LIBC_NAMESPACE::ilogbf);
  ^
2 errors generated.
[934/2785] Linking CXX executable projects/libc/test/include/libc.test.include.stdbit_test.__unit__.__build__
[935/2785] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.endian_test.__unit__.__build__.dir/endian_test.cpp.o
[936/2785] Linking CXX executable projects/libc/test/src/__support/libc.test.src.__support.str_to_float_test.__unit__.__build__
[937/2785] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.char_vector_test.__unit__.__build__.dir/char_vector_test.cpp.o
[938/2785] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.math_extras_test.__unit__.__build__.dir/math_extras_test.cpp.o
[939/2785] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.fixedvector_test.__unit__.__build__.dir/fixedvector_test.cpp.o
[940/2785] Building CXX object projects/libc/test/src/__support/CPP/CMakeFiles/libc.test.src.__support.CPP.int_seq_test.__unit__.__build__.dir/integer_sequence_test.cpp.o
[941/2785] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.madvise_test.__build__.dir/madvise_test.cpp.o
[942/2785] Building CXX object projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.log2f_test.__unit__.__build__.dir/log2f_test.cpp.o
[943/2785] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.hash_test.__unit__.__build__.dir/hash_test.cpp.o
[944/2785] Building CXX object projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.mmap_test.__build__.dir/mmap_test.cpp.o
[945/2785] Building CXX object projects/libc/test/src/__support/CPP/CMakeFiles/libc.test.src.__support.CPP.array_test.__unit__.__build__.dir/array_test.cpp.o
[946/2785] Building CXX object projects/libc/test/src/__support/CPP/CMakeFiles/libc.test.src.__support.CPP.bitset_test.__unit__.__build__.dir/bitset_test.cpp.o
[947/2785] Building CXX object projects/libc/test/src/__support/CPP/CMakeFiles/libc.test.src.__support.CPP.string_test.__unit__.__build__.dir/string_test.cpp.o
[948/2785] Building CXX object projects/libc/test/src/__support/CPP/CMakeFiles/libc.test.src.__support.CPP.cstddef_test.__unit__.__build__.dir/cstddef_test.cpp.o
[949/2785] Building CXX object projects/libc/test/src/__support/CPP/CMakeFiles/libc.test.src.__support.CPP.algorithm_test.__unit__.__build__.dir/algorithm_test.cpp.o
[950/2785] Building CXX object projects/libc/test/src/__support/CMakeFiles/libc.test.src.__support.block_test.__unit__.__build__.dir/block_test.cpp.o
ninja: build stopped: subcommand failed.
['ninja', 'libc-unit-tests'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 164, in step

```

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


More information about the libc-commits mailing list