I've had at least three different (but possibly related) problems when trying to bootstrap Fortran in 4.4 20080510
1) I get a popup message telling me gfortran.exe has crashed in some configure scripts, which I have not investigated further 2) When compiling _abs_c4.F90, build fails. Strangely, when using the build driver, no output is visible, but when f951.exe is invoked directly, the error message is visible. /mingw/src/gccsvn/obj/./gcc/gfortran -B/mingw/src/gccsvn/obj/./gcc/ -L/mingw/src/gccsvn/obj/i386-pc-mingw32/winsup/mingw -L/mingw/src/gccsvn/obj/i386-pc-mingw32/winsup/w32api/lib -isystem /mingw/src/gccsvn/svn/winsup/mingw/include -isystem /mingw/src/gccsvn/svn/winsup/w32api/include -B/mingw/i386-pc-mingw32/bin/ -B/mingw/i386-pc-mingw32/lib/ -isystem /mingw/i386-pc-mingw32/include -isystem /mingw/i386-pc-mingw32/sys-include -DHAVE_CONFIG_H -I. -I../../../svn/libgfortran -I. -iquote../../../svn/libgfortran/io -I../../../svn/libgfortran/../gcc -I../../../svn/libgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE -I . -Wall -fno-repack-arrays -fno-underscoring -fallow-leading-underscore -g -O2 -c ../../../svn/libgfortran/generated/_abs_c4.F90 -DDLL_EXPORT -o .libs/_abs_c4.o -save-temps -v Reading specs from /mingw/src/gccsvn/obj/./gcc/specs Target: i386-pc-mingw32 Configured with: ../svn/configure --enable-languages=c,c++,fortran,java,objc,obj-c++ --disable-sjlj-exceptions --enable-libgcj --enable-libgomp --with-dwarf2 --disable-win32-registry --enable-libstdcxx-debug --enable-concept-checks --enable-version-specific-runtime-libs --prefix=/mingw --with-gmp=/mingw/src/gcc/gmp-mpfr-root --with-mpfr=/mingw/src/gcc/gmp-mpfr-root --with-libiconv-prefix=/mingw/src/gcc/libiconv-root Thread model: win32 gcc version 4.4.0 20080510 (experimental) (GCC) ...collect2 and cpp noise omitted... /mingw/src/gccsvn/obj/./gcc/f951.exe _abs_c4.f95 -ffree-form -quiet -dumpbase _abs_c4.F90 -mtune=i386 -auxbase-strip .libs/_abs_c4.o -g -O2 -Wall -version -fno-repack-arrays -fno-underscoring -fallow-leading-underscore -I. -I../../../svn/libgfortran -I. -I../../../svn/libgfortran/../gcc -I../../../svn/libgfortran/../gcc/config -I../.././gcc -I . -fpreprocessed -fintrinsic-modules-path finclude -o _abs_c4.s GNU Fortran (GCC) version 4.4.0 20080510 (experimental) (i386-pc-mingw32) compiled by GNU C version 4.4.0 20080510 (experimental), GMP version 4.2.2, MPFR version 2.3.1. GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Error: Can't open file '_abs_c4.f95' <built-in>:0: fatal error: can't open input file: _abs_c4.f95 compilation terminated. However, the output file _abs_c4.f95 is actually there. 3) When I attempted to re-run the above command in GDB, I got a crash in malloc: Program received signal SIGSEGV, Segmentation fault. 0x7c91b3fb in wcsncat () from C:\WINDOWS\system32\ntdll.dll (The above message is incorrect due to GDB limitations) #0 xmalloc (size=54) at ../../svn/libiberty/xmalloc.c:147 #1 0x00440ea8 in gfc_getmem (n=54) at ../../svn/gcc/fortran/misc.c:37 #2 0x0045ed50 in gfc_widechar_to_char (s=0x282a788, length=-1) at ../../svn/gcc/fortran/scanner.c:198 #3 0x0046058a in preprocessor_line (c=0x282ab4c) at ../../svn/gcc/fortran/scanner.c:1606 #4 0x00460870 in load_file ( filename=0x282aa00 "../../../svn/libgfortran/generated/_abs_c4.F90", initial=1 '\001') at ../../svn/gcc/fortran/scanner.c:1800 #5 0x00460dd9 in gfc_new_file () at ../../svn/gcc/fortran/scanner.c:1912 #6 0x004768e2 in gfc_init () at ../../svn/gcc/fortran/f95-lang.c:288 #7 0x00527e16 in toplev_main (argc=29, argv=0x3d4518) at ../../svn/gcc/toplev.c:2039 #8 0x004bfa09 in main (argc=) at ../../svn/gcc/main.c:35 So, it looks like there is some sort of heap corruption. I'm going to look at this more after I've resolved some other issues, and I'm going to re-bootstrap with more conservative options to see if that helps. -- Summary: [4.4 regression] Fortran bootstrap fails on _abs_c4.F90 Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: build Severity: major Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: aaronavay62 at aaronwl dot com GCC host triplet: i386-pc-mingw32 GCC target triplet: i386-pc-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36215