This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
system.h causes bootstrap failure
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: gcc at gcc dot gnu dot org
- Cc: Loren James Rittle <rittle at labs dot mot dot com>
- Date: Thu, 18 Sep 2003 12:14:12 +0200 (CEST)
- Subject: system.h causes bootstrap failure
...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.
Gerald