public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/98377] New: bootstrapping failure on windows for floating_to_chars
@ 2020-12-18 17:23 unlvsur at live dot com
  2020-12-18 18:03 ` [Bug libstdc++/98377] " cvs-commit at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: unlvsur at live dot com @ 2020-12-18 17:23 UTC (permalink / raw)
  To: gcc-bugs

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...

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libstdc++/98377] bootstrapping failure on windows for floating_to_chars
  2020-12-18 17:23 [Bug libstdc++/98377] New: bootstrapping failure on windows for floating_to_chars unlvsur at live dot com
@ 2020-12-18 18:03 ` cvs-commit at gcc dot gnu.org
  2020-12-18 18:07 ` ppalka at gcc dot gnu.org
  2020-12-19  2:01 ` unlvsur at live dot com
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-12-18 18:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppalka@gcc.gnu.org>:

https://gcc.gnu.org/g:60cecb2b83ffcebac6e83076f5552df14b073248

commit r11-6261-g60cecb2b83ffcebac6e83076f5552df14b073248
Author: Patrick Palka <ppalka@redhat.com>
Date:   Fri Dec 18 13:01:49 2020 -0500

    libstdc++: Fix mistake in PR98374 change [PR98377]

    The #ifdef RADIXCHAR directive should be moved one line up so that it
    also guards the outer if statement, or else when RADIXCHAR is not
    defined the outer if statement will end up nonsensically guarding the
    declaration of output_length_upper_bound a few lines below it.

    libstdc++-v3/ChangeLog:

            PR libstdc++/98377
            * src/c++17/floating_to_chars.cc (__floating_to_chars_precision):
            Fix mistake.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libstdc++/98377] bootstrapping failure on windows for floating_to_chars
  2020-12-18 17:23 [Bug libstdc++/98377] New: bootstrapping failure on windows for floating_to_chars unlvsur at live dot com
  2020-12-18 18:03 ` [Bug libstdc++/98377] " cvs-commit at gcc dot gnu.org
@ 2020-12-18 18:07 ` ppalka at gcc dot gnu.org
  2020-12-19  2:01 ` unlvsur at live dot com
  2 siblings, 0 replies; 4+ messages in thread
From: ppalka at gcc dot gnu.org @ 2020-12-18 18:07 UTC (permalink / raw)
  To: gcc-bugs

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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |ppalka at gcc dot gnu.org
   Last reconfirmed|                            |2020-12-18

--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Yikes, sorry about that.  Hopefully the build is clean for you now.  Thanks for
the quick report.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libstdc++/98377] bootstrapping failure on windows for floating_to_chars
  2020-12-18 17:23 [Bug libstdc++/98377] New: bootstrapping failure on windows for floating_to_chars unlvsur at live dot com
  2020-12-18 18:03 ` [Bug libstdc++/98377] " cvs-commit at gcc dot gnu.org
  2020-12-18 18:07 ` ppalka at gcc dot gnu.org
@ 2020-12-19  2:01 ` unlvsur at live dot com
  2 siblings, 0 replies; 4+ messages in thread
From: unlvsur at live dot com @ 2020-12-19  2:01 UTC (permalink / raw)
  To: gcc-bugs

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

cqwrteur <unlvsur at live dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #3 from cqwrteur <unlvsur at live dot com> ---
(In reply to Patrick Palka from comment #2)
> Yikes, sorry about that.  Hopefully the build is clean for you now.  Thanks
> for the quick report.

fixed confirm.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-19  2:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-18 17:23 [Bug libstdc++/98377] New: bootstrapping failure on windows for floating_to_chars unlvsur at live dot com
2020-12-18 18:03 ` [Bug libstdc++/98377] " cvs-commit at gcc dot gnu.org
2020-12-18 18:07 ` ppalka at gcc dot gnu.org
2020-12-19  2:01 ` unlvsur at live dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).