[Bug bootstrap/55784] [4.8 regression] declaration of C function 'const char* strsignal(int)' conflicts with /usr/include/string.h:112: error: previous declaration
ebotcazou at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Dec 22 18:58:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55784
--- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-12-22 18:57:55 UTC ---
> but I finished bootstrap with the following patch
>
> --- ../_clean/gcc/ada/gcc-interface/Makefile.in 2012-11-07
> 08:50:19.000000000 +0100
> +++ ../p_work/gcc/ada/gcc-interface/Makefile.in 2012-12-22
> 13:34:39.000000000 +0100
> @@ -273,7 +273,7 @@ endif
> # Both . and srcdir are used, in that order,
> # so that tm.h and config.h will be found in the compilation
> # subdirectory rather than in the source directory.
> -INCLUDES = -I- -I. -I.. -I$(srcdir)/ada -I$(srcdir) -I$(srcdir)/../include
> +INCLUDES = -I- -I. -I.. -I$(srcdir)/ada -I$(srcdir) -I$(srcdir)/../include
> $(GMPINC)
>
> ADA_INCLUDES = -I- -I. -I$(srcdir)/ada
>
> @@ -283,11 +283,11 @@ ADA_INCLUDES = -I- -I. -I$(srcdir)/ada
> ifneq ($(findstring vxworks,$(osys)),)
> INCLUDES_FOR_SUBDIR = -iquote . -iquote .. -iquote ../.. \
> -iquote $(fsrcdir)/ada \
> - -I$(fsrcdir)/../include
> + -I$(fsrcdir)/../include $(GMPINC)
> else
> INCLUDES_FOR_SUBDIR = -iquote . -iquote .. -iquote ../.. \
> -iquote $(fsrcdir)/ada -iquote $(fsrcdir) \
> - -I$(fsrcdir)/../include
> + -I$(fsrcdir)/../include $(GMPINC)
> endif
>
> ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)/ada
>
> Thanks for the tip.
You're welcome. The Ada bits are OK for mainline.
More information about the Gcc-bugs
mailing list