system.h causes bootstrap failure
Daniel Jacobowitz
drow@mvista.com
Thu Sep 18 13:12:00 GMT 2003
On Thu, Sep 18, 2003 at 12:14:12PM +0200, Gerald Pfeifer wrote:
> ...by including malloc.h on i386-unknown-freebsd4.8:
>
> stage1/xgcc -Bstage1/ -B/sw/gcc-current/i386-unknown-freebsd4.8/bin/ -c
> -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -pedantic -Wno-long-long -Werror -fno-common
> -DHAVE_CONFIG_H -DGENERATOR_FILE
> -I. -I. -I/sw/test/gcc/cvs/gcc -I/sw/test/gcc/cvs/gcc/.
> -I/sw/test/gcc/cvs/gcc/
> ../include -I../intl /sw/test/gcc/cvs/gcc/gengenrtl.c -o gengenrtl.o
> In file included from /sw/test/gcc/cvs/gcc/system.h:318,
> from /sw/test/gcc/cvs/gcc/gengenrtl.c:24:
> /usr/include/malloc.h:2:2: #warning "this file includes <malloc.h>
> which is deprecated, use <stdlib.h> instead"
> gmake[2]: *** [gengenrtl.o] Error 1
> gmake[2]: Leaving directory `/files/pfeifer/OBJ-0918-1123/gcc'
> gmake[1]: *** [stage2_build] Error 2
> gmake[1]: Leaving directory `/files/pfeifer/OBJ-0918-1123/gcc'
>
> I have no clue, however, why this was not triggered in the past (it seemed
> to work even yesterday), as FreeBSD's /usr/include/malloc.h has been like
> that for a long time.
It didn't work yesterday unless you had a stale config.cache... :)
Loren reported this when I converted libiberty to autoconf 2.5x.
I've posted a suggested patch to the autoconf list and am waiting for
comments, before I import a local fix for the problem. Autoconf used
to reject headers which generated #warnings, but now it doesn't.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
More information about the Gcc
mailing list