Dear all,
I have been trying to compile FAST with gfortran on Windows 7 64-bit. I have been trying many different options.
I have tried with gfortran 4.6.3 and have obtained the same error as an earlier post, (Compiling FAST under Windows 7 with gfortran), i.e.,
“C:\Users\simonphilippeb\Documents\FAST\Compiling>make
gfortran -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -c ./NWTCsource/Source/NWTC_IO.f90 -o Obj_win32/NWTC_IO.obj -J Obj_win32
./NWTCsource/Source/NWTC_IO.f90: In function ‘checkargs’:
./NWTCsource/Source/NWTC_IO.f90:854:0: internal compiler error: in gfc_get_symbo
l_decl, at fortran/trans-decl.c:1444
END SUBROUTINE ChkRealFmtStr ! ( RealFmt, TrapErrors )
^
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
make: *** [NWTC_IO.obj] Error 1”
The person on this earlier post solved his problem by using gfortran 4.6.1 instead. I have tried it but it did not work either. I have then obtained
“C:\Users\name\Documents\ProgramFiles\gcc-4.6.1-tdm64-1-fortran\bin>make
gfortran -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -c C:/Users/name/Documents/ProgramFiles/gcc-4.6.1-tdm64-1-fortran/Ot
her/Source/SingPrec.f90 -o Obj_win32/SingPrec.obj -J Obj_win32
make: *** [SingPrec.obj] Error 1”
I have also tried with several different versions of gfortran (from 4.6.2 to 4.8.1) by using mingw-builds-install (that allows to create different “mingw-builds” from which “make” can be called in the directory where the makefile is located), but I did not manage either.
When using make, I obtained:
“gfortran -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -c ./NWTCsource/Source/NWTC_IO.f90 -o Obj_win32/NWTC_IO.obj -J Obj_win32
./NWTCsource/Source/NWTC_IO.f90: In function ‘checkargs’:
./NWTCsource/Source/NWTC_IO.f90:854:0: internal compiler error: in gfc_get_symbo
l_decl, at fortran/trans-decl.c:1444
END SUBROUTINE ChkRealFmtStr ! ( RealFmt, TrapErrors )
^
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
make: *** [NWTC_IO.obj] Error 1”
while when using “mingw32-make” (following a suggestion from the earlier post), I obtained:
“gfortran -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -c ./NWTCsource/Source/SingPrec.f90 -o Obj_win32/SingPrec.obj -J Obj_win
32
gfortran -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -c ./NWTCsource/Source/SysGnuWin.f90 -o Obj_win32/SysGnuWin.obj -J Obj_w
in32
gfortran -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-leng
th-none -c ./NWTCsource/Source/NWTC_IO.f90 -o Obj_win32/NWTC_IO.obj -J Obj_win32
./NWTCsource/Source/NWTC_IO.f90: In function ‘checkargs’:
./NWTCsource/Source/NWTC_IO.f90:854:0: internal compiler error: in gfc_get_symbo
l_decl, at fortran/trans-decl.c:1444
END SUBROUTINE ChkRealFmtStr ! ( RealFmt, TrapErrors )
^
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
makefile:165: recipe for target ‘NWTC_IO.obj’ failed
mingw32-make: *** [NWTC_IO.obj] Error 1”
Would somebody have an idea as to what the problem is?
I have included the files I have been using, in a zip folder, that could be tried for compilation to see if this works for another user.
Thanks very much in advance,
Simon
gfortranCompilation.zip (2.93 MB)