This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: system.h causes bootstrap failure
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Gerald Pfeifer <gerald at pfeifer dot com>
- Cc: gcc at gcc dot gnu dot org, Loren James Rittle <rittle at labs dot mot dot com>
- Date: Thu, 18 Sep 2003 08:26:33 -0400
- Subject: Re: system.h causes bootstrap failure
- References: <Pine.BSF.4.56.0309181208220.17229@naos.dbai.tuwien.ac.at>
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