This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bootstrapping trunk error with gcc 4.6.2
- From: Ian Lance Taylor <iant at google dot com>
- To: Thomas Koenig <tkoenig at netcologne dot de>
- Cc: "fortran\ at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc at gcc dot gnu dot org
- Date: Tue, 29 May 2012 06:57:38 -0700
- Subject: Re: Bootstrapping trunk error with gcc 4.6.2
- References: <4FC2A321.4070003@netcologne.de>
Thomas Koenig <tkoenig@netcologne.de> writes:
> I just got a bootstrap error on trunk, with configuration
>
> ../trunk/configure --prefix=$HOME --enable-languages=c,fortran
> --disable-build-poststage1-with-cxx
>
> The error was:
>
> ../../trunk/gcc/fortran/decl.c: In function 'match_attr_spec':
> ../../trunk/gcc/fortran/decl.c:3276:3: error: typedef 'decl_types'
> locally defined but not used [-Werror=unused-local-typedefs]
> decl_types;
> ^
> cc1: all warnings being treated as errors
> make[3]: *** [fortran/decl.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
> make[3]: Leaving directory `/home/ig25/Gcc/trunk-bin/gcc'
> make[2]: *** [all-stage2-gcc] Error 2
> make[2]: Leaving directory `/home/ig25/Gcc/trunk-bin'
> make[1]: *** [stage2-bubble] Error 2
> make[1]: Leaving directory `/home/ig25/Gcc/trunk-bin'
> make: *** [all] Error 2
>
>
> Bootstrapping compiler was gcc version 4.6.2 (SUSE Linux)
>
> Any ideas?
The warning seems to be correct: the typedef is locally defined but not
used. This is presumably from Dodji's 2012-05-04 change to make
-Wunused-local-typedefs part of -Wall.
Ian