Building on Cygwin (1.5) with:
prefix_dir_name="usr/local/gfortran"
prefix_dir="/${prefix_dir_name}"
dataroot_dir="${prefix_dir}/share"
eprefix_dir="${prefix_dir}"
sysconf_dir="${prefix_dir}/etc"
lib_dir="${eprefix_dir}/lib"
libexec_dir="${eprefix_dir}/lib"
man_dir="${dataroot_dir}/man"
info_dir="${dataroot_dir}/info"
${gcc_dir}/configure --prefix="${prefix_dir}" \
--exec-prefix="${eprefix_dir}" \
--sysconfdir="${sysconf_dir}" \
--libdir="${lib_dir}" \
--libexecdir="${libexec_dir}" \
--mandir="${man_dir}" \
--infodir="${info_dir}" \
--program-suffix="${suffix}" \
--enable-languages=c,fortran \
--enable-bootstrap \
--enable-decimal-float=bid \
--enable-libgomp \
--enable-threads \
--enable-sjlj-exceptions \
--enable-version-specific-runtime-libs \
--enable-nls \
--enable-checking=release \
--disable-fixed-point \
--disable-libmudflap \
--disable-shared \
--disable-win32-registry \
--with-system-zlib \
--without-included-gettext \
--without-x
I see the following.
It builds fine and also fortran programas build fine, but, for example,
$ cat hello.F95
!
! hello.F95
!
program hello
print *,'Hello World!'
end program hello
$ /usr/local/gfortran/bin/gfortran-4.5.exe hello.F95 -o hello
$ ./hello
Fortran runtime error: End of record
$ ls -lrt
[...]
-rwxr-xr-x 1 ... 165713 May 30 11:01 hello.exe
-rw-r--r-- 1 ... 0 May 30 11:01 fort.6 <== NOte this!
...and this with all programs I tried.
Cheers,
Angelo.