[libc-commits] [libc] [libc][math][c23] Implement C23 math function asinpif16 (PR #146226)
LLVM Continuous Integration via libc-commits
libc-commits at lists.llvm.org
Sat Jul 26 04:04:39 PDT 2025
llvm-ci wrote:
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/27743
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[ RUN ] LlvmLibcFEnvImplTest.QuickRoundingNearestTest
[ OK ] LlvmLibcFEnvImplTest.QuickRoundingNearestTest (1 us)
[ RUN ] LlvmLibcFEnvImplTest.QuickRoundingTowardZeroTest
[ OK ] LlvmLibcFEnvImplTest.QuickRoundingTowardZeroTest (2 us)
[ RUN ] LlvmLibcFEnvImplTest.QuickGetRoundTest
[ OK ] LlvmLibcFEnvImplTest.QuickGetRoundTest (2 us)
Ran 5 tests. PASS: 5 FAIL: 0
[135/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.sin_test.__unit__.__NO_ROUND_OPT.__build__.dir/sin_test.cpp.o
[136/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.ddivl_test.__unit__.__build__.dir/ddivl_test.cpp.o
[137/1573] Building CXX object libc/utils/MPFRWrapper/CMakeFiles/libcMPCommon.dir/MPCommon.cpp.o
FAILED: libc/utils/MPFRWrapper/CMakeFiles/libcMPCommon.dir/MPCommon.cpp.o
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -fdiagnostics-color -g -O3 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -fpie -Wconversion -Wno-sign-conversion -Wimplicit-fallthrough -Wwrite-strings -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wstrict-prototypes -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wthread-safety -std=gnu++17 -MD -MT libc/utils/MPFRWrapper/CMakeFiles/libcMPCommon.dir/MPCommon.cpp.o -MF libc/utils/MPFRWrapper/CMakeFiles/libcMPCommon.dir/MPCommon.cpp.o.d -o libc/utils/MPFRWrapper/CMakeFiles/libcMPCommon.dir/MPCommon.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/utils/MPFRWrapper/MPCommon.cpp
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/utils/MPFRWrapper/MPCommon.cpp:110:3: error: use of undeclared identifier 'mpfr_asinpi'
mpfr_asinpi(result.value, value, mpfr_rounding);
^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/utils/MPFRWrapper/MPCommon.cpp:478:15: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
int mod = mpfr_get_si(value_ret_exact.value, MPFR_RNDN);
~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
[138/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.dsqrtl_test.__unit__.__build__.dir/dsqrtl_test.cpp.o
[139/1573] Building CXX object libc/test/src/__support/FPUtil/CMakeFiles/libc.test.src.__support.FPUtil.bfloat16_test.__unit__.__build__.dir/bfloat16_test.cpp.o
[140/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.fsqrt_test.__unit__.__build__.dir/fsqrt_test.cpp.o
[141/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.cbrtf_test.__unit__.__build__.dir/cbrtf_test.cpp.o
[142/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.f16fmaf_test.__unit__.__build__.dir/f16fmaf_test.cpp.o
[143/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.trunc_test.__unit__.__build__.dir/trunc_test.cpp.o
[144/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.f16mulf_test.__unit__.__build__.dir/f16mulf_test.cpp.o
[145/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.ceill_test.__unit__.__build__.dir/ceill_test.cpp.o
[146/1573] Building CXX object libc/utils/MPCWrapper/CMakeFiles/libcMPCWrapper.dir/MPCUtils.cpp.o
[147/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.add_same_type_test.__unit__.__build__.dir/add_same_type_test.cpp.o
[148/1573] Building CXX object libc/test/src/__support/FPUtil/CMakeFiles/libc.test.src.__support.FPUtil.dyadic_float_test.__unit__.__build__.dir/dyadic_float_test.cpp.o
warning: overriding currently unsupported rounding mode on this target [-Wunsupported-floating-point-opt]
1 warning generated.
[149/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.f16fma_test.__unit__.__build__.dir/f16fma_test.cpp.o
[150/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.f16divf_test.__unit__.__build__.dir/f16divf_test.cpp.o
[151/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.f16div_test.__unit__.__build__.dir/f16div_test.cpp.o
[152/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.f16subf_test.__unit__.__build__.dir/f16subf_test.cpp.o
[153/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.rintf16_test.__unit__.__build__.dir/rintf16_test.cpp.o
[154/1573] Building CXX object libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.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 181, in step
yield
File "../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 154, in main
run_command(['ninja', 'libc-unit-tests'])
File "../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 196, in run_command
util.report_run_cmd(cmd, cwd=directory)
File "/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
Step 7 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[ RUN ] LlvmLibcFEnvImplTest.QuickRoundingNearestTest
[ OK ] LlvmLibcFEnvImplTest.QuickRoundingNearestTest (1 us)
[ RUN ] LlvmLibcFEnvImplTest.QuickRoundingTowardZeroTest
[ OK ] LlvmLibcFEnvImplTest.QuickRoundingTowardZeroTest (2 us)
[ RUN ] LlvmLibcFEnvImplTest.QuickGetRoundTest
[ OK ] LlvmLibcFEnvImplTest.QuickGetRoundTest (2 us)
Ran 5 tests. PASS: 5 FAIL: 0
[135/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.sin_test.__unit__.__NO_ROUND_OPT.__build__.dir/sin_test.cpp.o
[136/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.ddivl_test.__unit__.__build__.dir/ddivl_test.cpp.o
[137/1573] Building CXX object libc/utils/MPFRWrapper/CMakeFiles/libcMPCommon.dir/MPCommon.cpp.o
FAILED: libc/utils/MPFRWrapper/CMakeFiles/libcMPCommon.dir/MPCommon.cpp.o
/usr/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -D_DEBUG -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -fdiagnostics-color -g -O3 -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -fpie -Wconversion -Wno-sign-conversion -Wimplicit-fallthrough -Wwrite-strings -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wstrict-prototypes -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wthread-safety -std=gnu++17 -MD -MT libc/utils/MPFRWrapper/CMakeFiles/libcMPCommon.dir/MPCommon.cpp.o -MF libc/utils/MPFRWrapper/CMakeFiles/libcMPCommon.dir/MPCommon.cpp.o.d -o libc/utils/MPFRWrapper/CMakeFiles/libcMPCommon.dir/MPCommon.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/utils/MPFRWrapper/MPCommon.cpp
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/utils/MPFRWrapper/MPCommon.cpp:110:3: error: use of undeclared identifier 'mpfr_asinpi'
mpfr_asinpi(result.value, value, mpfr_rounding);
^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-project/libc/utils/MPFRWrapper/MPCommon.cpp:478:15: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
int mod = mpfr_get_si(value_ret_exact.value, MPFR_RNDN);
~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
[138/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.dsqrtl_test.__unit__.__build__.dir/dsqrtl_test.cpp.o
[139/1573] Building CXX object libc/test/src/__support/FPUtil/CMakeFiles/libc.test.src.__support.FPUtil.bfloat16_test.__unit__.__build__.dir/bfloat16_test.cpp.o
[140/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.fsqrt_test.__unit__.__build__.dir/fsqrt_test.cpp.o
[141/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.cbrtf_test.__unit__.__build__.dir/cbrtf_test.cpp.o
[142/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.f16fmaf_test.__unit__.__build__.dir/f16fmaf_test.cpp.o
[143/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.trunc_test.__unit__.__build__.dir/trunc_test.cpp.o
[144/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.f16mulf_test.__unit__.__build__.dir/f16mulf_test.cpp.o
[145/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.ceill_test.__unit__.__build__.dir/ceill_test.cpp.o
[146/1573] Building CXX object libc/utils/MPCWrapper/CMakeFiles/libcMPCWrapper.dir/MPCUtils.cpp.o
[147/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.add_same_type_test.__unit__.__build__.dir/add_same_type_test.cpp.o
[148/1573] Building CXX object libc/test/src/__support/FPUtil/CMakeFiles/libc.test.src.__support.FPUtil.dyadic_float_test.__unit__.__build__.dir/dyadic_float_test.cpp.o
warning: overriding currently unsupported rounding mode on this target [-Wunsupported-floating-point-opt]
1 warning generated.
[149/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.f16fma_test.__unit__.__build__.dir/f16fma_test.cpp.o
[150/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.f16divf_test.__unit__.__build__.dir/f16divf_test.cpp.o
[151/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.f16div_test.__unit__.__build__.dir/f16div_test.cpp.o
[152/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.f16subf_test.__unit__.__build__.dir/f16subf_test.cpp.o
[153/1573] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.rintf16_test.__unit__.__build__.dir/rintf16_test.cpp.o
[154/1573] Building CXX object libc/utils/MPFRWrapper/CMakeFiles/libcMPFRWrapper.dir/MPFRUtils.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 181, in step
yield
File "../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 154, in main
run_command(['ninja', 'libc-unit-tests'])
File "../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py", line 196, in run_command
util.report_run_cmd(cmd, cwd=directory)
File "/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
```
</details>
https://github.com/llvm/llvm-project/pull/146226
More information about the libc-commits
mailing list