I can compile gcc 3.4.0 with "make bootstrap" using gcc 3.3.3 as the bootstrap compiler. Using "make profiledbootstrap" get's this failure stage1/xgcc.exe -Bstage1/ -B/opt/i386-cygwin/installed/gcc-3.4.0/i686-pc- cygwin/bin/ -c -O3 -fprofile-use -DIN_GCC -W -Wall -Wwrite-strings - Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style- definition -DHAVE_CONFIG_H -I. -I. -I../../gcc-3.4.0/gcc -I../../gcc- 3.4.0/gcc/. -I../../gcc-3.4.0/gcc/../include ../../gcc-3.4.0/gcc/cpperror.c - o cpperror.o stage1/xgcc.exe -Bstage1/ -B/opt/i386-cygwin/installed/gcc-3.4.0/i686-pc- cygwin/bin/ -c -O3 -fprofile-use -DIN_GCC -W -Wall -Wwrite-strings - Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style- definition -DHAVE_CONFIG_H -I. -I. -I../../gcc-3.4.0/gcc -I../../gcc- 3.4.0/gcc/. -I../../gcc-3.4.0/gcc/../include ../../gcc-3.4.0/gcc/cppinit.c -o cppinit.o stage1/xgcc.exe -Bstage1/ -B/opt/i386-cygwin/installed/gcc-3.4.0/i686-pc- cygwin/bin/ -c -O3 -fprofile-use -DIN_GCC -W -Wall -Wwrite-strings - Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style- definition -DHAVE_CONFIG_H -I. -I. -I../../gcc-3.4.0/gcc -I../../gcc- 3.4.0/gcc/. -I../../gcc-3.4.0/gcc/../include ../../gcc- 3.4.0/gcc/cppcharset.c -o cppcharset.o stage1/xgcc.exe -Bstage1/ -B/opt/i386-cygwin/installed/gcc-3.4.0/i686-pc- cygwin/bin/ -c -O3 -fprofile-use -DIN_GCC -W -Wall -Wwrite-strings - Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style- definition -DHAVE_CONFIG_H -I. -I. -I../../gcc-3.4.0/gcc -I../../gcc- 3.4.0/gcc/. -I../../gcc-3.4.0/gcc/../include ../../gcc-3.4.0/gcc/hashtable.c - o hashtable.o ../../gcc-3.4.0/gcc/hashtable.c: In function `ht_lookup': ../../gcc-3.4.0/gcc/hashtable.c:165: error: corrupted profile info: number of executions for edge 0-1 thought to be 8692467 ../../gcc-3.4.0/gcc/hashtable.c:165: error: corrupted profile info: number of executions for edge 0-2 thought to be -1 make[2]: *** [hashtable.o] Error 1 make[2]: Leaving directory `/cygdrive/c/Blair/Cygwin/Code/g/g/gcc' make[1]: *** [stagefeedback_build] Error 2 make[1]: Leaving directory `/cygdrive/c/Blair/Cygwin/Code/g/g/gcc' make: *** [profiledbootstrap] Error 2 Best, Blair
Some more information: Configured with ../gcc-3.4.0/configure --prefix=/opt/i386-cygwin/installed/gcc-3.4.0 \ --enable-languages=c,c++ --verbose --enable-shared \ --enable-threads=posix --with-system-zlib --disable-win32-registry and CFLAGS=-O3 CXXFLAGS=-O3 GCJFLAGS=-O3 LIBCFLAGS=-O3 LIBCXXFLAGS=-O3 -fno-implicit-templates BOOT_CFLAGS=-O3 Blair
Created attachment 6161 [details] Compressed output from my configure and build steps
What happens if BOOT_CFLAGS and CFLAGS are not set?
I'll try the same compile without setting any CFLAGS right now and let you know. But I use the same script to compile 3.4.0 on my Linux box and it worked fine, so my guess it's a Cygwin specific issue. Best, Blair
The same failure occurs without setting any CFLAGS: bzcat.exe gcc-3.4.0.tar.bz2 | tar xvf - mkdir g cd g env CC=/opt/i386-cygwin/gcc/bin/gcc ../gcc-3.4.0/configure \ --prefix=/tmp/gcc3.4.0 --enable-languages="c,c++" --verbose \ --enable-shared --enable-threads --with-system-zlib \ --disable-win32-registry make profiledbootstrap Here's the output: stage1/xgcc.exe -Bstage1/ -B/tmp/gcc3.4.0/i686-pc-cygwin/bin/ -c -g -O2 - fprofile-use -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing- prototypes -pedantic -Wno-long-long -Wold-style-definition - DHAVE_CONFIG_H -I. -I. -I../../gcc-3.4.0/gcc -I../../gcc-3.4.0/gcc/. - I../../gcc-3.4.0/gcc/../include ../../gcc-3.4.0/gcc/cppinit.c -o cppinit.o stage1/xgcc.exe -Bstage1/ -B/tmp/gcc3.4.0/i686-pc-cygwin/bin/ -c -g -O2 - fprofile-use -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing- prototypes -pedantic -Wno-long-long -Wold-style-definition - DHAVE_CONFIG_H -I. -I. -I../../gcc-3.4.0/gcc -I../../gcc-3.4.0/gcc/. - I../../gcc-3.4.0/gcc/../include ../../gcc-3.4.0/gcc/cppcharset.c -o cppcharset.o stage1/xgcc.exe -Bstage1/ -B/tmp/gcc3.4.0/i686-pc-cygwin/bin/ -c -g -O2 - fprofile-use -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing- prototypes -pedantic -Wno-long-long -Wold-style-definition - DHAVE_CONFIG_H -I. -I. -I../../gcc-3.4.0/gcc -I../../gcc-3.4.0/gcc/. - I../../gcc-3.4.0/gcc/../include ../../gcc-3.4.0/gcc/hashtable.c -o hashtable.o ../../gcc-3.4.0/gcc/hashtable.c: In function `ht_lookup': ../../gcc-3.4.0/gcc/hashtable.c:165: error: corrupted profile info: number of executions for edge 0-1 thought to be 8962734 ../../gcc-3.4.0/gcc/hashtable.c:165: error: corrupted profile info: number of executions for edge 0-2 thought to be -1 make[2]: *** [hashtable.o] Error 1 make[2]: Leaving directory `/cygdrive/c/Blair/Cygwin/Code/g/g/gcc' make[1]: *** [stagefeedback_build] Error 2 make[1]: Leaving directory `/cygdrive/c/Blair/Cygwin/Code/g/g/gcc' make: *** [profiledbootstrap] Error 2 Best, Blair
The same bug appears in 3.4.1. Blair
*** Bug 16569 has been marked as a duplicate of this bug. ***
Can you please attacch a preprocessed output of the file which causes the internal error in make profiledbootstrap? Since you are at it, would you please check with an updated 3.4 snapshot? CC'ing to Jan which is the maintainer of profile stuff. Thanks
No feedback in 3 months (T -2 days).