This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/42848] New: compiler crashes and asks for this bug report
- From: "frank dot braun at rz dot uni-regensburg dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2010 16:41:54 -0000
- Subject: [Bug fortran/42848] New: compiler crashes and asks for this bug report
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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):
Administrator@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
...
Administrator@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)
Administrator@PC55556 /c/vectra/fortran
The error message (original as it appeared on the screen):
Administrator@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-de@lists.sourceforge.net zu melden.
Gehen Sie gem├ñ├? den Hinweisen in <http://gcc.gnu.org/bugs.html>
vor.
Administrator@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)
Administrator@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