Compiling a file with -c option (no exec)with gfortran lets the compiler output an internal error message.
The file: ! Demoprogramm: ! Aufrufen einer C-Routine von Fortran aus ! Die C-Routine wird innerhalb eines Modules deklariert module cproc interface ! definierte Schnittstelle subroutine pythagoras (a, b, res) !DEC$ ATTRIBUTES C :: pythagoras !DEC$ ATTRIBUTES REFERENCE :: res real :: a, b, res end subroutine end interface end module program fmain use cproc implicit none real :: x, y, z write(*,*) ' Berechnung der Hypotenusenlaenge eines rechtwickligen Dreie cks' write(*,*) ' Geben Sie die beiden Seitenlaengen ein, die den rechten Win kel' write(*,*) ' einschliessen:' read(*,*) x, y call pythagoras(x,y,z) write(*,*) ' Die Laenge der Hypotenuse betraegt: ', z end program fmain The error message (translated by hand to english): administra...@pc55556 /c/vectra/fortran $ gfortran -c fmain.f90 Unrecoverable error: Can't delete module file 'cproc.mod': Permission denied gfortran.exe: Onternal error: Aborted (program f951) Please send a complete error report in english ... administra...@pc55556 /c/vectra/fortran $ gfortran -v Target: mingw32 Configured with: ../gcc-4.4.0/configure --enable-languages=c,ada,c++,fortran,ja va,objc,obj-c++ --disable-sjlj-exceptions --enable-shared --enable-libgcj --enab le-libgomp --with-dwarf2 --disable-win32-registry --enable-libstdcxx-debug --ena ble-version-specific-runtime-libs --prefix=/mingw --with-gmp=/mingw/src/gmp/root --with-mpfr=/mingw/src/mpfr/root --build=mingw32 Thread-Modell: win32 gcc-Version 4.4.0 (GCC) administra...@pc55556 /c/vectra/fortran The error message (original as it appeared on the screen): administra...@pc55556 /c/vectra/fortran $ gfortran -c fmain.f90 Schwerwiegender Fehler: Can't delete module file 'cproc.mod': Permission denied gfortran.exe: Interner Fehler: Aborted (Programm f951) Bitte senden Sie einen vollständigen Fehlerbericht auf Englisch ein; Fehler in der deutschen Übersetzung sind an translation-team...@lists.sourceforge.net zu melden. Gehen Sie gemäà den Hinweisen in <http://gcc.gnu.org/bugs.html> vor. administra...@pc55556 /c/vectra/fortran $ gfortran -v Es werden eingebaute Spezifikationen verwendet. Ziel: mingw32 Konfiguriert mit: ../gcc-4.4.0/configure --enable-languages=c,ada,c++,fortran,ja va,objc,obj-c++ --disable-sjlj-exceptions --enable-shared --enable-libgcj --enab le-libgomp --with-dwarf2 --disable-win32-registry --enable-libstdcxx-debug --ena ble-version-specific-runtime-libs --prefix=/mingw --with-gmp=/mingw/src/gmp/root --with-mpfr=/mingw/src/mpfr/root --build=mingw32 Thread-Modell: win32 gcc-Version 4.4.0 (GCC) administra...@pc55556 /c/vectra/fortran -- Summary: compiler crashes and asks for this bug report Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: frank dot braun at rz dot uni-regensburg dot de GCC build triplet: MSYS full with gcc g++ and gfortran GCC host triplet: Dell Intel Windows Mingwin MSYS GCC target triplet: Dell Intel Windows Mingwin MSYS http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42848