public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/53343] New: [4.8 regression] options.c:9944:1: error: no previous prototype for 'common_handle_option_auto' broke bootstrap on sparc64-linux
@ 2012-05-14 12:58 mikpe at it dot uu.se
  2012-05-15  9:26 ` [Bug bootstrap/53343] " mikpe at it dot uu.se
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: mikpe at it dot uu.se @ 2012-05-14 12:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53343

             Bug #: 53343
           Summary: [4.8 regression] options.c:9944:1: error: no previous
                    prototype for 'common_handle_option_auto' broke
                    bootstrap on sparc64-linux
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: mikpe@it.uu.se


An attempt to bootstrap gcc-4.8-20120513 on sparc64-linux failed with:

/mnt/scratch/objdir48/./prev-gcc/xgcc -B/mnt/scratch/objdir48/./prev-gcc/
-B/mnt/scratch/install48/sparc64-unknown-linux-gnu/bin/
-B/mnt/scratch/install48/sparc64-unknown-linux-gnu/bin/
-B/mnt/scratch/install48/sparc64-unknown-linux-gnu/lib/ -isystem
/mnt/scratch/install48/sparc64-unknown-linux-gnu/include -isystem
/mnt/scratch/install48/sparc64-unknown-linux-gnu/sys-include    -c   -g -O2
-gtoggle -DIN_GCC   -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -I. -I.
-I/mnt/scratch/gcc-4.8-20120513/gcc -I/mnt/scratch/gcc-4.8-20120513/gcc/.
-I/mnt/scratch/gcc-4.8-20120513/gcc/../include
-I/mnt/scratch/gcc-4.8-20120513/gcc/../libcpp/include
-I/home/mikpe/pkgs/linux-sparc64/gmp-5.0.4/include
-I/home/mikpe/pkgs/linux-sparc64/mpfr-3.1.0/include
-I/home/mikpe/pkgs/linux-sparc64/mpc-0.9/include 
-I/mnt/scratch/gcc-4.8-20120513/gcc/../libdecnumber
-I/mnt/scratch/gcc-4.8-20120513/gcc/../libdecnumber/dpd -I../libdecnumber   
options.c -o options.o
options.c:9944:1: error: no previous prototype for 'common_handle_option_auto'
[-Werror=missing-prototypes]
 common_handle_option_auto (struct gcc_options *opts,                  
 ^
cc1: all warnings being treated as errors
make[3]: *** [options.o] Error 1
make[3]: *** Waiting for unfinished jobs....
rm cpp.pod gfdl.pod fsf-funding.pod gfortran.pod gcc.pod gcov.pod
make[3]: Leaving directory `/mnt/scratch/objdir48/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/mnt/scratch/objdir48'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/mnt/scratch/objdir48'
make: *** [bootstrap] Error 2

gcc-4.8-20120506 did bootstrap OK.  Presumably caused by PR53063 patch.

Configuration parameters:
/mnt/scratch/gcc-4.8-20120513/configure --prefix=/mnt/scratch/install48
--with-gmp=/home/mikpe/pkgs/linux-sparc64/gmp-5.0.4
--with-mpfr=/home/mikpe/pkgs/linux-sparc64/mpfr-3.1.0
--with-mpc=/home/mikpe/pkgs/linux-sparc64/mpc-0.9 --with-cpu=v8
--enable-multilib --disable-plugin --disable-lto --disable-nls
--enable-threads=posix --enable-checking=release --disable-libmudflap
--enable-languages=c,c++,fortran,ada --disable-build-poststage1-with-cxx


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

* [Bug bootstrap/53343] [4.8 regression] options.c:9944:1: error: no previous prototype for 'common_handle_option_auto' broke bootstrap on sparc64-linux
  2012-05-14 12:58 [Bug bootstrap/53343] New: [4.8 regression] options.c:9944:1: error: no previous prototype for 'common_handle_option_auto' broke bootstrap on sparc64-linux mikpe at it dot uu.se
@ 2012-05-15  9:26 ` mikpe at it dot uu.se
  2012-05-15 12:22 ` [Bug bootstrap/53343] [4.8 regression] options.c:9944:1: error: no previous prototype for 'common_handle_option_auto' breaks bootstrap manu at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mikpe at it dot uu.se @ 2012-05-15  9:26 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53343

