[libc-commits] [libc] [libc][math] Adding LIBC_MATH_ASSUME_ROUND_NEAREST_ONLY option (PR #201154)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Thu Jun 11 10:54:35 PDT 2026


=?utf-8?q?Hoàng_Minh_Thiên?=,=?utf-8?q?Hoàng_Minh_Thiên?=,
=?utf-8?q?Hoàng_Minh_Thiên?=,=?utf-8?q?Hoàng_Minh_Thiên?=,
=?utf-8?q?Hoàng_Minh_Thiên?=,=?utf-8?q?Hoàng_Minh_Thiên?=,
=?utf-8?q?Hoàng_Minh_Thiên?=,=?utf-8?q?Hoàng_Minh_Thiên?=,
=?utf-8?q?Hoàng_Minh_Thiên?=,=?utf-8?q?Hoàng_Minh_Thiên?=,
=?utf-8?q?Hoàng_Minh_Thiên?Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/201154 at github.com>


llvm-ci wrote:

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

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

<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)
...
[2072/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.fabs_test.__unit__.__NO_MISC_MATH_BASIC_OPS_OPT.__build__.dir/fabs_test.cpp.o
[2073/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.fabsf_test.__unit__.__NO_MISC_MATH_BASIC_OPS_OPT.__build__.dir/fabsf_test.cpp.o
[2074/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.fabsf_test.__unit__.__NO_FMA_OPT.__NO_MISC_MATH_BASIC_OPS_OPT.__build__.dir/fabsf_test.cpp.o
[2075/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.fabsf_test.__unit__.__NO_FMA_OPT.__build__.dir/fabsf_test.cpp.o
[2076/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.fadd_test.__unit__.__NO_FMA_OPT.__build__.dir/fadd_test.cpp.o
[2077/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.faddl_test.__unit__.__NO_FMA_OPT.__build__.dir/faddl_test.cpp.o
[2078/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.truncf_test.__unit__.__build__.dir/truncf_test.cpp.o
[2079/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.faddl_test.__unit__.__build__.dir/faddl_test.cpp.o
[2080/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.trunc_test.__unit__.__build__.dir/trunc_test.cpp.o
[2081/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.lround_test.__unit__.__build__.dir/lround_test.cpp.o
FAILED: libc/test/src/math/CMakeFiles/libc.test.src.math.lround_test.__unit__.__build__.dir/lround_test.cpp.o 
/usr/local/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_21_0_0_git -D_DEBUG -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/libc -I/home/libcrv32buildbot/gmp+mpfr/include -isystem /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/libc/include -mabi=ilp32d -march=rv32imafdc --target=riscv32-unknown-linux-gnu --sysroot=/opt/riscv/sysroot --gcc-toolchain=/opt/riscv -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -Xclang -fno-pch-timestamp -g -std=gnu++17 --target=riscv32-unknown-linux-gnu -D__LIBC_USE_BUILTIN_ISNAN -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_LENGTH_IMPL=element -DLIBC_COPT_FIND_FIRST_CHARACTER_IMPL=element -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -DLIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY -DLIBC_CONF_WCTYPE_MODE=LIBC_WCTYPE_MODE_ASCII -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ffixed-point -Wall -Wextra -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 -DLIBC_COMPILER_HAS_STDC_FENV_ACCESS -DLIBC_TEST=UNIT -MD -MT libc/test/src/math/CMakeFiles/libc.test.src.math.lround_test.__unit__.__build__.dir/lround_test.cpp.o -MF libc/test/src/math/CMakeFiles/libc.test.src.math.lround_test.__unit__.__build__.dir/lround_test.cpp.o.d -o libc/test/src/math/CMakeFiles/libc.test.src.math.lround_test.__unit__.__build__.dir/lround_test.cpp.o -c /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/math/lround_test.cpp
In file included from /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/math/lround_test.cpp:9:
In file included from /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/math/RoundToIntegerTest.h:13:
In file included from /opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/cfenv:38:
In file included from /opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/riscv32-unknown-linux-gnu/bits/c++config.h:679:
/opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/riscv32-unknown-linux-gnu/bits/os_defines.h:44:5: error: function-like macro '__GLIBC_PREREQ' is not defined
   44 | #if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
      |     ^
/opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/riscv32-unknown-linux-gnu/bits/os_defines.h:55:5: error: function-like macro '__GLIBC_PREREQ' is not defined
   55 | #if __GLIBC_PREREQ(2, 26) \
      |     ^
/opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/riscv32-unknown-linux-gnu/bits/os_defines.h:66:6: error: function-like macro '__GLIBC_PREREQ' is not defined
   66 | # if __GLIBC_PREREQ(2, 27)
      |      ^
/opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/riscv32-unknown-linux-gnu/bits/os_defines.h:78:6: error: function-like macro '__GLIBC_PREREQ' is not defined
   78 | # if __GLIBC_PREREQ(2, 34)
      |      ^
4 errors generated.
[2082/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.fabsl_test.__unit__.__NO_FMA_OPT.__build__.dir/fabsl_test.cpp.o
[2083/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.ceilf_test.__unit__.__build__.dir/ceilf_test.cpp.o
[2084/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.ceil_test.__unit__.__build__.dir/ceil_test.cpp.o
[2085/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.llround_test.__unit__.__build__.dir/llround_test.cpp.o
FAILED: libc/test/src/math/CMakeFiles/libc.test.src.math.llround_test.__unit__.__build__.dir/llround_test.cpp.o 
/usr/local/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_21_0_0_git -D_DEBUG -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/libc -I/home/libcrv32buildbot/gmp+mpfr/include -isystem /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/libc/include -mabi=ilp32d -march=rv32imafdc --target=riscv32-unknown-linux-gnu --sysroot=/opt/riscv/sysroot --gcc-toolchain=/opt/riscv -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -Xclang -fno-pch-timestamp -g -std=gnu++17 --target=riscv32-unknown-linux-gnu -D__LIBC_USE_BUILTIN_ISNAN -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_LENGTH_IMPL=element -DLIBC_COPT_FIND_FIRST_CHARACTER_IMPL=element -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -DLIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY -DLIBC_CONF_WCTYPE_MODE=LIBC_WCTYPE_MODE_ASCII -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ffixed-point -Wall -Wextra -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 -DLIBC_COMPILER_HAS_STDC_FENV_ACCESS -DLIBC_TEST=UNIT -MD -MT libc/test/src/math/CMakeFiles/libc.test.src.math.llround_test.__unit__.__build__.dir/llround_test.cpp.o -MF libc/test/src/math/CMakeFiles/libc.test.src.math.llround_test.__unit__.__build__.dir/llround_test.cpp.o.d -o libc/test/src/math/CMakeFiles/libc.test.src.math.llround_test.__unit__.__build__.dir/llround_test.cpp.o -c /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/math/llround_test.cpp
In file included from /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/math/llround_test.cpp:9:
In file included from /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/math/RoundToIntegerTest.h:13:
In file included from /opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/cfenv:38:
In file included from /opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/riscv32-unknown-linux-gnu/bits/c++config.h:679:
/opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/riscv32-unknown-linux-gnu/bits/os_defines.h:44:5: error: function-like macro '__GLIBC_PREREQ' is not defined
   44 | #if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
      |     ^
/opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/riscv32-unknown-linux-gnu/bits/os_defines.h:55:5: error: function-like macro '__GLIBC_PREREQ' is not defined
   55 | #if __GLIBC_PREREQ(2, 26) \
      |     ^
/opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/riscv32-unknown-linux-gnu/bits/os_defines.h:66:6: error: function-like macro '__GLIBC_PREREQ' is not defined
   66 | # if __GLIBC_PREREQ(2, 27)
      |      ^
/opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/riscv32-unknown-linux-gnu/bits/os_defines.h:78:6: error: function-like macro '__GLIBC_PREREQ' is not defined
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[2072/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.fabs_test.__unit__.__NO_MISC_MATH_BASIC_OPS_OPT.__build__.dir/fabs_test.cpp.o
[2073/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.fabsf_test.__unit__.__NO_MISC_MATH_BASIC_OPS_OPT.__build__.dir/fabsf_test.cpp.o
[2074/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.fabsf_test.__unit__.__NO_FMA_OPT.__NO_MISC_MATH_BASIC_OPS_OPT.__build__.dir/fabsf_test.cpp.o
[2075/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.fabsf_test.__unit__.__NO_FMA_OPT.__build__.dir/fabsf_test.cpp.o
[2076/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.fadd_test.__unit__.__NO_FMA_OPT.__build__.dir/fadd_test.cpp.o
[2077/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.faddl_test.__unit__.__NO_FMA_OPT.__build__.dir/faddl_test.cpp.o
[2078/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.truncf_test.__unit__.__build__.dir/truncf_test.cpp.o
[2079/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.faddl_test.__unit__.__build__.dir/faddl_test.cpp.o
[2080/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.trunc_test.__unit__.__build__.dir/trunc_test.cpp.o
[2081/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.lround_test.__unit__.__build__.dir/lround_test.cpp.o
FAILED: libc/test/src/math/CMakeFiles/libc.test.src.math.lround_test.__unit__.__build__.dir/lround_test.cpp.o 
/usr/local/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_21_0_0_git -D_DEBUG -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/libc -I/home/libcrv32buildbot/gmp+mpfr/include -isystem /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/libc/include -mabi=ilp32d -march=rv32imafdc --target=riscv32-unknown-linux-gnu --sysroot=/opt/riscv/sysroot --gcc-toolchain=/opt/riscv -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -Xclang -fno-pch-timestamp -g -std=gnu++17 --target=riscv32-unknown-linux-gnu -D__LIBC_USE_BUILTIN_ISNAN -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_LENGTH_IMPL=element -DLIBC_COPT_FIND_FIRST_CHARACTER_IMPL=element -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -DLIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY -DLIBC_CONF_WCTYPE_MODE=LIBC_WCTYPE_MODE_ASCII -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ffixed-point -Wall -Wextra -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 -DLIBC_COMPILER_HAS_STDC_FENV_ACCESS -DLIBC_TEST=UNIT -MD -MT libc/test/src/math/CMakeFiles/libc.test.src.math.lround_test.__unit__.__build__.dir/lround_test.cpp.o -MF libc/test/src/math/CMakeFiles/libc.test.src.math.lround_test.__unit__.__build__.dir/lround_test.cpp.o.d -o libc/test/src/math/CMakeFiles/libc.test.src.math.lround_test.__unit__.__build__.dir/lround_test.cpp.o -c /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/math/lround_test.cpp
In file included from /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/math/lround_test.cpp:9:
In file included from /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/math/RoundToIntegerTest.h:13:
In file included from /opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/cfenv:38:
In file included from /opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/riscv32-unknown-linux-gnu/bits/c++config.h:679:
/opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/riscv32-unknown-linux-gnu/bits/os_defines.h:44:5: error: function-like macro '__GLIBC_PREREQ' is not defined
   44 | #if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
      |     ^
/opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/riscv32-unknown-linux-gnu/bits/os_defines.h:55:5: error: function-like macro '__GLIBC_PREREQ' is not defined
   55 | #if __GLIBC_PREREQ(2, 26) \
      |     ^
/opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/riscv32-unknown-linux-gnu/bits/os_defines.h:66:6: error: function-like macro '__GLIBC_PREREQ' is not defined
   66 | # if __GLIBC_PREREQ(2, 27)
      |      ^
/opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/riscv32-unknown-linux-gnu/bits/os_defines.h:78:6: error: function-like macro '__GLIBC_PREREQ' is not defined
   78 | # if __GLIBC_PREREQ(2, 34)
      |      ^
4 errors generated.
[2082/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.fabsl_test.__unit__.__NO_FMA_OPT.__build__.dir/fabsl_test.cpp.o
[2083/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.ceilf_test.__unit__.__build__.dir/ceilf_test.cpp.o
[2084/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.ceil_test.__unit__.__build__.dir/ceil_test.cpp.o
[2085/7111] Building CXX object libc/test/src/math/CMakeFiles/libc.test.src.math.llround_test.__unit__.__build__.dir/llround_test.cpp.o
FAILED: libc/test/src/math/CMakeFiles/libc.test.src.math.llround_test.__unit__.__build__.dir/llround_test.cpp.o 
/usr/local/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_21_0_0_git -D_DEBUG -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc -I/home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/libc -I/home/libcrv32buildbot/gmp+mpfr/include -isystem /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/build/libc/include -mabi=ilp32d -march=rv32imafdc --target=riscv32-unknown-linux-gnu --sysroot=/opt/riscv/sysroot --gcc-toolchain=/opt/riscv -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -Xclang -fno-pch-timestamp -g -std=gnu++17 --target=riscv32-unknown-linux-gnu -D__LIBC_USE_BUILTIN_ISNAN -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_LENGTH_IMPL=element -DLIBC_COPT_FIND_FIRST_CHARACTER_IMPL=element -DLIBC_ADD_NULL_CHECKS -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_DEFAULT -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_PLATFORM -DLIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY -DLIBC_CONF_WCTYPE_MODE=LIBC_WCTYPE_MODE_ASCII -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -fpie -DLIBC_FULL_BUILD -ffreestanding -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ffixed-point -Wall -Wextra -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 -DLIBC_COMPILER_HAS_STDC_FENV_ACCESS -DLIBC_TEST=UNIT -MD -MT libc/test/src/math/CMakeFiles/libc.test.src.math.llround_test.__unit__.__build__.dir/llround_test.cpp.o -MF libc/test/src/math/CMakeFiles/libc.test.src.math.llround_test.__unit__.__build__.dir/llround_test.cpp.o.d -o libc/test/src/math/CMakeFiles/libc.test.src.math.llround_test.__unit__.__build__.dir/llround_test.cpp.o -c /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/math/llround_test.cpp
In file included from /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/math/llround_test.cpp:9:
In file included from /home/libcrv32buildbot/bbroot/libc-riscv32-qemu-yocto-fullbuild-dbg/llvm-project/libc/test/src/math/RoundToIntegerTest.h:13:
In file included from /opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/cfenv:38:
In file included from /opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/riscv32-unknown-linux-gnu/bits/c++config.h:679:
/opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/riscv32-unknown-linux-gnu/bits/os_defines.h:44:5: error: function-like macro '__GLIBC_PREREQ' is not defined
   44 | #if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
      |     ^
/opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/riscv32-unknown-linux-gnu/bits/os_defines.h:55:5: error: function-like macro '__GLIBC_PREREQ' is not defined
   55 | #if __GLIBC_PREREQ(2, 26) \
      |     ^
/opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/riscv32-unknown-linux-gnu/bits/os_defines.h:66:6: error: function-like macro '__GLIBC_PREREQ' is not defined
   66 | # if __GLIBC_PREREQ(2, 27)
      |      ^
/opt/riscv/lib/gcc/riscv32-unknown-linux-gnu/13.2.0/../../../../riscv32-unknown-linux-gnu/include/c++/13.2.0/riscv32-unknown-linux-gnu/bits/os_defines.h:78:6: error: function-like macro '__GLIBC_PREREQ' is not defined

```

</details>

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


More information about the libc-commits mailing list