From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32101 invoked by alias); 19 Nov 2015 12:06:13 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 32091 invoked by uid 89); 19 Nov 2015 12:06:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-vk0-f54.google.com Received: from mail-vk0-f54.google.com (HELO mail-vk0-f54.google.com) (209.85.213.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 19 Nov 2015 12:06:11 +0000 Received: by vkfr145 with SMTP id r145so15034113vkf.1 for ; Thu, 19 Nov 2015 04:06:08 -0800 (PST) X-Received: by 10.31.52.134 with SMTP id b128mr4307737vka.150.1447934768462; Thu, 19 Nov 2015 04:06:08 -0800 (PST) Received: from [172.21.188.140] ([149.6.156.42]) by smtp.googlemail.com with ESMTPSA id 203sm3553648vkl.16.2015.11.19.04.06.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Nov 2015 04:06:07 -0800 (PST) Subject: Re: gfortran segfaults on "Hello world" To: cygwin@cygwin.com References: <564CFB0C.9000803@netcologne.de> <20151118225059.5EF9811DB5@cc-mx2.netcologne.de> <564D74D5.1040103@netcologne.de> From: Marco Atzeri Message-ID: <564DBB2C.10500@gmail.com> Date: Thu, 19 Nov 2015 12:06:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <564D74D5.1040103@netcologne.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00268.txt.bz2 On 19/11/2015 08:05, Thomas Koenig wrote: > Hi, > >> Cygwin64 now offers a choice among 4.9.2-3, 4.9.3-1, and 5.2.0-1. I >> have the last one installed, and in addition a recently built 6.0 on my >> Haswell laptop. I’m fairly certain I have used the 4.9.3 successfully >> in the past. It looks like you need to update to the current gmp and >> mpfr. Normally, cygwin install.exe would tell you to do that if you >> install a gcc and gfortran built against those. > > I just installed 5.2.0, and got the same warning about mismatched > libraries and the same segfault. > >> If you really wanted 4.9.3-1 running against the older gmp and mpfr, you >> could build it yourself. > > The library versions are *newer* than what both 4.9.3 and 5.2.0 from the > distribution are built against. This may or may not be the cause of the > problem; either way gfortran is currently broken on Cygwin 64. gfortran 4.9.3-1 is working fine on my W7-64 system $ cygcheck -cd |grep -E "fortran|gmp|mpfr" gcc-fortran 4.9.3-1 gmp 6.1.0-1 libgfortran3 4.9.3-1 libgmp-devel 6.1.0-1 libgmp10 6.1.0-1 libgmpxx4 6.1.0-1 libmpfr-devel 3.1.3-1 libmpfr4 3.1.3-1 mpfr 3.1.3-1 $ gfortran -ffree-form helloworld.f -o helloworld-f77-gcc $ ./helloworld-f77-gcc.exe Hello World! $ cat helloworld.f write (*,*) "Hello World!" end -- 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