public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/104536] New: gcc-12-20220213 Fails to build on Cygwin: contraction ‘can%'t’ in format
@ 2022-02-14 23:39 mckelvey at maskull dot com
  2022-02-14 23:41 ` [Bug bootstrap/104536] " mckelvey at maskull dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: mckelvey at maskull dot com @ 2022-02-14 23:39 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104536
           Summary: gcc-12-20220213 Fails to build on Cygwin: contraction
                    ‘can%'t’ in format
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mckelvey at maskull dot com
  Target Milestone: ---

Created attachment 52440
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52440&action=edit
Log of entire build

Building on Cygwin with gcc-11-20220212 and Windows 10.

./configure --enable-languages=c,c++ --enable-threads=posix --disable-multilib

$ uname
CYGWIN_NT-10.0


make[3]: Entering directory
'/home/McKelvey/gcc-12-20220213/host-x86_64-pc-cygwin/gcc'
/home/McKelvey/gcc-12-20220213/host-x86_64-pc-cygwin/prev-gcc/xg++
-B/home/McKelvey/gcc-12-20220213/host-x86_64-pc-cygwin/prev-gcc/
-B/usr/local/x86_64-pc-cygwin/bin/ -nostdinc++
-B/home/McKelvey/gcc-12-20220213/prev-x86_64-pc-cygwin/libstdc++-v3/src/.libs
-B/home/McKelvey/gcc-12-20220213/prev-x86_64-pc-cygwin/libstdc++-v3/libsupc++/.libs

-I/home/McKelvey/gcc-12-20220213/prev-x86_64-pc-cygwin/libstdc++-v3/include/x86_64-pc-cygwin
 -I/home/McKelvey/gcc-12-20220213/prev-x86_64-pc-cygwin/libstdc++-v3/include 
-I/home/McKelvey/gcc-12-20220213/libstdc++-v3/libsupc++
-L/home/McKelvey/gcc-12-20220213/prev-x86_64-pc-cygwin/libstdc++-v3/src/.libs
-L/home/McKelvey/gcc-12-20220213/prev-x86_64-pc-cygwin/libstdc++-v3/libsupc++/.libs
 -fno-PIE -c   -g -O2 -fno-checking -gtoggle -DIN_GCC     -fno-exceptions
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common
 -DHAVE_CONFIG_H -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include
-I../.././gcc/../libcpp/include -I../.././gcc/../libcody 
-I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid
-I../libdecnumber -I../.././gcc/../libbacktrace   -I. -I. -I../.././gcc
-I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include
-I../.././gcc/../libcody  -I../.././gcc/../libdecnumber
-I../.././gcc/../libdecnumber/bid -I../libdecnumber
-I../.././gcc/../libbacktrace  \
        ../.././gcc/config/i386/host-cygwin.cc
../.././gcc/config/i386/host-cygwin.cc: In function ‘void*
cygwin_gt_pch_get_address(size_t, int)’:
../.././gcc/config/i386/host-cygwin.cc:57:35: error: contraction ‘can%'t’ in
format; use ‘cannot’ instead [-Werror=format-diag]
   57 |     fatal_error (input_location, "can%'t get position in PCH file:
%m");
      |                                   ^~~~~~
../.././gcc/config/i386/host-cygwin.cc:64:37: error: contraction ‘can%'t’ in
format; use ‘cannot’ instead [-Werror=format-diag]
   64 |       fatal_error (input_location, "can%'t extend PCH file: %m");
      |                                     ^~~~~~
../.././gcc/config/i386/host-cygwin.cc:75:35: error: contraction ‘can%'t’ in
format; use ‘cannot’ instead [-Werror=format-diag]
   75 |     fatal_error (input_location, "can%'t set position in PCH file:
%m");
      |                                   ^~~~~~
cc1plus: all warnings being treated as errors
make[3]: *** [../.././gcc/config/i386/x-cygwin:3: host-cygwin.o] Error 1
make[3]: Leaving directory
'/home/McKelvey/gcc-12-20220213/host-x86_64-pc-cygwin/gcc'
make[2]: *** [Makefile:5003: all-stage2-gcc] Error 2
make[2]: Leaving directory '/home/McKelvey/gcc-12-20220213'
make[1]: *** [Makefile:24127: stage2-bubble] Error 2
make[1]: Leaving directory '/home/McKelvey/gcc-12-20220213'
make: *** [Makefile:1072: all] Error 2

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

* [Bug bootstrap/104536] gcc-12-20220213 Fails to build on Cygwin: contraction ‘can%'t’ in format
  2022-02-14 23:39 [Bug bootstrap/104536] New: gcc-12-20220213 Fails to build on Cygwin: contraction ‘can%'t’ in format mckelvey at maskull dot com
@ 2022-02-14 23:41 ` mckelvey at maskull dot com
  2022-02-14 23:43 ` [Bug other/104536] [12 Regression] " pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: mckelvey at maskull dot com @ 2022-02-14 23:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from James McKelvey <mckelvey at maskull dot com> ---
Created attachment 52441
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52441&action=edit
Config log

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

* [Bug other/104536] [12 Regression] gcc-12-20220213 Fails to build on Cygwin: contraction ‘can%'t’ in format
  2022-02-14 23:39 [Bug bootstrap/104536] New: gcc-12-20220213 Fails to build on Cygwin: contraction ‘can%'t’ in format mckelvey at maskull dot com
  2022-02-14 23:41 ` [Bug bootstrap/104536] " mckelvey at maskull dot com
