This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gfortran segfaults on "Hello world"


On 11/18/2015 5:26 PM, Thomas Koenig wrote:
Hi,

gfortran appears to be broken (segfault) with the newest cygwin
version I just downloaded. It segfaults on a "Hello, world" program.
gcc works fine.

The warnings on the GMP and MPFR headers make me suspect that some
dependency may be broken.

Here's what happens:

$ gfortran.exe hello.f
<built-in>: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

$ which gfortran
/usr/bin/gfortran

$ ldd /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/f951.exe
         ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll
(0x7ff96d540000)
         KERNEL32.DLL => /cygdrive/c/Windows/system32/KERNEL32.DLL
(0x7ff96b8d0000)
         KERNELBASE.dll => /cygdrive/c/Windows/system32/KERNELBASE.dll
(0x7ff96a760000)
         cygcloog-isl-4.dll => /usr/bin/cygcloog-isl-4.dll (0x3fc700000)
         cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
         cyggmp-10.dll => /usr/bin/cyggmp-10.dll (0x3fb610000)
         cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x3fa2f0000)
         cygintl-8.dll => /usr/bin/cygintl-8.dll (0x3f69d0000)
         cygisl-10.dll => /usr/bin/cygisl-10.dll (0x3f68e0000)
         cygmpc-3.dll => /usr/bin/cygmpc-3.dll (0x3f63f0000)
         cygmpfr-4.dll => /usr/bin/cygmpfr-4.dll (0x3f6390000)
         cygz.dll => /usr/bin/cygz.dll (0x3f4930000)
         cyggcc_s-seh-1.dll => /usr/bin/cyggcc_s-seh-1.dll (0x3fbc50000)

$ gfortran -v hello.f
Driving: gfortran -v hello.f -l gfortran -shared-libgcc
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/lto-wrapper.exe
Target: x86_64-pc-cygwin
Configured with:
/cygdrive/i/szsz/tmpp/gcc/gcc-4.9.3-1.x86_64/src/gcc-4.9.3/configure
--srcdir=/cygdrive/i/szsz/tmpp/gcc/gcc-4.9.3-1.x86_64/src/gcc-4.9.3
--prefix=/usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc
--docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C
--build=x86_64-pc-cygwin --host=x86_64-pc-cygwin
--target=x86_64-pc-cygwin --without-libiconv-prefix
--without-libintl-prefix --libexecdir=/usr/lib --enable-shared
--enable-shared-libgcc --enable-static
--enable-version-specific-runtime-libs --enable-bootstrap
--enable-__cxa_atexit --with-dwarf2 --with-tune=generic
--enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ --enable-graphite
--enable-threads=posix --enable-libatomic --enable-libgomp
--disable-libitm --enable-libquadmath --enable-libquadmath-support
--enable-libssp --enable-libada --enable-libgcj-sublibs
--disable-java-awt --disable-symvers
--with-ecj-jar=/usr/share/java/ecj.jar --with-gnu-ld --with-gnu-as
--with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix
--without-libintl-prefix --with-system-zlib --enable-linker-build-id
Thread model: posix
gcc version 4.9.3 (GCC)
COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
  /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/f951.exe hello.f -ffixed-form
-quiet -dumpbase hello.f -mtune=generic -march=x86-64 -auxbase hello
-version -fintrinsic-modules-path
/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/finclude -o /tmp/ccsadurw.s
GNU Fortran (GCC) version 4.9.3 (x86_64-pc-cygwin)
         compiled by GNU C version 4.9.3, GMP version 6.0.0, MPFR
version 3.1.2-p11, MPC version 1.0.3
warning: GMP header version 6.0.0 differs from library version 6.1.0.
warning: MPFR header version 3.1.2-p11 differs from library version 3.1.3.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU Fortran (GCC) version 4.9.3 (x86_64-pc-cygwin)
         compiled by GNU C version 4.9.3, GMP version 6.0.0, MPFR
version 3.1.2-p11, MPC version 1.0.3
warning: GMP header version 6.0.0 differs from library version 6.1.0.
warning: MPFR header version 3.1.2-p11 differs from library version 3.1.3.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
<built-in>: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Any ideas?

upgrade gmp and mpfr to current versions. I prefer the gfortran 5.2 binary, or a 6.0 bootstrapped from 5.2, all using those current cygwin gmp and mpfr releases.
--
Tim Prince

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]