public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/104176] New: opts-global.cc:420:62: error: unquoted option name '--enable-plugin' in format
@ 2022-01-22  1:11 danglin at gcc dot gnu.org
  2022-01-22  1:20 ` [Bug other/104176] " jakub at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: danglin at gcc dot gnu.org @ 2022-01-22  1:11 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104176
           Summary: opts-global.cc:420:62: error: unquoted option name
                    '--enable-plugin' in format
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---
              Host: hppa2.0w-hp-hpux11.11
            Target: hppa2.0w-hp-hpux11.11
             Build: hppa2.0w-hp-hpux11.11

/home/dave/gnu/gcc/objdir/./prev-gcc/xg++
-B/home/dave/gnu/gcc/objdir/./prev-gcc/
-B/opt/gnu/gcc/gcc-12/hppa2.0w-hp-hpux11.11/bin/ -nostdinc++
-B/home/dave/gnu/gcc/objdir/prev-hppa2.0w-hp-hpux11.11/libstdc++-v3/src/.libs
-B/home/dave/gnu/gcc/objdir/prev-hppa2.0w-hp-hpux11.11/libstdc++-v3/libsupc++/.libs

-I/home/dave/gnu/gcc/objdir/prev-hppa2.0w-hp-hpux11.11/libstdc++-v3/include/hppa2.0w-hp-hpux11.11
 -I/home/dave/gnu/gcc/objdir/prev-hppa2.0w-hp-hpux11.11/libstdc++-v3/include 
-I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++
-L/home/dave/gnu/gcc/objdir/prev-hppa2.0w-hp-hpux11.11/libstdc++-v3/src/.libs
-L/home/dave/gnu/gcc/objdir/prev-hppa2.0w-hp-hpux11.11/libstdc++-v3/libsupc++/.libs
 -fno-PIE -c   -g -O2 -fno-checking -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  
-DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/.
-I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include
-I../../gcc/gcc/../libcody -I/opt/gnu/gcc/gmp/include 
-I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd
-I../libdecnumber -I../../gcc/gcc/../libbacktrace   -o opts-global.o -MT
opts-global.o -MMD -MP -MF ./.deps/opts-global.TPo ../../gcc/gcc/opts-global.cc
../../gcc/gcc/opts-global.cc: In function 'void
handle_common_deferred_options()':
../../gcc/gcc/opts-global.cc:420:62: error: unquoted option name
'--enable-plugin' in format [-Werror=format-diag]
  420 |           error ("plugin support is disabled; configure with
--enable-plugin");
      |                                                             
^~~~~~~~~~~~~~~
../../gcc/gcc/opts-global.cc:428:62: error: unquoted option name
'--enable-plugin' in format [-Werror=format-diag]
  428 |           error ("plugin support is disabled; configure with
--enable-plugin");
      |                                                             
^~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[3]: *** [Makefile:1143: opts-global.o] Error 1

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

* [Bug other/104176] opts-global.cc:420:62: error: unquoted option name '--enable-plugin' in format
  2022-01-22  1:11 [Bug other/104176] New: opts-global.cc:420:62: error: unquoted option name '--enable-plugin' in format danglin at gcc dot gnu.org
@ 2022-01-22  1:20 ` jakub at gcc dot gnu.org
  2022-01-22  1:25 ` [Bug other/104176] [12 Regression] " pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-01-22  1:20 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-01-22
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 52263
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52263&action=edit
gcc12-pr104176.patch

Untested fix.

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

* [Bug other/104176] [12 Regression] opts-global.cc:420:62: error: unquoted option name '--enable-plugin' in format
  2022-01-22  1:11 [Bug other/104176] New: opts-global.cc:420:62: error: unquoted option name '--enable-plugin' in format danglin at gcc dot gnu.org
  2022-01-22  1:20 ` [Bug other/104176] " jakub at gcc dot gnu.org
@ 2022-01-22  1:25 ` pinskia at gcc dot gnu.org
  2022-01-22 18:05 ` cvs-commit at gcc dot gnu.org
  2022-01-22 18:06 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-22  1:25 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0
           Keywords|                            |build
            Summary|opts-global.cc:420:62:      |[12 Regression]
                   |error: unquoted option name |opts-global.cc:420:62:
                   |'--enable-plugin' in format |error: unquoted option name
                   |                            |'--enable-plugin' in format

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

* [Bug other/104176] [12 Regression] opts-global.cc:420:62: error: unquoted option name '--enable-plugin' in format
  2022-01-22  1:11 [Bug other/104176] New: opts-global.cc:420:62: error: unquoted option name '--enable-plugin' in format danglin at gcc dot gnu.org
  2022-01-22  1:20 ` [Bug other/104176] " jakub at gcc dot gnu.org
  2022-01-22  1:25 ` [Bug other/104176] [12 Regression] " pinskia at gcc dot gnu.org
@ 2022-01-22 18:05 ` cvs-commit at gcc dot gnu.org
  2022-01-22 18:06 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-01-22 18:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- 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:9ea451e27934939d490553d3a394e8cbf9cefda8

commit r12-6819-g9ea451e27934939d490553d3a394e8cbf9cefda8
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Sat Jan 22 19:04:41 2022 +0100

    ootstrap: Fix bootstrap with --disable-plugin [PR104176]

    With --disable-plugin, bootstrap fails on x86_64-linux or probably
    all other targets with:
    ../../gcc/opts-global.cc: In function âvoid
handle_common_deferred_options()â:
    ../../gcc/opts-global.cc:420:62: error: unquoted option name
â--enable-pluginâ in format [-Werror=format-diag]
      420 |           error ("plugin support is disabled; configure with
--enable-plugin");
          |                                                             
^~~~~~~~~~~~~~~
    ../../gcc/opts-global.cc:428:62: error: unquoted option name
â--enable-pluginâ in format [-Werror=format-diag]
      428 |           error ("plugin support is disabled; configure with
--enable-plugin");
          |                                                             
^~~~~~~~~~~~~~~

    The following patch fixes that.

    2022-01-22  Jakub Jelinek  <jakub@redhat.com>

            PR other/104176
            * opts-global.cc (handle_common_deferred_options): Quote
            --enable-plugin in diagnostics to avoid -Werror=format-diag.

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

* [Bug other/104176] [12 Regression] opts-global.cc:420:62: error: unquoted option name '--enable-plugin' in format
  2022-01-22  1:11 [Bug other/104176] New: opts-global.cc:420:62: error: unquoted option name '--enable-plugin' in format danglin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2022-01-22 18:05 ` cvs-commit at gcc dot gnu.org
@ 2022-01-22 18:06 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-01-22 18:06 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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

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

end of thread, other threads:[~2022-01-22 18:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-22  1:11 [Bug other/104176] New: opts-global.cc:420:62: error: unquoted option name '--enable-plugin' in format danglin at gcc dot gnu.org
2022-01-22  1:20 ` [Bug other/104176] " jakub at gcc dot gnu.org
2022-01-22  1:25 ` [Bug other/104176] [12 Regression] " pinskia at gcc dot gnu.org
2022-01-22 18:05 ` cvs-commit at gcc dot gnu.org
2022-01-22 18:06 ` 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).