--- Comment #1 from Mikael Pettersson <mikpe at it dot uu.se> 2012-05-15 09:14:40 UTC ---
Also occurs on powerpc64 and arm, so not specific to sparc64.


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

* [Bug bootstrap/53343] [4.8 regression] options.c:9944:1: error: no previous prototype for 'common_handle_option_auto' breaks bootstrap
  2012-05-14 12:58 [Bug bootstrap/53343] New: [4.8 regression] options.c:9944:1: error: no previous prototype for 'common_handle_option_auto' broke bootstrap on sparc64-linux mikpe at it dot uu.se
  2012-05-15  9:26 ` [Bug bootstrap/53343] " mikpe at it dot uu.se
@ 2012-05-15 12:22 ` manu at gcc dot gnu.org
  2012-05-26 23:58 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: manu at gcc dot gnu.org @ 2012-05-15 12:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53343

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-05-15 12:05:16 UTC ---
This is the successful compilation line in x86_64-unknown-linux-gnu:

/home/manuel/test2/187462M/build/./prev-gcc/g++
-B/home/manuel/test2/187462M/build/./prev-gcc/
-B/home/manuel/test2/./187462M/install/x86_64-unknown-linux-gnu/bin/
-nostdinc++
-B/home/manuel/test2/187462M/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/home/manuel/test2/187462M/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/home/manuel/test2/187462M/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/home/manuel/test2/187462M/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include
-I/home/manuel/test2/src/libstdc++-v3/libsupc++
-L/home/manuel/test2/187462M/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/home/manuel/test2/187462M/build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-c   -g -O2 -gtoggle -DIN_GCC   -fno-exceptions -fno-rtti -W -Wall
-Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common
 -DHAVE_CONFIG_H -I. -I. -I/home/manuel/test2/src/gcc
-I/home/manuel/test2/src/gcc/. -I/home/manuel/test2/src/gcc/../include
-I/home/manuel/test2/src/gcc/../libcpp/include -I/opt/cfarm/mpfr-2.4.1//include
-I/opt/cfarm/mpc-0.8/include  -I/home/manuel/test2/src/gcc/../libdecnumber
-I/home/manuel/test2/src/gcc/../libdecnumber/bid -I../libdecnumber    options.c
-o options.o

So g++ is missing -Wmissing-prototypes (actually, -Wmissing-declarations). see
PR 50134.

Not sure what is the best way to fix this. 

Declare also the functions in options.c? 

Including options.h in options.c is maybe problematic.


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

* [Bug bootstrap/53343] [4.8 regression] options.c:9944:1: error: no previous prototype for 'common_handle_option_auto' breaks bootstrap
  2012-05-14 12:58 [Bug bootstrap/53343] New: [4.8 regression] options.c:9944:1: error: no previous prototype for 'common_handle_option_auto' broke bootstrap on sparc64-linux mikpe at it dot uu.se
  2012-05-15  9:26 ` [Bug bootstrap/53343] " mikpe at it dot uu.se
  2012-05-15 12:22 ` [Bug bootstrap/53343] [4.8 regression] options.c:9944:1: error: no previous prototype for 'common_handle_option_auto' breaks bootstrap manu at gcc dot gnu.org
@ 2012-05-26 23:58 ` pinskia at gcc dot gnu.org
  2012-05-27 22:07 ` mikpe at it dot uu.se
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-05-26 23:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53343

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-05-26 23:54:26 UTC ---
>--disable-build-poststage1-with-cxx

Is there a reason why you are using this option?


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

* [Bug bootstrap/53343] [4.8 regression] options.c:9944:1: error: no previous prototype for 'common_handle_option_auto' breaks bootstrap
  2012-05-14 12:58 [Bug bootstrap/53343] New: [4.8 regression] options.c:9944:1: error: no previous prototype for 'common_handle_option_auto' broke bootstrap on sparc64-linux mikpe at it dot uu.se
                   ` (2 preceding siblings ...)
  2012-05-26 23:58 ` pinskia at gcc dot gnu.org
@ 2012-05-27 22:07 ` mikpe at it dot uu.se
  2012-05-27 23:12 ` tkoenig at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mikpe at it dot uu.se @ 2012-05-27 22:07 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53343

