The error I get is the same as in the old pr 33130. I don't see why this is so. Ian Lance Taylor suggested looking at STDC_HEADERS, and indeed in libiberty/config.h it is defined in stage1, but not in stage2. I am attaching a few config files; please let me know what else is needed to figure this out. ================================================================================= make[3]: Entering directory `/home/snfilip/GNUBUILD/obj-4.6.0/libiberty' if [ x"" != x ]; then \ /home/snfilip/GNUBUILD/obj-4.6.0/./prev-gcc/xgcc -B/home/snfilip/GNUBUILD/obj-4.6.0/./prev-gcc/ -B/home/snfilip/GNUBUILD/gnu460/powerpc64-unknown-linux-gnu/bin/ -B/home/snfilip/GNUBUILD/gnu460/powerpc64-unknown-linux-gnu/bin/ -B/home/snfilip/GNUBUILD/gnu460/powerpc64-unknown-linux-gnu/lib/ -isystem /home/snfilip/GNUBUILD/gnu460/powerpc64-unknown-linux-gnu/include -isystem /home/snfilip/GNUBUILD/gnu460/powerpc64-unknown-linux-gnu/sys-include -c -DHAVE_CONFIG_H -g -O2 -gtoggle -I. -I../../gcc-4.6.0/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ../../gcc-4.6.0/libiberty/regex.c -o pic/regex.o; \ else true; fi /home/snfilip/GNUBUILD/obj-4.6.0/./prev-gcc/xgcc -B/home/snfilip/GNUBUILD/obj-4.6.0/./prev-gcc/ -B/home/snfilip/GNUBUILD/gnu460/powerpc64-unknown-linux-gnu/bin/ -B/home/snfilip/GNUBUILD/gnu460/powerpc64-unknown-linux-gnu/bin/ -B/home/snfilip/GNUBUILD/gnu460/powerpc64-unknown-linux-gnu/lib/ -isystem /home/snfilip/GNUBUILD/gnu460/powerpc64-unknown-linux-gnu/include -isystem /home/snfilip/GNUBUILD/gnu460/powerpc64-unknown-linux-gnu/sys-include -c -DHAVE_CONFIG_H -g -O2 -gtoggle -I. -I../../gcc-4.6.0/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ../../gcc-4.6.0/libiberty/regex.c -o regex.o ../../gcc-4.6.0/libiberty/regex.c:130:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] ../../gcc-4.6.0/libiberty/regex.c:130:7: warning: conflicting types for built-in function 'malloc' [enabled by default] ../../gcc-4.6.0/libiberty/regex.c:131:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] ../../gcc-4.6.0/libiberty/regex.c:131:7: warning: conflicting types for built-in function 'realloc' [enabled by default] In file included from /home/snfilip/GNUBUILD/obj-4.6.0/./prev-gcc/include-fixed/bits/string2.h:1308:0, from /usr/include/string.h:417, from ../../gcc-4.6.0/libiberty/regex.c:149: /usr/include/stdlib.h:589:14: error: conflicting types for 'malloc' ../../gcc-4.6.0/libiberty/regex.c:130:7: note: previous declaration of 'malloc' was here In file included from ../../gcc-4.6.0/libiberty/regex.c:638:0: ../../gcc-4.6.0/libiberty/regex.c: In function 'byte_regex_compile': ../../gcc-4.6.0/libiberty/regex.c:2439:7: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] ../../gcc-4.6.0/libiberty/regex.c:2439:33: warning: incompatible implicit declaration of built-in function 'free' [enabled by default] ../../gcc-4.6.0/libiberty/regex.c:2500:17: warning: incompatible implicit declaration of built-in function 'free' [enabled by default] ../../gcc-4.6.0/libiberty/regex.c:2533:36: warning: incompatible implicit declaration of built-in function 'free' [enabled by default] ../../gcc-4.6.0/libiberty/regex.c:2640:28: warning: incompatible implicit declaration of built-in function 'free' [enabled by default] ../../gcc-4.6.0/libiberty/regex.c:3643:26: warning: incompatible implicit declaration of built-in function 'free' [enabled by default] ../../gcc-4.6.0/libiberty/regex.c:4150:5: warning: incompatible implicit declaration of built-in function 'free' [enabled by default] ../../gcc-4.6.0/libiberty/regex.c: In function 'byte_re_compile_fastmap': ../../gcc-4.6.0/libiberty/regex.c:4835:11: warning: implicit declaration of function 'abort' [-Wimplicit-function-declaration] ../../gcc-4.6.0/libiberty/regex.c:4835:11: warning: incompatible implicit declaration of built-in function 'abort' [enabled by default] ../../gcc-4.6.0/libiberty/regex.c: In function 'byte_re_match_2_internal': ../../gcc-4.6.0/libiberty/regex.c:7424:11: warning: incompatible implicit declaration of built-in function 'abort' [enabled by default] ../../gcc-4.6.0/libiberty/regex.c: In function 'xregcomp': ../../gcc-4.6.0/libiberty/regex.c:7978:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default] ../../gcc-4.6.0/libiberty/regex.c: In function 'xregexec': ../../gcc-4.6.0/libiberty/regex.c:8053:7: warning: incompatible implicit declaration of built-in function 'free' [enabled by default] ../../gcc-4.6.0/libiberty/regex.c: In function 'xregerror': ../../gcc-4.6.0/libiberty/regex.c:8081:5: warning: incompatible implicit declaration of built-in function 'abort' [enabled by default] ../../gcc-4.6.0/libiberty/regex.c: In function 'xregfree': ../../gcc-4.6.0/libiberty/regex.c:8115:5: warning: incompatible implicit declaration of built-in function 'free' [enabled by default] make[3]: *** [regex.o] Error 1 make[3]: Leaving directory `/home/snfilip/GNUBUILD/obj-4.6.0/libiberty' make[2]: *** [all-stage2-libiberty] Error 2 make[2]: Leaving directory `/home/snfilip/GNUBUILD/obj-4.6.0' make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory `/home/snfilip/GNUBUILD/obj-4.6.0' make: *** [bootstrap] Error 2
-- Summary: Bootstrap fails on PPC error: conflicting types for 'malloc' Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sfilippone at uniroma2 dot it GCC build triplet: powerpc64-unknown-linux-gnu GCC host triplet: powerpc64-unknown-linux-gnu GCC target triplet: powerpc64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45482