@ 2022-02-14 23:43 ` pinskia at gcc dot gnu.org
  2022-02-15 11:19 ` [Bug target/104536] " cvs-commit at gcc dot gnu.org
  2022-02-15 11:20 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-02-14 23:43 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|bootstrap                   |other
               Host|                            |*-*-cygwin
            Summary|gcc-12-20220213 Fails to    |[12 Regression]
                   |build on Cygwin:            |gcc-12-20220213 Fails to
                   |contraction ‘can%'t’ in     |build on Cygwin:
                   |format                      |contraction ‘can%'t’ in
                   |                            |format
   Target Milestone|---                         |12.0
           Keywords|                            |build, diagnostic

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

* [Bug target/104536] [12 Regression] gcc-12-20220213 Fails to build on Cygwin: contraction ‘can%'t’ in format
  2022-02-14 23:39 [Bug bootstrap/104536] New: gcc-12-20220213 Fails to build on Cygwin: contraction ‘can%'t’ in format mckelvey at maskull dot com
  2022-02-14 23:41 ` [Bug bootstrap/104536] " mckelvey at maskull dot com
  2022-02-14 23:43 ` [Bug other/104536] [12 Regression] " pinskia at gcc dot gnu.org
@ 2022-02-15 11:19 ` cvs-commit at gcc dot gnu.org
  2022-02-15 11:20 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-02-15 11:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:0863d0ede34d21b2258686e6ccfd6dbb100bb754

commit r12-7241-g0863d0ede34d21b2258686e6ccfd6dbb100bb754
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue Feb 15 12:17:41 2022 +0100

    cygwin: Fix up -Werror=format-diag errors [PR104536]

    As the testcase reports, cygwin has 3 can%'t contractions in diagnostics,
    we use cannot everywhere else instead and -Wformat-diag enforces that.

    2022-02-15  Jakub Jelinek  <jakub@redhat.com>

            PR target/104536
            * config/i386/host-cygwin.cc (cygwin_gt_pch_get_address): Use
            cannot instead of can%'t in diagnostics.  Formatting fixes.

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

* [Bug target/104536] [12 Regression] gcc-12-20220213 Fails to build on Cygwin: contraction ‘can%'t’ in format
  2022-02-14 23:39 [Bug bootstrap/104536] New: gcc-12-20220213 Fails to build on Cygwin: contraction ‘can%'t’ in format mckelvey at maskull dot com
                   ` (2 preceding siblings ...)
  2022-02-15 11:19 ` [Bug target/104536] " cvs-commit at gcc dot gnu.org
@ 2022-02-15 11:20 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-02-15 11:20 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Hopefully fixed.

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

end of thread, other threads:[~2022-02-15 11:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-14 23:39 [Bug bootstrap/104536] New: gcc-12-20220213 Fails to build on Cygwin: contraction ‘can%'t’ in format mckelvey at maskull dot com
2022-02-14 23:41 ` [Bug bootstrap/104536] " mckelvey at maskull dot com
2022-02-14 23:43 ` [Bug other/104536] [12 Regression] " pinskia at gcc dot gnu.org
2022-02-15 11:19 ` [Bug target/104536] " cvs-commit at gcc dot gnu.org
2022-02-15 11:20 ` jakub at gcc dot gnu.org

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