Skip to content

Instantly share code, notes, and snippets.

@nickdesaulniers
Created October 3, 2024 15:55
Show Gist options
  • Save nickdesaulniers/3c9892af61273db863fc08626ac69c75 to your computer and use it in GitHub Desktop.
Save nickdesaulniers/3c9892af61273db863fc08626ac69c75 to your computer and use it in GitHub Desktop.
commit b0fb5270bc85dd049ddb5f4308e04136256d6783
Author: Nick Desaulniers <[email protected]>
Date: Thu Oct 3 08:18:10 2024 -0700
WIP fpbits
diff --git a/libc/src/__support/FPUtil/FPBits.h b/libc/src/__support/FPUtil/FPBits.h
index 5d1f633bb56e..69307653a8e8 100644
--- a/libc/src/__support/FPUtil/FPBits.h
+++ b/libc/src/__support/FPUtil/FPBits.h
@@ -121,7 +121,7 @@ template <> struct FPLayout<FPType::IEEE754_Binary128> {
};
template <> struct FPLayout<FPType::X86_Binary80> {
- using StorageType = UInt128;
+ using StorageType = BigInt<__SIZEOF_LONG_DOUBLE__ * CHAR_BIT, false>;
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 1;
LIBC_INLINE_VAR static constexpr int EXP_LEN = 15;
LIBC_INLINE_VAR static constexpr int SIG_LEN = 64;
diff --git a/libc/src/__support/big_int.h b/libc/src/__support/big_int.h
index 681782d57319..0cb261c15878 100644
--- a/libc/src/__support/big_int.h
+++ b/libc/src/__support/big_int.h
@@ -981,6 +981,7 @@ struct WordTypeSelector : cpp::type_identity<
// Except if we request 16 or 32 bits explicitly.
template <> struct WordTypeSelector<16> : cpp::type_identity<uint16_t> {};
template <> struct WordTypeSelector<32> : cpp::type_identity<uint32_t> {};
+template <> struct WordTypeSelector<96> : cpp::type_identity<uint32_t> {};
template <size_t Bits>
using WordTypeSelectorT = typename WordTypeSelector<Bits>::type;
} // namespace internal
[1/33] Building CXX object libc/startup/linux/x86_64/CMakeFiles/libc.startup.linux.x86_64.start.dir/start.cpp.o
FAILED: libc/startup/linux/x86_64/CMakeFiles/libc.startup.linux.x86_64.start.dir/start.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -fno-stack-protector -MD -MT libc/startup/linux/x86_64/CMakeFiles/libc.startup.linux.x86_64.start.dir/start.cpp.o -MF libc/startup/linux/x86_64/CMakeFiles/libc.startup.linux.x86_64.start.dir/start.cpp.o.d -o libc/startup/linux/x86_64/CMakeFiles/libc.startup.linux.x86_64.start.dir/start.cpp.o -c /android0/llvm-project/libc/startup/linux/x86_64/start.cpp
/android0/llvm-project/libc/startup/linux/x86_64/start.cpp:8:10: fatal error: 'src/__support/macros/architectures.h' file not found
8 | #include "src/__support/macros/architectures.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[2/33] Building CXX object libc/src/setjmp/x86_64/CMakeFiles/libc.src.setjmp.x86_64.setjmp.dir/setjmp.cpp.o
FAILED: libc/src/setjmp/x86_64/CMakeFiles/libc.src.setjmp.x86_64.setjmp.dir/setjmp.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -O3 -ftrivial-auto-var-init=uninitialized -DLIBC_COPT_PUBLIC_PACKAGING -MD -MT libc/src/setjmp/x86_64/CMakeFiles/libc.src.setjmp.x86_64.setjmp.dir/setjmp.cpp.o -MF libc/src/setjmp/x86_64/CMakeFiles/libc.src.setjmp.x86_64.setjmp.dir/setjmp.cpp.o.d -o libc/src/setjmp/x86_64/CMakeFiles/libc.src.setjmp.x86_64.setjmp.dir/setjmp.cpp.o -c /android0/llvm-project/libc/src/setjmp/x86_64/setjmp.cpp
In file included from /android0/llvm-project/libc/src/setjmp/x86_64/setjmp.cpp:11:
In file included from /android0/llvm-project/libc/src/setjmp/setjmp_impl.h:14:
In file included from /android0/llvm-project/libc/hdr/types/jmp_buf.h:14:
/android0/llvm-project/libc/include/llvm-libc-types/jmp_buf.h:44:2: error: "__jmp_buf not available for your target architecture."
44 | #error "__jmp_buf not available for your target architecture."
| ^
/android0/llvm-project/libc/src/setjmp/x86_64/setjmp.cpp:14:2: error: "Invalid file include"
14 | #error "Invalid file include"
| ^
/android0/llvm-project/libc/src/setjmp/x86_64/setjmp.cpp:30:48: error: no member named 'rbx' in '__jmp_buf'
30 | LIBC_INLINE_ASM("mov %1, %0\n\t" : "=m"(buf->rbx) : "r"(rbx) :);
| ~~~ ^
/android0/llvm-project/libc/src/setjmp/x86_64/setjmp.cpp:31:48: error: no member named 'r12' in '__jmp_buf'
31 | LIBC_INLINE_ASM("mov %1, %0\n\t" : "=m"(buf->r12) : "r"(r12) :);
| ~~~ ^
/android0/llvm-project/libc/src/setjmp/x86_64/setjmp.cpp:32:48: error: no member named 'r13' in '__jmp_buf'
32 | LIBC_INLINE_ASM("mov %1, %0\n\t" : "=m"(buf->r13) : "r"(r13) :);
| ~~~ ^
/android0/llvm-project/libc/src/setjmp/x86_64/setjmp.cpp:33:48: error: no member named 'r14' in '__jmp_buf'
33 | LIBC_INLINE_ASM("mov %1, %0\n\t" : "=m"(buf->r14) : "r"(r14) :);
| ~~~ ^
/android0/llvm-project/libc/src/setjmp/x86_64/setjmp.cpp:34:48: error: no member named 'r15' in '__jmp_buf'
34 | LIBC_INLINE_ASM("mov %1, %0\n\t" : "=m"(buf->r15) : "r"(r15) :);
| ~~~ ^
/android0/llvm-project/libc/src/setjmp/x86_64/setjmp.cpp:44:8: error: no member named 'rbp' in '__jmp_buf'
44 | buf->rbp = *reinterpret_cast<__UINTPTR_TYPE__ *>(__builtin_frame_address(0));
| ~~~ ^
/android0/llvm-project/libc/src/setjmp/x86_64/setjmp.cpp:51:8: error: no member named 'rsp' in '__jmp_buf'
51 | buf->rsp = reinterpret_cast<__UINTPTR_TYPE__>(__builtin_frame_address(0)) +
| ~~~ ^
/android0/llvm-project/libc/src/setjmp/x86_64/setjmp.cpp:53:8: error: no member named 'rip' in '__jmp_buf'
53 | buf->rip = reinterpret_cast<__UINTPTR_TYPE__>(__builtin_return_address(0));
| ~~~ ^
10 errors generated.
[3/33] Building CXX object libc/src/setjmp/x86_64/CMakeFiles/libc.src.setjmp.x86_64.longjmp.dir/longjmp.cpp.o
FAILED: libc/src/setjmp/x86_64/CMakeFiles/libc.src.setjmp.x86_64.longjmp.dir/longjmp.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -O3 -fomit-frame-pointer -DLIBC_COPT_PUBLIC_PACKAGING -MD -MT libc/src/setjmp/x86_64/CMakeFiles/libc.src.setjmp.x86_64.longjmp.dir/longjmp.cpp.o -MF libc/src/setjmp/x86_64/CMakeFiles/libc.src.setjmp.x86_64.longjmp.dir/longjmp.cpp.o.d -o libc/src/setjmp/x86_64/CMakeFiles/libc.src.setjmp.x86_64.longjmp.dir/longjmp.cpp.o -c /android0/llvm-project/libc/src/setjmp/x86_64/longjmp.cpp
In file included from /android0/llvm-project/libc/src/setjmp/x86_64/longjmp.cpp:9:
In file included from /android0/llvm-project/libc/src/setjmp/longjmp.h:12:
In file included from /android0/llvm-project/libc/hdr/types/jmp_buf.h:14:
/android0/llvm-project/libc/include/llvm-libc-types/jmp_buf.h:44:2: error: "__jmp_buf not available for your target architecture."
44 | #error "__jmp_buf not available for your target architecture."
| ^
/android0/llvm-project/libc/src/setjmp/x86_64/longjmp.cpp:14:2: error: "Invalid file include"
14 | #error "Invalid file include"
| ^
/android0/llvm-project/libc/src/setjmp/x86_64/longjmp.cpp:35:59: error: no member named 'rbx' in '__jmp_buf'
35 | LIBC_INLINE_ASM("mov %1, %0\n\t" : "=r"(rbx) : "m"(buf->rbx) :);
| ~~~ ^
/android0/llvm-project/libc/src/setjmp/x86_64/longjmp.cpp:36:59: error: no member named 'rbp' in '__jmp_buf'
36 | LIBC_INLINE_ASM("mov %1, %0\n\t" : "=r"(rbp) : "m"(buf->rbp) :);
| ~~~ ^
/android0/llvm-project/libc/src/setjmp/x86_64/longjmp.cpp:37:59: error: no member named 'r12' in '__jmp_buf'
37 | LIBC_INLINE_ASM("mov %1, %0\n\t" : "=r"(r12) : "m"(buf->r12) :);
| ~~~ ^
/android0/llvm-project/libc/src/setjmp/x86_64/longjmp.cpp:38:59: error: no member named 'r13' in '__jmp_buf'
38 | LIBC_INLINE_ASM("mov %1, %0\n\t" : "=r"(r13) : "m"(buf->r13) :);
| ~~~ ^
/android0/llvm-project/libc/src/setjmp/x86_64/longjmp.cpp:39:59: error: no member named 'r14' in '__jmp_buf'
39 | LIBC_INLINE_ASM("mov %1, %0\n\t" : "=r"(r14) : "m"(buf->r14) :);
| ~~~ ^
/android0/llvm-project/libc/src/setjmp/x86_64/longjmp.cpp:40:59: error: no member named 'r15' in '__jmp_buf'
40 | LIBC_INLINE_ASM("mov %1, %0\n\t" : "=r"(r15) : "m"(buf->r15) :);
| ~~~ ^
/android0/llvm-project/libc/src/setjmp/x86_64/longjmp.cpp:41:59: error: no member named 'rsp' in '__jmp_buf'
41 | LIBC_INLINE_ASM("mov %1, %0\n\t" : "=r"(rsp) : "m"(buf->rsp) :);
| ~~~ ^
/android0/llvm-project/libc/src/setjmp/x86_64/longjmp.cpp:42:46: error: no member named 'rip' in '__jmp_buf'
42 | LIBC_INLINE_ASM("jmp *%0\n\t" : : "m"(buf->rip));
| ~~~ ^
10 errors generated.
[4/33] Building CXX object libc/src/__support/threads/linux/CMakeFiles/libc.src.__support.threads.linux.thread.dir/thread.cpp.o
FAILED: libc/src/__support/threads/linux/CMakeFiles/libc.src.__support.threads.linux.thread.dir/thread.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -O3 -Wno-frame-address -MD -MT libc/src/__support/threads/linux/CMakeFiles/libc.src.__support.threads.linux.thread.dir/thread.cpp.o -MF libc/src/__support/threads/linux/CMakeFiles/libc.src.__support.threads.linux.thread.dir/thread.cpp.o.d -o libc/src/__support/threads/linux/CMakeFiles/libc.src.__support.threads.linux.thread.dir/thread.cpp.o -c /android0/llvm-project/libc/src/__support/threads/linux/thread.cpp
/android0/llvm-project/libc/src/__support/threads/linux/thread.cpp:65:2: error: "CLONE_RESULT_REGISTER not defined for your target architecture"
65 | #error "CLONE_RESULT_REGISTER not defined for your target architecture"
| ^
/android0/llvm-project/libc/src/__support/threads/linux/thread.cpp:317:2: error: "Unsupported architecture for the clone syscall."
317 | #error "Unsupported architecture for the clone syscall."
| ^
/android0/llvm-project/libc/src/__support/threads/linux/thread.cpp:320:7: error: use of undeclared identifier 'clone_result'
320 | if (clone_result == 0) {
| ^
/android0/llvm-project/libc/src/__support/threads/linux/thread.cpp:334:14: error: use of undeclared identifier 'clone_result'
334 | } else if (clone_result < 0) {
| ^
/android0/llvm-project/libc/src/__support/threads/linux/thread.cpp:336:30: error: use of undeclared identifier 'clone_result'
336 | return static_cast<int>(-clone_result);
| ^
5 errors generated.
[5/33] Building CXX object libc/src/stdlib/CMakeFiles/libc.src.stdlib.atof.dir/atof.cpp.o
FAILED: libc/src/stdlib/CMakeFiles/libc.src.stdlib.atof.dir/atof.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -MD -MT libc/src/stdlib/CMakeFiles/libc.src.stdlib.atof.dir/atof.cpp.o -MF libc/src/stdlib/CMakeFiles/libc.src.stdlib.atof.dir/atof.cpp.o.d -o libc/src/stdlib/CMakeFiles/libc.src.stdlib.atof.dir/atof.cpp.o -c /android0/llvm-project/libc/src/stdlib/atof.cpp
In file included from /android0/llvm-project/libc/src/stdlib/atof.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
In file included from /android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:15:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdlib/atof.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:12:
In file included from /android0/llvm-project/libc/src/__support/CPP/bit.h:15:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdlib/atof.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdlib/atof.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdlib/atof.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[6/33] Building CXX object libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtod.dir/strtod.cpp.o
FAILED: libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtod.dir/strtod.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -MD -MT libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtod.dir/strtod.cpp.o -MF libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtod.dir/strtod.cpp.o.d -o libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtod.dir/strtod.cpp.o -c /android0/llvm-project/libc/src/stdlib/strtod.cpp
In file included from /android0/llvm-project/libc/src/stdlib/strtod.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
In file included from /android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:15:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdlib/strtod.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:12:
In file included from /android0/llvm-project/libc/src/__support/CPP/bit.h:15:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdlib/strtod.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdlib/strtod.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdlib/strtod.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[7/33] Building CXX object libc/src/stdio/scanf_core/CMakeFiles/libc.src.stdio.scanf_core.converter.dir/ptr_converter.cpp.o
FAILED: libc/src/stdio/scanf_core/CMakeFiles/libc.src.stdio.scanf_core.converter.dir/ptr_converter.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -MD -MT libc/src/stdio/scanf_core/CMakeFiles/libc.src.stdio.scanf_core.converter.dir/ptr_converter.cpp.o -MF libc/src/stdio/scanf_core/CMakeFiles/libc.src.stdio.scanf_core.converter.dir/ptr_converter.cpp.o.d -o libc/src/stdio/scanf_core/CMakeFiles/libc.src.stdio.scanf_core.converter.dir/ptr_converter.cpp.o -c /android0/llvm-project/libc/src/stdio/scanf_core/ptr_converter.cpp
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/ptr_converter.cpp:12:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
In file included from /android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:15:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/ptr_converter.cpp:12:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:12:
In file included from /android0/llvm-project/libc/src/__support/CPP/bit.h:15:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/ptr_converter.cpp:12:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/ptr_converter.cpp:12:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/ptr_converter.cpp:12:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[8/33] Building CXX object libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtof.dir/strtof.cpp.o
FAILED: libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtof.dir/strtof.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -MD -MT libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtof.dir/strtof.cpp.o -MF libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtof.dir/strtof.cpp.o.d -o libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtof.dir/strtof.cpp.o -c /android0/llvm-project/libc/src/stdlib/strtof.cpp
In file included from /android0/llvm-project/libc/src/stdlib/strtof.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
In file included from /android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:15:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdlib/strtof.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:12:
In file included from /android0/llvm-project/libc/src/__support/CPP/bit.h:15:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdlib/strtof.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdlib/strtof.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdlib/strtof.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[9/33] Building CXX object libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtof_l.dir/strtof_l.cpp.o
FAILED: libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtof_l.dir/strtof_l.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -MD -MT libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtof_l.dir/strtof_l.cpp.o -MF libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtof_l.dir/strtof_l.cpp.o.d -o libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtof_l.dir/strtof_l.cpp.o -c /android0/llvm-project/libc/src/stdlib/strtof_l.cpp
In file included from /android0/llvm-project/libc/src/stdlib/strtof_l.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
In file included from /android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:15:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdlib/strtof_l.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:12:
In file included from /android0/llvm-project/libc/src/__support/CPP/bit.h:15:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdlib/strtof_l.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdlib/strtof_l.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdlib/strtof_l.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[10/33] Building CXX object libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtod_l.dir/strtod_l.cpp.o
FAILED: libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtod_l.dir/strtod_l.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -MD -MT libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtod_l.dir/strtod_l.cpp.o -MF libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtod_l.dir/strtod_l.cpp.o.d -o libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtod_l.dir/strtod_l.cpp.o -c /android0/llvm-project/libc/src/stdlib/strtod_l.cpp
In file included from /android0/llvm-project/libc/src/stdlib/strtod_l.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
In file included from /android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:15:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdlib/strtod_l.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:12:
In file included from /android0/llvm-project/libc/src/__support/CPP/bit.h:15:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdlib/strtod_l.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdlib/strtod_l.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdlib/strtod_l.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[11/33] Building CXX object libc/src/stdio/scanf_core/CMakeFiles/libc.src.stdio.scanf_core.converter.dir/int_converter.cpp.o
FAILED: libc/src/stdio/scanf_core/CMakeFiles/libc.src.stdio.scanf_core.converter.dir/int_converter.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -MD -MT libc/src/stdio/scanf_core/CMakeFiles/libc.src.stdio.scanf_core.converter.dir/int_converter.cpp.o -MF libc/src/stdio/scanf_core/CMakeFiles/libc.src.stdio.scanf_core.converter.dir/int_converter.cpp.o.d -o libc/src/stdio/scanf_core/CMakeFiles/libc.src.stdio.scanf_core.converter.dir/int_converter.cpp.o -c /android0/llvm-project/libc/src/stdio/scanf_core/int_converter.cpp
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/int_converter.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
In file included from /android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:15:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/int_converter.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:12:
In file included from /android0/llvm-project/libc/src/__support/CPP/bit.h:15:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/int_converter.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/int_converter.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/int_converter.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[12/33] Building CXX object libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtold.dir/strtold.cpp.o
FAILED: libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtold.dir/strtold.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -MD -MT libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtold.dir/strtold.cpp.o -MF libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtold.dir/strtold.cpp.o.d -o libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtold.dir/strtold.cpp.o -c /android0/llvm-project/libc/src/stdlib/strtold.cpp
In file included from /android0/llvm-project/libc/src/stdlib/strtold.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
In file included from /android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:15:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdlib/strtold.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:12:
In file included from /android0/llvm-project/libc/src/__support/CPP/bit.h:15:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdlib/strtold.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdlib/strtold.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdlib/strtold.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[13/33] Building CXX object libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtold_l.dir/strtold_l.cpp.o
FAILED: libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtold_l.dir/strtold_l.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -MD -MT libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtold_l.dir/strtold_l.cpp.o -MF libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtold_l.dir/strtold_l.cpp.o.d -o libc/src/stdlib/CMakeFiles/libc.src.stdlib.strtold_l.dir/strtold_l.cpp.o -c /android0/llvm-project/libc/src/stdlib/strtold_l.cpp
In file included from /android0/llvm-project/libc/src/stdlib/strtold_l.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
In file included from /android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:15:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdlib/strtold_l.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:12:
In file included from /android0/llvm-project/libc/src/__support/CPP/bit.h:15:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdlib/strtold_l.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdlib/strtold_l.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdlib/strtold_l.cpp:12:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[14/33] Building CXX object libc/src/stdio/scanf_core/CMakeFiles/libc.src.stdio.scanf_core.converter.dir/float_converter.cpp.o
FAILED: libc/src/stdio/scanf_core/CMakeFiles/libc.src.stdio.scanf_core.converter.dir/float_converter.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -MD -MT libc/src/stdio/scanf_core/CMakeFiles/libc.src.stdio.scanf_core.converter.dir/float_converter.cpp.o -MF libc/src/stdio/scanf_core/CMakeFiles/libc.src.stdio.scanf_core.converter.dir/float_converter.cpp.o.d -o libc/src/stdio/scanf_core/CMakeFiles/libc.src.stdio.scanf_core.converter.dir/float_converter.cpp.o -c /android0/llvm-project/libc/src/stdio/scanf_core/float_converter.cpp
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/float_converter.cpp:15:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
In file included from /android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:15:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/float_converter.cpp:15:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:12:
In file included from /android0/llvm-project/libc/src/__support/CPP/bit.h:15:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/float_converter.cpp:15:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/float_converter.cpp:15:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/float_converter.cpp:15:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[15/33] Building CXX object libc/src/stdio/scanf_core/CMakeFiles/libc.src.stdio.scanf_core.converter.dir/converter.cpp.o
FAILED: libc/src/stdio/scanf_core/CMakeFiles/libc.src.stdio.scanf_core.converter.dir/converter.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -MD -MT libc/src/stdio/scanf_core/CMakeFiles/libc.src.stdio.scanf_core.converter.dir/converter.cpp.o -MF libc/src/stdio/scanf_core/CMakeFiles/libc.src.stdio.scanf_core.converter.dir/converter.cpp.o.d -o libc/src/stdio/scanf_core/CMakeFiles/libc.src.stdio.scanf_core.converter.dir/converter.cpp.o -c /android0/llvm-project/libc/src/stdio/scanf_core/converter.cpp
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter.cpp:19:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/current_pos_converter.h:13:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
In file included from /android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:15:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter.cpp:19:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/current_pos_converter.h:13:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:12:
In file included from /android0/llvm-project/libc/src/__support/CPP/bit.h:15:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter.cpp:19:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/current_pos_converter.h:13:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter.cpp:19:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/current_pos_converter.h:13:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter.cpp:19:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/current_pos_converter.h:13:
In file included from /android0/llvm-project/libc/src/stdio/scanf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/__support/str_to_float.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[16/33] Building CXX object libc/src/stdio/CMakeFiles/libc.src.stdio.snprintf.dir/snprintf.cpp.o
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.snprintf.dir/snprintf.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.snprintf.dir/snprintf.cpp.o -MF libc/src/stdio/CMakeFiles/libc.src.stdio.snprintf.dir/snprintf.cpp.o.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.snprintf.dir/snprintf.cpp.o -c /android0/llvm-project/libc/src/stdio/snprintf.cpp
In file included from /android0/llvm-project/libc/src/stdio/snprintf.cpp:13:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
In file included from /android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:15:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdio/snprintf.cpp:13:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:15:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdio/snprintf.cpp:13:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/snprintf.cpp:13:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/snprintf.cpp:13:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[17/33] Building CXX object libc/src/stdio/printf_core/CMakeFiles/libc.src.stdio.printf_core.printf_main.dir/printf_main.cpp.o
FAILED: libc/src/stdio/printf_core/CMakeFiles/libc.src.stdio.printf_core.printf_main.dir/printf_main.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -MD -MT libc/src/stdio/printf_core/CMakeFiles/libc.src.stdio.printf_core.printf_main.dir/printf_main.cpp.o -MF libc/src/stdio/printf_core/CMakeFiles/libc.src.stdio.printf_core.printf_main.dir/printf_main.cpp.o.d -o libc/src/stdio/printf_core/CMakeFiles/libc.src.stdio.printf_core.printf_main.dir/printf_main.cpp.o -c /android0/llvm-project/libc/src/stdio/printf_core/printf_main.cpp
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.cpp:9:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
In file included from /android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:15:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.cpp:9:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:15:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.cpp:9:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.cpp:9:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.cpp:9:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[18/33] Building CXX object libc/src/stdio/CMakeFiles/libc.src.stdio.vasprintf.dir/vasprintf.cpp.o
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.vasprintf.dir/vasprintf.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.vasprintf.dir/vasprintf.cpp.o -MF libc/src/stdio/CMakeFiles/libc.src.stdio.vasprintf.dir/vasprintf.cpp.o.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.vasprintf.dir/vasprintf.cpp.o -c /android0/llvm-project/libc/src/stdio/vasprintf.cpp
In file included from /android0/llvm-project/libc/src/stdio/vasprintf.cpp:11:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vasprintf_internal.h:11:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
In file included from /android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:15:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdio/vasprintf.cpp:11:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vasprintf_internal.h:11:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:15:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdio/vasprintf.cpp:11:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vasprintf_internal.h:11:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/vasprintf.cpp:11:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vasprintf_internal.h:11:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/vasprintf.cpp:11:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vasprintf_internal.h:11:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[19/33] Building CXX object libc/src/stdio/CMakeFiles/libc.src.stdio.asprintf.dir/asprintf.cpp.o
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.asprintf.dir/asprintf.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.asprintf.dir/asprintf.cpp.o -MF libc/src/stdio/CMakeFiles/libc.src.stdio.asprintf.dir/asprintf.cpp.o.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.asprintf.dir/asprintf.cpp.o -c /android0/llvm-project/libc/src/stdio/asprintf.cpp
In file included from /android0/llvm-project/libc/src/stdio/asprintf.cpp:12:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vasprintf_internal.h:11:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
In file included from /android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:15:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdio/asprintf.cpp:12:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vasprintf_internal.h:11:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:15:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdio/asprintf.cpp:12:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vasprintf_internal.h:11:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/asprintf.cpp:12:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vasprintf_internal.h:11:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/asprintf.cpp:12:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vasprintf_internal.h:11:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[20/33] Building CXX object libc/src/stdio/CMakeFiles/libc.src.stdio.vsprintf.dir/vsprintf.cpp.o
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.vsprintf.dir/vsprintf.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.vsprintf.dir/vsprintf.cpp.o -MF libc/src/stdio/CMakeFiles/libc.src.stdio.vsprintf.dir/vsprintf.cpp.o.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.vsprintf.dir/vsprintf.cpp.o -c /android0/llvm-project/libc/src/stdio/vsprintf.cpp
In file included from /android0/llvm-project/libc/src/stdio/vsprintf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
In file included from /android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:15:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdio/vsprintf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:15:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdio/vsprintf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/vsprintf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/vsprintf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[21/33] Building CXX object libc/src/stdio/CMakeFiles/libc.src.stdio.sprintf.dir/sprintf.cpp.o
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.sprintf.dir/sprintf.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.sprintf.dir/sprintf.cpp.o -MF libc/src/stdio/CMakeFiles/libc.src.stdio.sprintf.dir/sprintf.cpp.o.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.sprintf.dir/sprintf.cpp.o -c /android0/llvm-project/libc/src/stdio/sprintf.cpp
In file included from /android0/llvm-project/libc/src/stdio/sprintf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
In file included from /android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:15:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdio/sprintf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:15:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdio/sprintf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/sprintf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/sprintf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[22/33] Building CXX object libc/src/stdio/CMakeFiles/libc.src.stdio.vsnprintf.dir/vsnprintf.cpp.o
FAILED: libc/src/stdio/CMakeFiles/libc.src.stdio.vsnprintf.dir/vsnprintf.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -MD -MT libc/src/stdio/CMakeFiles/libc.src.stdio.vsnprintf.dir/vsnprintf.cpp.o -MF libc/src/stdio/CMakeFiles/libc.src.stdio.vsnprintf.dir/vsnprintf.cpp.o.d -o libc/src/stdio/CMakeFiles/libc.src.stdio.vsnprintf.dir/vsnprintf.cpp.o -c /android0/llvm-project/libc/src/stdio/vsnprintf.cpp
In file included from /android0/llvm-project/libc/src/stdio/vsnprintf.cpp:13:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
In file included from /android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:15:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdio/vsnprintf.cpp:13:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:15:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdio/vsnprintf.cpp:13:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/vsnprintf.cpp:13:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/vsnprintf.cpp:13:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/printf_main.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[23/33] Building CXX object libc/src/stdio/printf_core/CMakeFiles/libc.src.stdio.printf_core.writer.dir/writer.cpp.o
FAILED: libc/src/stdio/printf_core/CMakeFiles/libc.src.stdio.printf_core.writer.dir/writer.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -MD -MT libc/src/stdio/printf_core/CMakeFiles/libc.src.stdio.printf_core.writer.dir/writer.cpp.o -MF libc/src/stdio/printf_core/CMakeFiles/libc.src.stdio.printf_core.writer.dir/writer.cpp.o.d -o libc/src/stdio/printf_core/CMakeFiles/libc.src.stdio.printf_core.writer.dir/writer.cpp.o -c /android0/llvm-project/libc/src/stdio/printf_core/writer.cpp
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.cpp:9:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
In file included from /android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:15:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.cpp:9:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:15:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.cpp:9:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.cpp:9:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.cpp:9:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/writer.h:15:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[24/33] Building CXX object libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vprintf.dir/vprintf.cpp.o
FAILED: libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vprintf.dir/vprintf.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -DLIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY=1 -MD -MT libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vprintf.dir/vprintf.cpp.o -MF libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vprintf.dir/vprintf.cpp.o.d -o libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vprintf.dir/vprintf.cpp.o -c /android0/llvm-project/libc/src/stdio/generic/vprintf.cpp
In file included from /android0/llvm-project/libc/src/stdio/generic/vprintf.cpp:11:
In file included from /android0/llvm-project/libc/src/__support/File/file.h:18:
In file included from /android0/llvm-project/libc/src/__support/threads/mutex.h:41:
In file included from /android0/llvm-project/libc/src/__support/threads/linux/mutex.h:14:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdio/generic/vprintf.cpp:11:
In file included from /android0/llvm-project/libc/src/__support/File/file.h:18:
In file included from /android0/llvm-project/libc/src/__support/threads/mutex.h:41:
In file included from /android0/llvm-project/libc/src/__support/threads/linux/mutex.h:13:
In file included from /android0/llvm-project/libc/src/__support/CPP/optional.h:12:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdio/generic/vprintf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vfprintf_internal.h:16:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/generic/vprintf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vfprintf_internal.h:16:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/generic/vprintf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vfprintf_internal.h:16:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[25/33] Building CXX object libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vfprintf.dir/vfprintf.cpp.o
FAILED: libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vfprintf.dir/vfprintf.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -DLIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY=1 -MD -MT libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vfprintf.dir/vfprintf.cpp.o -MF libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vfprintf.dir/vfprintf.cpp.o.d -o libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.vfprintf.dir/vfprintf.cpp.o -c /android0/llvm-project/libc/src/stdio/generic/vfprintf.cpp
In file included from /android0/llvm-project/libc/src/stdio/generic/vfprintf.cpp:11:
In file included from /android0/llvm-project/libc/src/__support/File/file.h:18:
In file included from /android0/llvm-project/libc/src/__support/threads/mutex.h:41:
In file included from /android0/llvm-project/libc/src/__support/threads/linux/mutex.h:14:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdio/generic/vfprintf.cpp:11:
In file included from /android0/llvm-project/libc/src/__support/File/file.h:18:
In file included from /android0/llvm-project/libc/src/__support/threads/mutex.h:41:
In file included from /android0/llvm-project/libc/src/__support/threads/linux/mutex.h:13:
In file included from /android0/llvm-project/libc/src/__support/CPP/optional.h:12:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdio/generic/vfprintf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vfprintf_internal.h:16:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/generic/vfprintf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vfprintf_internal.h:16:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/generic/vfprintf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vfprintf_internal.h:16:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[26/33] Building CXX object libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fprintf.dir/fprintf.cpp.o
FAILED: libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fprintf.dir/fprintf.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -DLIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY=1 -MD -MT libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fprintf.dir/fprintf.cpp.o -MF libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fprintf.dir/fprintf.cpp.o.d -o libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.fprintf.dir/fprintf.cpp.o -c /android0/llvm-project/libc/src/stdio/generic/fprintf.cpp
In file included from /android0/llvm-project/libc/src/stdio/generic/fprintf.cpp:11:
In file included from /android0/llvm-project/libc/src/__support/File/file.h:18:
In file included from /android0/llvm-project/libc/src/__support/threads/mutex.h:41:
In file included from /android0/llvm-project/libc/src/__support/threads/linux/mutex.h:14:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdio/generic/fprintf.cpp:11:
In file included from /android0/llvm-project/libc/src/__support/File/file.h:18:
In file included from /android0/llvm-project/libc/src/__support/threads/mutex.h:41:
In file included from /android0/llvm-project/libc/src/__support/threads/linux/mutex.h:13:
In file included from /android0/llvm-project/libc/src/__support/CPP/optional.h:12:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdio/generic/fprintf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vfprintf_internal.h:16:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/generic/fprintf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vfprintf_internal.h:16:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/generic/fprintf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vfprintf_internal.h:16:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[27/33] Building CXX object libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.printf.dir/printf.cpp.o
FAILED: libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.printf.dir/printf.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -DLIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY=1 -MD -MT libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.printf.dir/printf.cpp.o -MF libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.printf.dir/printf.cpp.o.d -o libc/src/stdio/generic/CMakeFiles/libc.src.stdio.generic.printf.dir/printf.cpp.o -c /android0/llvm-project/libc/src/stdio/generic/printf.cpp
In file included from /android0/llvm-project/libc/src/stdio/generic/printf.cpp:11:
In file included from /android0/llvm-project/libc/src/__support/File/file.h:18:
In file included from /android0/llvm-project/libc/src/__support/threads/mutex.h:41:
In file included from /android0/llvm-project/libc/src/__support/threads/linux/mutex.h:14:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdio/generic/printf.cpp:11:
In file included from /android0/llvm-project/libc/src/__support/File/file.h:18:
In file included from /android0/llvm-project/libc/src/__support/threads/mutex.h:41:
In file included from /android0/llvm-project/libc/src/__support/threads/linux/mutex.h:13:
In file included from /android0/llvm-project/libc/src/__support/CPP/optional.h:12:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdio/generic/printf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vfprintf_internal.h:16:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/generic/printf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vfprintf_internal.h:16:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/generic/printf.cpp:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/vfprintf_internal.h:16:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[28/33] Building CXX object libc/src/stdio/printf_core/CMakeFiles/libc.src.stdio.printf_core.converter.dir/converter.cpp.o
FAILED: libc/src/stdio/printf_core/CMakeFiles/libc.src.stdio.printf_core.converter.dir/converter.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -MD -MT libc/src/stdio/printf_core/CMakeFiles/libc.src.stdio.printf_core.converter.dir/converter.cpp.o -MF libc/src/stdio/printf_core/CMakeFiles/libc.src.stdio.printf_core.converter.dir/converter.cpp.o.d -o libc/src/stdio/printf_core/CMakeFiles/libc.src.stdio.printf_core.converter.dir/converter.cpp.o -c /android0/llvm-project/libc/src/stdio/printf_core/converter.cpp
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter.cpp:9:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter.h:13:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
In file included from /android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:15:
In file included from /android0/llvm-project/libc/src/__support/libc_assert.h:26:
In file included from /android0/llvm-project/libc/src/__support/integer_to_string.h:70:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter.cpp:9:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter.h:13:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:15:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter.cpp:9:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter.h:13:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter.cpp:9:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter.h:13:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter.cpp:9:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter.h:13:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[29/33] Building CXX object libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromd.dir/strfromd.cpp.o
FAILED: libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromd.dir/strfromd.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -MD -MT libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromd.dir/strfromd.cpp.o -MF libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromd.dir/strfromd.cpp.o.d -o libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromd.dir/strfromd.cpp.o -c /android0/llvm-project/libc/src/stdlib/strfromd.cpp
In file included from /android0/llvm-project/libc/src/stdlib/strfromd.cpp:11:
In file included from /android0/llvm-project/libc/src/stdlib/str_from_util.h:22:
In file included from /android0/llvm-project/libc/src/__support/str_to_integer.h:18:
In file included from /android0/llvm-project/libc/src/__support/uint128.h:12:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdlib/strfromd.cpp:11:
In file included from /android0/llvm-project/libc/src/stdlib/str_from_util.h:20:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdlib/strfromd.cpp:11:
In file included from /android0/llvm-project/libc/src/stdlib/str_from_util.h:23:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:17:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/string_converter.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdlib/strfromd.cpp:11:
In file included from /android0/llvm-project/libc/src/stdlib/str_from_util.h:23:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:17:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/string_converter.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdlib/strfromd.cpp:11:
In file included from /android0/llvm-project/libc/src/stdlib/str_from_util.h:23:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:17:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/string_converter.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[30/33] Building CXX object libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfroml.dir/strfroml.cpp.o
FAILED: libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfroml.dir/strfroml.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -MD -MT libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfroml.dir/strfroml.cpp.o -MF libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfroml.dir/strfroml.cpp.o.d -o libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfroml.dir/strfroml.cpp.o -c /android0/llvm-project/libc/src/stdlib/strfroml.cpp
In file included from /android0/llvm-project/libc/src/stdlib/strfroml.cpp:11:
In file included from /android0/llvm-project/libc/src/stdlib/str_from_util.h:22:
In file included from /android0/llvm-project/libc/src/__support/str_to_integer.h:18:
In file included from /android0/llvm-project/libc/src/__support/uint128.h:12:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdlib/strfroml.cpp:11:
In file included from /android0/llvm-project/libc/src/stdlib/str_from_util.h:20:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdlib/strfroml.cpp:11:
In file included from /android0/llvm-project/libc/src/stdlib/str_from_util.h:23:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:17:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/string_converter.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdlib/strfroml.cpp:11:
In file included from /android0/llvm-project/libc/src/stdlib/str_from_util.h:23:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:17:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/string_converter.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdlib/strfroml.cpp:11:
In file included from /android0/llvm-project/libc/src/stdlib/str_from_util.h:23:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:17:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/string_converter.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[31/33] Building CXX object libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromf.dir/strfromf.cpp.o
FAILED: libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromf.dir/strfromf.cpp.o
/android0/llvm-project/llvm/build/bin/clang++ -DLIBC_NAMESPACE=__llvm_libc_20_0_0_git -I/android0/llvm-project/libc -isystem /android0/llvm-project/build_i386/libc/include -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 --target=i386-linux-gnu -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_ADD_NULL_CHECKS -fpie -ffreestanding -DLIBC_FULL_BUILD -nostdlibinc -idirafter/usr/include -ffixed-point -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 -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -DLIBC_COPT_PUBLIC_PACKAGING -MD -MT libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromf.dir/strfromf.cpp.o -MF libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromf.dir/strfromf.cpp.o.d -o libc/src/stdlib/CMakeFiles/libc.src.stdlib.strfromf.dir/strfromf.cpp.o -c /android0/llvm-project/libc/src/stdlib/strfromf.cpp
In file included from /android0/llvm-project/libc/src/stdlib/strfromf.cpp:11:
In file included from /android0/llvm-project/libc/src/stdlib/str_from_util.h:22:
In file included from /android0/llvm-project/libc/src/__support/str_to_integer.h:18:
In file included from /android0/llvm-project/libc/src/__support/uint128.h:12:
/android0/llvm-project/libc/src/__support/big_int.h:353:29: error: static assertion failed due to requirement '96U % WORD_SIZE == 0': Number of bits in BigInt should be a multiple of WORD_SIZE.
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ^~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:150:7: note: in instantiation of template class '__llvm_libc_20_0_0_git::BigInt<96, false>' requested here
150 | sizeof(StorageType) * CHAR_BIT;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:151:17: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::STORAGE_LEN' requested here
151 | static_assert(STORAGE_LEN >= TOTAL_LEN);
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:353:46: note: expression evaluates to '32 == 0'
353 | static_assert(Bits > 0 && Bits % WORD_SIZE == 0,
| ~~~~~~~~~~~~~~~~~^~~~
In file included from /android0/llvm-project/libc/src/stdlib/strfromf.cpp:11:
In file included from /android0/llvm-project/libc/src/stdlib/str_from_util.h:20:
In file included from /android0/llvm-project/libc/src/__support/CPP/type_traits.h:51:
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:21:60: error: no matching conversion for functional-style cast from 'int' to '__llvm_libc_20_0_0_git::BigInt<96, false>'
21 | struct is_unsigned : bool_constant<(is_arithmetic_v<T> && (T(-1) > T(0)))> {
| ^~~~~
/android0/llvm-project/libc/src/__support/CPP/type_traits/is_unsigned.h:26:48: note: in instantiation of template class '__llvm_libc_20_0_0_git::cpp::is_unsigned<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
26 | LIBC_INLINE_VAR constexpr bool is_unsigned_v = is_unsigned<T>::value;
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:24:45: note: in instantiation of variable template specialization '__llvm_libc_20_0_0_git::cpp::is_unsigned_v<__llvm_libc_20_0_0_git::BigInt<96, false>>' requested here
24 | LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: note: while substituting explicitly-specified template arguments into function template 'mask_trailing_ones'
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'BigInt<96, false>' for 1st argument
333 | struct BigInt {
| ^~~~~~
/android0/llvm-project/libc/src/__support/big_int.h:333:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from /android0/llvm-project/libc/src/stdlib/strfromf.cpp:11:
In file included from /android0/llvm-project/libc/src/stdlib/str_from_util.h:23:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:17:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/string_converter.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:160:7: error: call to 'mask_trailing_ones' is ambiguous
160 | mask_trailing_ones<StorageType, SIG_LEN>();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:18: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::SIG_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 64]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdlib/strfromf.cpp:11:
In file included from /android0/llvm-project/libc/src/stdlib/str_from_util.h:23:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:17:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/string_converter.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:163:7: error: call to 'mask_trailing_ones' is ambiguous
163 | mask_trailing_ones<StorageType, EXP_LEN>() << SIG_LEN;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:29: note: in instantiation of static data member '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>::EXP_MASK' requested here
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/math_extras.h:25:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
25 | mask_trailing_ones() {
| ^
/android0/llvm-project/libc/src/__support/big_int.h:1216:1: note: candidate function [with T = __llvm_libc_20_0_0_git::BigInt<96, false>, count = 15]
1216 | mask_trailing_ones() {
| ^
In file included from /android0/llvm-project/libc/src/stdlib/strfromf.cpp:11:
In file included from /android0/llvm-project/libc/src/stdlib/str_from_util.h:23:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter_atlas.h:17:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/string_converter.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/converter_utils.h:14:
In file included from /android0/llvm-project/libc/src/stdio/printf_core/core_structs.h:16:
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:178:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
178 | static_assert((SIG_MASK & EXP_MASK & SIGN_MASK) == 0, "masks disjoint");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:446:14: note: in instantiation of template class '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>' requested here
446 | : public FPStorage<FPType::X86_Binary80> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:179:27: error: invalid operands to binary expression ('const StorageType' (aka 'const BigInt<12 * 8, false>') and 'const StorageType')
179 | static_assert((SIG_MASK | EXP_MASK | SIGN_MASK) == FP_MASK, "masks cover");
| ~~~~~~~~ ^ ~~~~~~~~
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:20: error: unknown type name 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:454:52: error: use of undeclared identifier 'StorageType'
454 | static constexpr StorageType EXPLICIT_BIT_MASK = StorageType(1)
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:455:55: error: use of undeclared identifier 'FRACTION_LEN'
455 | << FRACTION_LEN;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:457:38: error: use of undeclared identifier 'FRACTION_MASK'
457 | static_assert((EXPLICIT_BIT_MASK & FRACTION_MASK) == 0,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:38: error: use of undeclared identifier 'FRACTION_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:459:56: error: use of undeclared identifier 'SIG_MASK'
459 | static_assert((EXPLICIT_BIT_MASK | FRACTION_MASK) == SIG_MASK,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:464:22: error: 'Exponent' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
464 | using typename UP::Exponent;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:219:10: note: declared protected here
219 | struct Exponent : public TypedInt<int32_t> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:465:22: error: 'Significand' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
465 | using typename UP::Significand;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:265:10: note: declared protected here
265 | struct Significand : public TypedInt<StorageType> {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:298:44: note: declared protected here
298 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:302:44: note: declared protected here
302 | LIBC_INLINE static constexpr StorageType encode(Significand value) {
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:306:44: note: declared protected here
306 | LIBC_INLINE static constexpr StorageType encode(BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:466:13: error: 'encode' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
466 | using UP::encode;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:311:44: note: declared protected here
311 | LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:467:13: error: 'FPStorage' is a protected member of '__llvm_libc_20_0_0_git::fputil::internal::FPStorage<__llvm_libc_20_0_0_git::fputil::FPType::X86_Binary80>'
467 | using UP::UP;
| ^
/android0/llvm-project/libc/src/__support/FPUtil/FPBits.h:321:25: note: declared protected here
321 | LIBC_INLINE constexpr FPStorage() : bits(0) {}
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment