https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98377

            Bug ID: 98377
           Summary: bootstrapping failure on windows for floating_to_chars
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: unlvsur at live dot com
  Target Milestone: ---

../../../../../gcc-git/libstdc++-v3/src/c++17/floating_to_chars.cc: In function
'std::to_chars_result std::__floating_to_chars_precision(char*, char*, T,
std::chars_format, int)':
../../../../../gcc-git/libstdc++-v3/src/c++17/floating_to_chars.cc:1132:11:
error: 'output_length_upper_bound' was not declared in this scope
 1132 |           output_length_upper_bound = (strlen("-d") + sizeof(radix)
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../gcc-git/libstdc++-v3/src/c++17/floating_to_chars.cc:1138:15:
error: 'output_length_upper_bound' was not declared in this scope
 1138 |               output_length_upper_bound = sign + approx_log10_value +
1;
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../gcc-git/libstdc++-v3/src/c++17/floating_to_chars.cc:1140:15:
error: 'output_length_upper_bound' was not declared in this scope
 1140 |               output_length_upper_bound = sign + strlen("0");
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../gcc-git/libstdc++-v3/src/c++17/floating_to_chars.cc:1141:13:
error: 'output_length_upper_bound' was not declared in this scope
 1141 |             output_length_upper_bound += sizeof(radix) +
effective_precision;
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../gcc-git/libstdc++-v3/src/c++17/floating_to_chars.cc:1145:21:
error: 'output_length_upper_bound' was not declared in this scope
 1145 |         char buffer[output_length_upper_bound+1];
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../gcc-git/libstdc++-v3/src/c++17/floating_to_chars.cc:1152:21:
error: 'buffer' was not declared in this scope
 1152 |           = sprintf(buffer, output_specifier, effective_precision,
value);
      |                     ^~~~~~
../../../../../gcc-git/libstdc++-v3/src/c++17/floating_to_chars.cc: In
instantiation of 'std::to_chars_result
std::__floating_to_chars_precision(char*, char*, T, std::chars_format, int)
[with T = long double]':
../../../../../gcc-git/libstdc++-v3/src/c++17/floating_to_chars.cc:1546:76:  
required from here
../../../../../gcc-git/libstdc++-v3/src/c++17/floating_to_chars.cc:1130:13:
warning: unused variable 'output_length_upper_bound' [-Wunused-variable]
 1130 |         int output_length_upper_bound;
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../gcc-git/libstdc++-v3/src/c++17/floating_to_chars.cc:1163:33:
error: could not convert '{<expression error>, ((std::size_t)output_length)}'
from '<brace-enclosed initializer list>' to 'const string_view' {aka 'const
std::basic_string_view<char>'}
 1163 |               const string_view buffer_sv = {buffer,
(size_t)output_length};
      |                                 ^~~~~~~~~
      |                                 |
      |                                 <brace-enclosed initializer list>
make[5]: *** [Makefile:577: floating_to_chars.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory
'/home/unlvs/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/x86_64-w64-mingw32/libstdc++-v3/src/c++17'
make[4]: *** [Makefile:764: all-recursive] Error 1
make[4]: Leaving directory
'/home/unlvs/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/x86_64-w64-mingw32/libstdc++-v3/src'
make[3]: *** [Makefile:568: all-recursive] Error 1
make[3]: Leaving directory
'/home/unlvs/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/x86_64-w64-mingw32/libstdc++-v3'
make[2]: *** [Makefile:493: all] Error 2
make[2]: Leaving directory
'/home/unlvs/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/x86_64-w64-mingw32/libstdc++-v3'
make[1]: *** [Makefile:12181: all-target-libstdc++-v3] Error 2
make[1]: Leaving directory
'/home/unlvs/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32'
make: *** [Makefile:973: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Reply via email to