Bug 15137 - make profiledbootstrap fails on Cygwin
Summary: make profiledbootstrap fails on Cygwin
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 3.4.1
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 16569 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-25 19:06 UTC by Blair Zajac
Modified: 2005-07-23 22:49 UTC (History)
4 users (show)

See Also:
Host: i686-pc-cygwin
Target: i686-pc-cygwin
Build: i686-pc-cygwin
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Compressed output from my configure and build steps (26.15 KB, application/octet-stream)
2004-04-25 19:10 UTC, Blair Zajac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Blair Zajac 2004-04-25 19:06:34 UTC
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
Comment 1 Blair Zajac 2004-04-25 19:08:56 UTC
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
Comment 2 Blair Zajac 2004-04-25 19:10:39 UTC
Created attachment 6161 [details]
Compressed output from my configure and build steps
Comment 3 Andrew Pinski 2004-04-25 20:13:15 UTC
What happens if BOOT_CFLAGS and CFLAGS are not set?
Comment 4 Blair Zajac 2004-04-25 20:17:33 UTC
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
Comment 5 Blair Zajac 2004-04-25 22:43:59 UTC
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
Comment 6 Blair Zajac 2004-07-11 04:44:51 UTC
The same bug appears in 3.4.1.

Blair
Comment 7 Andrew Pinski 2004-07-15 18:53:57 UTC
*** Bug 16569 has been marked as a duplicate of this bug. ***
Comment 8 Giovanni Bajo 2004-10-07 09:27:37 UTC
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
Comment 9 Andrew Pinski 2005-01-06 01:04:23 UTC
No feedback in 3 months (T -2 days).