[libc-commits] [libc] [libc][math][c23] Add f16fma{, l, f128} C23 math function (PR #96711)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Thu Jun 27 11:47:09 PDT 2024


llvm-ci wrote:

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

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)
...
[584/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_leading_zero_uc.__internal__.dir/stdc_first_leading_zero_uc.cpp.o
[585/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_leading_zero_us.__internal__.dir/stdc_first_leading_zero_us.cpp.o
[586/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_leading_zero_ui.__internal__.dir/stdc_first_leading_zero_ui.cpp.o
[587/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_leading_zero_ul.__internal__.dir/stdc_first_leading_zero_ul.cpp.o
[588/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_leading_one_uc.__internal__.dir/stdc_first_leading_one_uc.cpp.o
[589/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_leading_one_ull.__internal__.dir/stdc_first_leading_one_ull.cpp.o
[590/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_trailing_zero_us.__internal__.dir/stdc_first_trailing_zero_us.cpp.o
[591/3056] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.coshf.dir/coshf.cpp.o
[592/3056] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.sinhf.__internal__.dir/sinhf.cpp.o
[593/3056] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fma.__NO_FMA_OPT.__internal__.dir/fma.cpp.o
FAILED: projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fma.__NO_FMA_OPT.__internal__.dir/fma.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/src/math/generic -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/math/generic -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-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -O3 -std=c++17 -MD -MT projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fma.__NO_FMA_OPT.__internal__.dir/fma.cpp.o -MF projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fma.__NO_FMA_OPT.__internal__.dir/fma.cpp.o.d -o projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fma.__NO_FMA_OPT.__internal__.dir/fma.cpp.o -c /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/math/generic/fma.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/integer_to_string.h:70,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/libc_assert.h:25,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/FPUtil/FPBits.h:15,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/FPUtil/BasicOperations.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/FPUtil/generic/FMA.h:15,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/FPUtil/FMA.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/math/generic/fma.cpp:12:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/big_int.h: In instantiation of ‘constexpr __llvm_libc_19_0_0_git::BigInt<Bits, Signed, WordType>::BigInt(T) [with T = bool; <template-parameter-2-2> = void; long unsigned int Bits = 128; bool Signed = false; WordType = long unsigned int]’:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/FPUtil/generic/FMA.h:269:19:   required from ‘__llvm_libc_19_0_0_git::cpp::enable_if_t<((is_floating_point_v<OutType> && is_floating_point_v<InType>) && (sizeof (OutType) <= sizeof (InType))), OutType> __llvm_libc_19_0_0_git::fputil::generic::fma(InType, InType, InType) [with OutType = double; InType = double; __llvm_libc_19_0_0_git::cpp::enable_if_t<((is_floating_point_v<OutType> && is_floating_point_v<InType>) && (sizeof (OutType) <= sizeof (InType))), OutType> = double]’
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/FPUtil/FMA.h:22:31:   required from ‘OutType __llvm_libc_19_0_0_git::fputil::fma(InType, InType, InType) [with OutType = double; InType = double]’
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/math/generic/fma.cpp:17:29:   required from here
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/big_int.h:393:38: error: comparison of constant ‘0’ with boolean expression is always false [-Werror=bool-compare]
  393 |     const bool is_neg = Signed && (v < 0);
      |                                   ~~~^~~~
cc1plus: all warnings being treated as errors
[594/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_leading_zero_ull.__internal__.dir/stdc_first_leading_zero_ull.cpp.o
[595/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_leading_one_ui.__internal__.dir/stdc_first_leading_one_ui.cpp.o
[596/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_leading_one_ul.__internal__.dir/stdc_first_leading_one_ul.cpp.o
[597/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_trailing_zero_uc.__internal__.dir/stdc_first_trailing_zero_uc.cpp.o
[598/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_trailing_zero_ui.__internal__.dir/stdc_first_trailing_zero_ui.cpp.o
[599/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_trailing_one_ui.__internal__.dir/stdc_first_trailing_one_ui.cpp.o
[600/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_trailing_zero_ull.__internal__.dir/stdc_first_trailing_zero_ull.cpp.o
[601/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_trailing_one_ul.__internal__.dir/stdc_first_trailing_one_ul.cpp.o
[602/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_trailing_zero_ul.__internal__.dir/stdc_first_trailing_zero_ul.cpp.o
[603/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_trailing_one_us.__internal__.dir/stdc_first_trailing_one_us.cpp.o
[604/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_count_zeros_uc.__internal__.dir/stdc_count_zeros_uc.cpp.o
[605/3056] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fma.__NO_FMA_OPT.dir/fma.cpp.o
FAILED: projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fma.__NO_FMA_OPT.dir/fma.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/src/math/generic -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/math/generic -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-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -O3 -DLIBC_COPT_PUBLIC_PACKAGING -std=c++17 -MD -MT projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fma.__NO_FMA_OPT.dir/fma.cpp.o -MF projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fma.__NO_FMA_OPT.dir/fma.cpp.o.d -o projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fma.__NO_FMA_OPT.dir/fma.cpp.o -c /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/math/generic/fma.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/integer_to_string.h:70,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/libc_assert.h:25,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/FPUtil/FPBits.h:15,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/FPUtil/BasicOperations.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/FPUtil/generic/FMA.h:15,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/FPUtil/FMA.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/math/generic/fma.cpp:12:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/big_int.h: In instantiation of ‘constexpr __llvm_libc_19_0_0_git::BigInt<Bits, Signed, WordType>::BigInt(T) [with T = bool; <template-parameter-2-2> = void; long unsigned int Bits = 128; bool Signed = false; WordType = long unsigned int]’:
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[584/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_leading_zero_uc.__internal__.dir/stdc_first_leading_zero_uc.cpp.o
[585/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_leading_zero_us.__internal__.dir/stdc_first_leading_zero_us.cpp.o
[586/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_leading_zero_ui.__internal__.dir/stdc_first_leading_zero_ui.cpp.o
[587/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_leading_zero_ul.__internal__.dir/stdc_first_leading_zero_ul.cpp.o
[588/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_leading_one_uc.__internal__.dir/stdc_first_leading_one_uc.cpp.o
[589/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_leading_one_ull.__internal__.dir/stdc_first_leading_one_ull.cpp.o
[590/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_trailing_zero_us.__internal__.dir/stdc_first_trailing_zero_us.cpp.o
[591/3056] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.coshf.dir/coshf.cpp.o
[592/3056] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.sinhf.__internal__.dir/sinhf.cpp.o
[593/3056] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fma.__NO_FMA_OPT.__internal__.dir/fma.cpp.o
FAILED: projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fma.__NO_FMA_OPT.__internal__.dir/fma.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/src/math/generic -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/math/generic -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-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -O3 -std=c++17 -MD -MT projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fma.__NO_FMA_OPT.__internal__.dir/fma.cpp.o -MF projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fma.__NO_FMA_OPT.__internal__.dir/fma.cpp.o.d -o projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fma.__NO_FMA_OPT.__internal__.dir/fma.cpp.o -c /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/math/generic/fma.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/integer_to_string.h:70,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/libc_assert.h:25,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/FPUtil/FPBits.h:15,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/FPUtil/BasicOperations.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/FPUtil/generic/FMA.h:15,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/FPUtil/FMA.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/math/generic/fma.cpp:12:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/big_int.h: In instantiation of ‘constexpr __llvm_libc_19_0_0_git::BigInt<Bits, Signed, WordType>::BigInt(T) [with T = bool; <template-parameter-2-2> = void; long unsigned int Bits = 128; bool Signed = false; WordType = long unsigned int]’:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/FPUtil/generic/FMA.h:269:19:   required from ‘__llvm_libc_19_0_0_git::cpp::enable_if_t<((is_floating_point_v<OutType> && is_floating_point_v<InType>) && (sizeof (OutType) <= sizeof (InType))), OutType> __llvm_libc_19_0_0_git::fputil::generic::fma(InType, InType, InType) [with OutType = double; InType = double; __llvm_libc_19_0_0_git::cpp::enable_if_t<((is_floating_point_v<OutType> && is_floating_point_v<InType>) && (sizeof (OutType) <= sizeof (InType))), OutType> = double]’
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/FPUtil/FMA.h:22:31:   required from ‘OutType __llvm_libc_19_0_0_git::fputil::fma(InType, InType, InType) [with OutType = double; InType = double]’
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/math/generic/fma.cpp:17:29:   required from here
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/big_int.h:393:38: error: comparison of constant ‘0’ with boolean expression is always false [-Werror=bool-compare]
  393 |     const bool is_neg = Signed && (v < 0);
      |                                   ~~~^~~~
cc1plus: all warnings being treated as errors
[594/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_leading_zero_ull.__internal__.dir/stdc_first_leading_zero_ull.cpp.o
[595/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_leading_one_ui.__internal__.dir/stdc_first_leading_one_ui.cpp.o
[596/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_leading_one_ul.__internal__.dir/stdc_first_leading_one_ul.cpp.o
[597/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_trailing_zero_uc.__internal__.dir/stdc_first_trailing_zero_uc.cpp.o
[598/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_trailing_zero_ui.__internal__.dir/stdc_first_trailing_zero_ui.cpp.o
[599/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_trailing_one_ui.__internal__.dir/stdc_first_trailing_one_ui.cpp.o
[600/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_trailing_zero_ull.__internal__.dir/stdc_first_trailing_zero_ull.cpp.o
[601/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_trailing_one_ul.__internal__.dir/stdc_first_trailing_one_ul.cpp.o
[602/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_trailing_zero_ul.__internal__.dir/stdc_first_trailing_zero_ul.cpp.o
[603/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_first_trailing_one_us.__internal__.dir/stdc_first_trailing_one_us.cpp.o
[604/3056] Building CXX object projects/libc/src/stdbit/CMakeFiles/libc.src.stdbit.stdc_count_zeros_uc.__internal__.dir/stdc_count_zeros_uc.cpp.o
[605/3056] Building CXX object projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fma.__NO_FMA_OPT.dir/fma.cpp.o
FAILED: projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fma.__NO_FMA_OPT.dir/fma.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/src/math/generic -I/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/math/generic -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-builtin -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -O3 -DLIBC_COPT_PUBLIC_PACKAGING -std=c++17 -MD -MT projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fma.__NO_FMA_OPT.dir/fma.cpp.o -MF projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fma.__NO_FMA_OPT.dir/fma.cpp.o.d -o projects/libc/src/math/generic/CMakeFiles/libc.src.math.generic.fma.__NO_FMA_OPT.dir/fma.cpp.o -c /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/math/generic/fma.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/integer_to_string.h:70,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/libc_assert.h:25,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/FPUtil/FPBits.h:15,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/FPUtil/BasicOperations.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/FPUtil/generic/FMA.h:15,
                 from /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/FPUtil/FMA.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/math/generic/fma.cpp:12:
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/big_int.h: In instantiation of ‘constexpr __llvm_libc_19_0_0_git::BigInt<Bits, Signed, WordType>::BigInt(T) [with T = bool; <template-parameter-2-2> = void; long unsigned int Bits = 128; bool Signed = false; WordType = long unsigned int]’:

```

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


More information about the libc-commits mailing list