system.h causes bootstrap failure
Gerald Pfeifer
gerald@pfeifer.com
Thu Sep 18 12:26:00 GMT 2003
...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
More information about the Gcc
mailing list