This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Bootstrap broken on i386-pc-mingw32; ICE while building libgfortran
- From: "François-Xavier Coudert" <fxcoudert at gmail dot com>
- To: dannysmith at users dot sourceforge dot net, "GCC Development" <gcc at gcc dot gnu dot org>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, "François-Xavier Coudert" <fxcoudert at gmail dot com>
- Date: Fri, 27 Jul 2007 17:33:50 +0100
- Subject: Bootstrap broken on i386-pc-mingw32; ICE while building libgfortran
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=ueOxn4kJDd2ryTo1Qv66eVmf4X7uGm+yGr7lGYjTYRL0G790pwAV8JYouhzKbJDI9Jbom43rmx8mpvISQM2dR29/LHAlR5VnxMeXQLGsmPumq4TVqNNy5fBEpApVSubD6E/nU48HYWA0/ukd0NGHdrSzCNR8pupGufUVD6RiHeo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=k76Z4RJP8CrU/1xCKNXt+DCq8knyLT52POHtLynlTtY6hGSmywy3s8Yx3RH2zFz3SVb/mUkesDSsQNry4myMTs+S0Y404WJIJfJWE4Auwx8iBXl9Dw8WMCrgQvC7B7IZOpEOhcJsMPQqerwS3C30k7sNOsY+ILw0mJhmfdvOENc=
Hi all,
Bootstrap including gfortran has been broken on native i386-pc-mingw32
for at least 10 days, with the C compiler having an ICE while
compiling libgfortran/io/write.c. I finally found the opportunity to
reduce the ICE to the following code:
$ cat write.i
extern void fflush (int);
extern __attribute__ ((__dllimport__)) int _iob[];
static int __gthrw_pthread_once () __attribute__
((__weakref__("pthread_once")));
void flush_if_preconnected ()
{
fflush (_iob[0]);
}
$ C:/msys/1.0.10/home/FX/ibin/gcc/cc1.exe write.i -quiet
write.i:8: internal compiler error: Segmentation fault
The backtrace I could get from gdb can be found at the bottom of this
mail, and looks seriously garbled. I was wondering:
1. if someone else sees this issue? (for native compilers? for cross
compilers?)
2. what to do next? I've filed PR32915 , but I don't know what I
could do to debug further... I've nether done much programming or
debugging with Windows
Thanks for advice,
FX
-------------------------------------------------
Program received signal SIGSEGV, Segmentation fault.
decl_assembler_name_equal (decl=0x2ae2360, asmname=0x2ae1930)
at ../../trunk/gcc/tree.c:323
323 if (IDENTIFIER_POINTER (decl_asmname)[0] == '*')
(gdb) where
#0 decl_assembler_name_equal (decl=0x2ae2360, asmname=0x2ae1930)
at ../../trunk/gcc/tree.c:323
#1 0x00512973 in decl_assembler_name_equal (decl=0x2ae1930,
asmname=0x290f200) at ../../trunk/gcc/tree.c:314
#2 0x00512973 in decl_assembler_name_equal (decl=0x0, asmname=0x3d2412)
at ../../trunk/gcc/tree.c:314
#3 0x00512973 in decl_assembler_name_equal (decl=0x3d2412, asmname=0x0)
at ../../trunk/gcc/tree.c:314
#4 0x00512973 in decl_assembler_name_equal (decl=0x3d2412, asmname=0x0)
at ../../trunk/gcc/tree.c:314
#5 0x00512973 in decl_assembler_name_equal (decl=0x0, asmname=0x0)
at ../../trunk/gcc/tree.c:314
#6 0x00512973 in decl_assembler_name_equal (decl=0x3, asmname=0x3d24a0)
at ../../trunk/gcc/tree.c:314
#7 0x00512973 in decl_assembler_name_equal (decl=0x3a, asmname=0x4)
at ../../trunk/gcc/tree.c:314
#8 0x00512973 in decl_assembler_name_equal (decl=0x1, asmname=0x9)
at ../../trunk/gcc/tree.c:314
#9 0x00512973 in decl_assembler_name_equal (decl=0x0, asmname=0x2)
at ../../trunk/gcc/tree.c:314
#10 0x00512973 in decl_assembler_name_equal (decl=0x401280, asmname=0x0)
at ../../trunk/gcc/tree.c:314
#11 0x00512973 in decl_assembler_name_equal (decl=)
at ../../trunk/gcc/tree.c:314
Backtrace stopped: previous frame inner to this frame (corrupt stack?)