Bootstrap current CVS mainline GCC terminated with errors: --8X---------------------- /usr/home/wanderer/pkg/build/gcc/obj/prev-gcc/xgcc - B/usr/home/wanderer/pkg/build/gcc/obj/prev-gcc/ -B/home/wanderer/pkg/gcc/i386- unknown-freebsd5.3/bin/ -I/home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp - I. -I/home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/../include - I/home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/include -O2 -g -fomit-frame- pointer -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes - Wold-style-definition -pedantic -Wno-long-long -Werror - I/home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp -I. - I/home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/../include - I/home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/include - c /home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/directives.c cc1: warnings being treated as errors /home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/directives.c: In function 'cpp_handle_deferred_pragma': /home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/directives.c:1431: warning: pointer targets in passing argument 3 of 'run_directive' differ in signedness gmake[2]: *** [directives.o] Error 1 gmake[2]: Leaving directory `/usr/home/wanderer/pkg/build/gcc/obj/stage2- libcpp' gmake[1]: *** [all-stage2-libcpp] Error 2 gmake[1]: Leaving directory `/usr/home/wanderer/pkg/build/gcc/obj' gmake: *** [stage2-bubble] Error 2 --X8---------------------- I run configure with options: /home/wanderer/pkg/build/gcc/src/gcc/gcc/configure -- prefix=/home/wanderer/pkg/gcc --enable-bootstrap --enable-threads=posix --with- gnu-as --with-gnu-ld --enable-languages=c,c++ For bootstrap used system compiler (gcc version 3.4.2 [FreeBSD] 20040728) Before upgrade FreeBSD i already see same error with FreeBSD 5.1. Without --enable-bootstrap option GCC bootstraped without problems (if exclude unrelated bug 17526 )
This is just caused by the fact that there are warnings in libcpp still.
Warning fixed in patch for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18075 But now bootstrap terminate with errors: ---8X----------------------- /usr/home/wanderer/pkg/build/gcc/obj/prev-gcc/xgcc - B/usr/home/wanderer/pkg/build/gcc/obj/prev-gcc/ -B/home/wanderer/pkg/gcc/i386- unknown-freebsd5.3/bin/ -I/home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp - I. -I/home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/../include - I/home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/include -O2 -g -fomit-frame- pointer -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes - Wold-style-definition -pedantic -Wno-long-long -Werror - I/home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp -I. - I/home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/../include - I/home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/include - c /home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/macro.c cc1: warnings being treated as errors /home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/macro.c: In function 'padding_token': /home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/macro.c:913: warning: assignment discards qualifiers from pointer target type /home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/macro.c: In function 'create_iso_definition': /home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/macro.c:1422: warning: assignment from incompatible pointer type gmake[2]: *** [macro.o] Error 1 gmake[2]: Leaving directory `/usr/home/wanderer/pkg/build/gcc/obj/stage2- libcpp' gmake[1]: *** [all-stage2-libcpp] Error 2 gmake[1]: Leaving directory `/usr/home/wanderer/pkg/build/gcc/obj' gmake: *** [stage2-bubble] Error 2 ---X8-----------------------
Created attachment 7592 [details] Patch Would you please test this patch and report whether or not it fixes the bug?
Can't test patch. Bootstrap current GCC mainline terminated early (with and wightout patch): ---8X--------------- /usr/local/bin/msgfmt --statistics -o po/tr.gmo /home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/po/tr.po 142 translated messages, 16 fuzzy translations, 9 untranslated messages. gmake[2]: Leaving directory `/usr/home/wanderer/pkg/build/gcc/obj/stage1- libcpp' gmake[1]: *** No rule to make target `maybe-all-stage1-fixincludes', needed by `all-stage1-gcc'. Stop. gmake[1]: Leaving directory `/usr/home/wanderer/pkg/build/gcc/obj' gmake: *** [stage1-bubble] Error 2 ---8X---------------
Additinal note: patch break current GCC mainline bootstrap _without_ --enable- bootstrap option: ---8X-------------------- stage1/xgcc -Bstage1/ -B/home/wanderer/pkg/gcc/i386-unknown-freebsd5.3/bin/ - c -O2 -g -fomit-frame-pointer -DIN_GCC -W -Wall -Wwrite-strings -Wstrict- prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros - Wold-style-definition -Werror -fno-common -DHAVE_CONFIG_H -I. -I. - I/home/wanderer/pkg/build/gcc/src/gcc/gcc/gcc - I/home/wanderer/pkg/build/gcc/src/gcc/gcc/gcc/. - I/home/wanderer/pkg/build/gcc/src/gcc/gcc/gcc/../include -I./../intl - I/home/wanderer/pkg/build/gcc/src/gcc/gcc/gcc/../libcpp/include - I/usr/local/include gtype-desc.c -o gtype-desc.o cc1: warnings being treated as errors gtype-desc.c: In function 'gt_ggc_mx_answer': gtype-desc.c:743: warning: passing argument 1 of 'gt_ggc_mx_cpp_token' discards qualifiers from pointer target type gtype-desc.c: In function 'gt_ggc_mx_cpp_macro': gtype-desc.c:790: warning: passing argument 1 of 'gt_ggc_mx_cpp_token' discards qualifiers from pointer target type gtype-desc.c: In function 'gt_ggc_mx_cpp_token': gtype-desc.c:827: warning: passing argument 1 of 'gt_ggc_mx_cpp_token' discards qualifiers from pointer target type gtype-desc.c: In function 'gt_pch_nx_answer': gtype-desc.c:2210: warning: passing argument 1 of 'gt_pch_nx_cpp_token' discards qualifiers from pointer target type gtype-desc.c: In function 'gt_pch_nx_cpp_macro': gtype-desc.c:2258: warning: passing argument 1 of 'gt_pch_nx_cpp_token' discards qualifiers from pointer target type gtype-desc.c: In function 'gt_pch_nx_cpp_token': gtype-desc.c:2297: warning: passing argument 1 of 'gt_pch_nx_cpp_token' discards qualifiers from pointer target type gmake[2]: *** [gtype-desc.o] Error 1 gmake[2]: Leaving directory `/usr/home/wanderer/pkg/build/gcc/obj/gcc' gmake[1]: *** [stage2_build] Error 2 gmake[1]: Leaving directory `/usr/home/wanderer/pkg/build/gcc/obj/gcc' gmake: *** [bootstrap] Error 2 ---X8-------------------- Without patch GCC mainline bottstrap doesn't have this problem.
After apply patch from http://gcc.gnu.org/ml/gcc-patches/2004-11/msg02459.html and patch from "Additional Comment #3" bootstrap with --enable-bootstrap successfully compile gcc/libcpp/macro.c but later terminated with error: ---8X----------------- /usr/home/wanderer/pkg/build/gcc/obj/prev-gcc/xgcc - B/usr/home/wanderer/pkg/build/gcc/obj/prev-gcc/ -B/home/wanderer/pkg/gcc /i386-unknown-freebsd5.3/bin/ - I/home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp -I. - I/home/wanderer/pkg/build/gcc/src/gcc/ gcc/libcpp/../include - I/home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/include -O2 -g -fomit-frame- pointer -W -Wall -Wwrit e-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition - pedantic -Wno-long-long -Werror -I/home/wanderer/ pkg/build/gcc/src/gcc/gcc/libcpp -I. - I/home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/../include - I/home/wanderer/pkg/build /gcc/src/gcc/gcc/libcpp/include - c /home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/pch.c cc1: warnings being treated as errors /home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/pch.c: In function 'cpp_read_state': /home/wanderer/pkg/build/gcc/src/gcc/gcc/libcpp/pch.c:656: warning: pointer targets in passing argument 1 of 'strcspn' diffe r in signedness gmake[2]: *** [pch.o] Error 1 gmake[2]: Leaving directory `/usr/home/wanderer/pkg/build/gcc/obj/stage2- libcpp' gmake[1]: *** [all-stage2-libcpp] Error 2 gmake[1]: Leaving directory `/usr/home/wanderer/pkg/build/gcc/obj' gmake: *** [stage2-bubble] Error 2 ---X8----------------- I retest bootstrap without --enable-bootstrap (with 2 above listed patches) and it have problem discribed in my "Additional Comment #5".
Bug fixed now... (after fixing PR19818 ?)