This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Speaking of 'make bootstrap' on Windows...


I have not been able to get a successful bootstrap of the GCC snapshots under Cygwin in quite some time.  It crashes 
when the Stage 1 compiler i creating c-decl.o for the stage 2 compiler.  This error was previously reported by David 
Billinghurst for snapshots 20000904 ( http://gcc.gnu.org/ml/gcc-bugs/2000-09/msg00059.html ), 20000828 ( 
http://gcc.gnu.org/ml/gcc-bugs/2000-08/msg00662.html ), and  20001023 ( http://gcc.gnu.org/ml/gcc-bugs/2000-
10/msg00489.html )

Windows 2000 SP1
$ uname -a
CYGWIN_NT-5.0 KELLEY 1.1.5(0.30/3/2) 2000-11-11 01:49 i686 unknown

Stage 1 was created with:
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-5/specs
gcc version 2.95.2-5 19991024 (cygwin experimental)

Stage 2 is being created with:
$ gcc/stage1/xgcc.exe -v
Using builtin specs.
Configured with:  --enable-languages=c++,f77,java --with-included-gettext
gcc version 2.97 20001106 (experimental)

The place where it crashes is:

stage1/xgcc.exe -Bstage1/ -B/usr/local/i686-pc-cygwin/bin/ -c  -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-
prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H    -I. -I. -I/src/gcc-
20001106/gcc -I/src/gcc-20001106/gcc/. -I/src/gcc-20001106/gcc/config -I/src/gcc-20001106/gcc/../include /src/gcc-
20001106/gcc/c-decl.c -o c-decl.o
/src/gcc-20001106/gcc/c-decl.c: In function 'init_decl_processing':
/src/gcc-20001106/gcc/c-decl.c:3256: Internal error: Segmentation fault.
   Please submit a full bug report.
   See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

I have tried with CFLAGS='-O2 -g -march=pentiumpro -pipe', with no external CFLAGS set and with CFLAGS='-g' to see if 
the GCC 2.95.2 optimizer was creating buggy code.  The result is the same.

The interesting thing is that I patched c-decl.c to bring it up to the current CVS code and it still crashes on the 
exact same line number, even though the former line 3256 has moved.  When configured with "--enable-checking=no" it 
still crashes in c-decl.c, but at line number 5660.

To my thinking, since c-decl.c is the largest C file the stage1 compiler has encountered so far, it sounds like a 
memory allocation/leak problem rather than miscompiled code.  

Nevertheless I've included the 400K --save-temps file from c-decl.c after being compiled by stage1/xgcc.exe.  You 
should note that when I include --save-temps on the command line, the error location changes to:
/src/gcc-20001106/include/ansidecl.h:0: Internal error: Segmentation fault.


c-decl.i.gz

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]