X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=LDWDr4AahVby4FVz bvOc8p87UtjRu2SbxEB70mk2tLp6/ilGUEZFcrFAoilkdT9ewbnkgxsF6J3pVcR8 kpX5HD/EQ6TgrejZy8I7VqCsetYiHZndrmO2JrJ5mylEb87ShJYEsFpHZSf/VV/l QzWrcXwlvoj4ek05P1YAPAFzxd4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=default; bh=vtWianlL4EqhmTcA5CvEfS eHMwQ=; b=fgNVUPJhFut4Z9xeDvL1+IRN+GiQbO2m2B1KpUPJXsBTlS4Wf23FeU walhjG2gUU0t3HMMHjwfOA5MFTHZhiMI/qoH6QBi++lbKL22+LQDWnizdsw2fB/X 6lytljZ3JKBY8zIJiLHOuNtR9GtJ7wQe7HvonduMcARi8vPdRvbGk= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_MXURI,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=no version=3.3.2 X-HELO: omr-m016e.mx.aol.com Message-ID: <564D049C.3030809@aol.com> Date: Wed, 18 Nov 2015 18:07:08 -0500 From: Tim Prince Reply-To: tprince AT computer DOT org User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: gfortran segfaults on "Hello world" References: <564CFB0C DOT 9000803 AT netcologne DOT de> In-Reply-To: <564CFB0C.9000803@netcologne.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit x-aol-global-disposition: G x-aol-sid: 3039ac1b0261564d04af0b9f X-AOL-IP: 98.30.246.22 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 > : internal compiler error: Segmentation fault > Please submit a full bug report, > with preprocessed source if appropriate. > See 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 > : internal compiler error: Segmentation fault > Please submit a full bug report, > with preprocessed source if appropriate. > See 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