The following simple patch allow for the bootstrap to be completed:
--- gcc-trunk-r199624/gcc/config/i386/winnt.c~ 2013-05-30 03:26:05.000000000 +0200 +++ gcc-trunk-r199624/gcc/config/i386/winnt.c 2013-06-04 19:24:49.140625000 +0200
@@ -480,7 +480,7 @@ flags |= SECTION_LINKONCE; /* See if we already have an entry for this section. */ - slot = htab.find_slot ((unsigned int *)name, INSERT); + slot = htab.find_slot ((const unsigned int *)name, INSERT); if (!*slot) { *slot = (unsigned int *) xmalloc (sizeof (unsigned int)); I don't if this is the best and right fix... I would be grateful if someone could take care of this. TIA, Angelo. Il 04/06/2013 0.07, Angelo Graziosi ha scritto:
For the sake of completeness... Bootstrapping trunk r199624 fails on Cygwin as follows: $ /work/gcc-trunk-r199624/configure --prefix=/usr/local/gfortran --program-suffix=-4.9 --enable-languages=c,c++,fortran --enable-checking=release --enable-threads=posix --enable-libgomp --enable-bootstrap --with-arch=native --with-tune=native --with-fpmath=sse --disable-libmudflap --disable-shared $ make -j3 [...] /work/gcc-trunk-r199624/Work/./prev-gcc/xg++ -B/work/gcc-trunk-r199624/Work/./prev-gcc/ -B/usr/local/gfortran/i686-pc-cygwin/bin/ -nostdinc++ -B/work/gcc-trunk-r199624/Work/prev-i686-pc-cygwin/libstdc++-v3/src/.libs -B/work/gcc-trunk-r199624/Work/prev-i686-pc-cygwin/libstdc++-v3/libsupc++/.libs -I/work/gcc-trunk-r199624/Work/prev-i686-pc-cygwin/libstdc++-v3/include/i686-pc-cygwin -I/work/gcc-trunk-r199624/Work/prev-i686-pc-cygwin/libstdc++-v3/include -I/work/gcc-trunk-r199624/libstdc++-v3/libsupc++ -L/work/gcc-trunk-r199624/Work/prev-i686-pc-cygwin/libstdc++-v3/src/.libs -L/work/gcc-trunk-r199624/Work/prev-i686-pc-cygwin/libstdc++-v3/libsupc++/.libs -c -g -O2 -gtoggle -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -DHAVE_CONFIG_H -I. -I. -I/work/gcc-trunk-r199624/gcc -I/work/gcc-trunk-r199624/gcc/. -I/work/gcc-trunk-r199624/gcc/../include -I/work/gcc-trunk-r199624/gcc/../libcpp/include -I/work/gcc-trunk-r199624/gcc/../libdecnumber -I/work/gcc-trunk-r199624/gcc/../libdecnumber/bid -I../libdecnumber -I/work/gcc-trunk-r199624/gcc/../libbacktrace -I. -I. -I/work/gcc-trunk-r199624/gcc -I/work/gcc-trunk-r199624/gcc/. -I/work/gcc-trunk-r199624/gcc/../include -I/work/gcc-trunk-r199624/gcc/../libcpp/include -I/work/gcc-trunk-r199624/gcc/../libdecnumber -I/work/gcc-trunk-r199624/gcc/../libdecnumber/bid -I../libdecnumber -I/work/gcc-trunk-r199624/gcc/../libbacktrace \ /work/gcc-trunk-r199624/gcc/config/i386/winnt.c /work/gcc-trunk-r199624/Work/./prev-gcc/xg++ -B/work/gcc-trunk-r199624/Work/./prev-gcc/ -B/usr/local/gfortran/i686-pc-cygwin/bin/ -nostdinc++ -B/work/gcc-trunk-r199624/Work/prev-i686-pc-cygwin/libstdc++-v3/src/.libs -B/work/gcc-trunk-r199624/Work/prev-i686-pc-cygwin/libstdc++-v3/libsupc++/.libs -I/work/gcc-trunk-r199624/Work/prev-i686-pc-cygwin/libstdc++-v3/include/i686-pc-cygwin -I/work/gcc-trunk-r199624/Work/prev-i686-pc-cygwin/libstdc++-v3/include -I/work/gcc-trunk-r199624/libstdc++-v3/libsupc++ -L/work/gcc-trunk-r199624/Work/prev-i686-pc-cygwin/libstdc++-v3/src/.libs -L/work/gcc-trunk-r199624/Work/prev-i686-pc-cygwin/libstdc++-v3/libsupc++/.libs -c -g -O2 -gtoggle -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -DHAVE_CONFIG_H -I. -I. -I/work/gcc-trunk-r199624/gcc -I/work/gcc-trunk-r199624/gcc/. -I/work/gcc-trunk-r199624/gcc/../include -I/work/gcc-trunk-r199624/gcc/../libcpp/include -I/work/gcc-trunk-r199624/gcc/../libdecnumber -I/work/gcc-trunk-r199624/gcc/../libdecnumber/bid -I../libdecnumber -I/work/gcc-trunk-r199624/gcc/../libbacktrace -I. -I. -I/work/gcc-trunk-r199624/gcc -I/work/gcc-trunk-r199624/gcc/. -I/work/gcc-trunk-r199624/gcc/../include -I/work/gcc-trunk-r199624/gcc/../libcpp/include -I/work/gcc-trunk-r199624/gcc/../libdecnumber -I/work/gcc-trunk-r199624/gcc/../libdecnumber/bid -I../libdecnumber -I/work/gcc-trunk-r199624/gcc/../libbacktrace \ /work/gcc-trunk-r199624/gcc/config/i386/winnt-stubs.c /work/gcc-trunk-r199624/gcc/config/i386/winnt.c: In function ‘unsigned int i386_pe_section_type_flags(tree, const char*, int)’: /work/gcc-trunk-r199624/gcc/config/i386/winnt.c:483:42: error: cast from type ‘const char*’ to type ‘unsigned int*’ casts away qualifiers [-Werror=cast-qual] slot = htab.find_slot ((unsigned int *)name, INSERT); ^ cc1plus: all warnings being treated as errors /work/gcc-trunk-r199624/gcc/config/i386/t-cygming:26: recipe for target `winnt.o' failed make[3]: *** [winnt.o] Error 1 make[3]: *** Attesa per i processi non terminati.... rm gcov.pod gfdl.pod cpp.pod gfortran.pod gcc.pod fsf-funding.pod make[3]: uscita dalla directory "/work/gcc-trunk-r199624/Work/gcc" Makefile:4195: recipe for target `all-stage2-gcc' failed make[2]: *** [all-stage2-gcc] Error 2 make[2]: uscita dalla directory "/work/gcc-trunk-r199624/Work" Makefile:18070: recipe for target `stage2-bubble' failed make[1]: *** [stage2-bubble] Error 2 make[1]: uscita dalla directory "/work/gcc-trunk-r199624/Work" Makefile:884: recipe for target `all' failed make: *** [all] Error 2 Maybe these recent changes, http://gcc.gnu.org/viewcvs/gcc/trunk/gcc/config/i386/winnt.c?view=log have broken it (about a week ago GCC trunk bootstrapped fine on Cygwin)... Ciao, Angelo.