[Bug bootstrap/15212] [3.4 Regression] bootstrap fails on interix3
wilson at specifixinc dot com
gcc-bugzilla@gcc.gnu.org
Fri Apr 30 09:17:00 GMT 2004
------- Additional Comments From wilson at specifixinc dot com 2004-04-30 04:31 -------
Subject: Re: [3.4 Regression] bootstrap fails on interix3
pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-29 21:27 -------
> For some reason the configure test for checking if strsignal is declared at all is failing.
It looks like the problem is that the configure and build are done with
different compiler options. The configure is done with "gcc". The
build is done with "gcc -D__INTERIX -D_ALL_SOURCE". This is not wise,
as it means the configure checks will not be correct for the build. You
must use the same compiler (and compiler options) for configure and build.
Probably strsignal is in /usr/include/string.h, but only declared if one
of __INTERIX or _ALL_SOURCE is defined. Thus the configure check did
not see it, but the build did.
gcc-3.4 behaves differently than gcc-3.3 here because the
HAVE_DECL_STRSIGNAL stuff in system.h is new. This adds a declaration
if strsignal is present in libc, but we found no declaration in the
header files at configure time, which is the case here.
This is a bug with the gcc/config/x-interix file. It sets X_CFLAGS,
which won't work, because this modifies the compiler flags after we have
already configured.
I have no good immediate suggestion on how to fix this. Maybe it can be
hacked around in an xm-interix.h file by defining HAVE_DECL_STRSIGNAL.
That is an ugly solution though.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15212
More information about the Gcc-bugs
mailing list