--- Comment #4 from Mikael Pettersson <mikpe at it dot uu.se> 2012-05-27 21:05:27 UTC ---
(In reply to comment #3)
> >--disable-build-poststage1-with-cxx
> 
> Is there a reason why you are using this option?

Yes,

1. It's a valid option, and it doesn't disable any functionality in the final
compiler.

2. Bootstrapping in C++ mode has been reported to increase bootstrap time, I
don't have any numbers, but this was mentioned last year around the time the
default was changed.  As I bootstrap more or less continuously on fairly
underpowered boxes (arm, m68k, even my dual-cpu sparc64 SunBlade2500 is too
slow compared to my x86 boxes), I don't want to spend cycles (and generate
heat) on something that is of no value to me.

3. The C++ FE has repeatedly failed to warn on some forms of code that the C FE
does warn about, allowing dodgy (for a C-centric definition of dodgy) code to
enter the gcc code base.  Bootstrapping in C mode ensures that such regressions
are detected.


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

* [Bug bootstrap/53343] [4.8 regression] options.c:9944:1: error: no previous prototype for 'common_handle_option_auto' breaks bootstrap
  2012-05-14 12:58 [Bug bootstrap/53343] New: [4.8 regression] options.c:9944:1: error: no previous prototype for 'common_handle_option_auto' broke bootstrap on sparc64-linux mikpe at it dot uu.se
                   ` (3 preceding siblings ...)
  2012-05-27 22:07 ` mikpe at it dot uu.se
@ 2012-05-27 23:12 ` tkoenig at gcc dot gnu.org
  2012-08-16 11:03 ` rguenth at gcc dot gnu.org
  2012-09-07 11:53 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2012-05-27 23:12 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53343

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tkoenig at gcc dot gnu.org

--- Comment #5 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2012-05-27 23:11:28 UTC ---
See also

http://gcc.gnu.org/ml/fortran/2012-05/msg00152.html


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

* [Bug bootstrap/53343] [4.8 regression] options.c:9944:1: error: no previous prototype for 'common_handle_option_auto' breaks bootstrap
  2012-05-14 12:58 [Bug bootstrap/53343] New: [4.8 regression] options.c:9944:1: error: no previous prototype for 'common_handle_option_auto' broke bootstrap on sparc64-linux mikpe at it dot uu.se
                   ` (4 preceding siblings ...)
  2012-05-27 23:12 ` tkoenig at gcc dot gnu.org
@ 2012-08-16 11:03 ` rguenth at gcc dot gnu.org
  2012-09-07 11:53 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-08-16 11:03 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53343

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.8.0


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

* [Bug bootstrap/53343] [4.8 regression] options.c:9944:1: error: no previous prototype for 'common_handle_option_auto' breaks bootstrap
  2012-05-14 12:58 [Bug bootstrap/53343] New: [4.8 regression] options.c:9944:1: error: no previous prototype for 'common_handle_option_auto' broke bootstrap on sparc64-linux mikpe at it dot uu.se
                   ` (5 preceding siblings ...)
  2012-08-16 11:03 ` rguenth at gcc dot gnu.org
@ 2012-09-07 11:53 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-09-07 11:53 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53343

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.8.0
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-09-07 11:53:20 UTC ---
Fixed,  --disable-build-poststage1-with-cxx no longer existent.


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

end of thread, other threads:[~2012-09-07 11:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-14 12:58 [Bug bootstrap/53343] New: [4.8 regression] options.c:9944:1: error: no previous prototype for 'common_handle_option_auto' broke bootstrap on sparc64-linux mikpe at it dot uu.se
2012-05-15  9:26 ` [Bug bootstrap/53343] " mikpe at it dot uu.se
2012-05-15 12:22 ` [Bug bootstrap/53343] [4.8 regression] options.c:9944:1: error: no previous prototype for 'common_handle_option_auto' breaks bootstrap manu at gcc dot gnu.org
2012-05-26 23:58 ` pinskia at gcc dot gnu.org
2012-05-27 22:07 ` mikpe at it dot uu.se
2012-05-27 23:12 ` tkoenig at gcc dot gnu.org
2012-08-16 11:03 ` rguenth at gcc dot gnu.org
2012-09-07 11:53 ` rguenth 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).