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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=AZrwW33+Bb0EmuhE a1bZkqjgESLTqJQP20dA5GP1IG2wcgAB3iSw9ddT/2mRidL9giQEne2aJFIZM9lP woqdtNVqmFobzLtYIpQL1eFzCmZygYlkStYTA5lx3H3lja9sbtFzJKosQPZa/A6r h9fpttIa6PbJUSEuTux4I+BdDm4= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=U8Di7SC6hhjnlzFB+S/6kT 992IY=; b=IxB1KtBn1O55qDpudjzBnFGndZje8FNENgsaOPLhB378q0G+Kk91dy zvVVGuB+2uK+8UXZDhK3yk4YaU4Ab8H9aiHMd6wv0QTiyjN8tHnHFpAtZViJLI3h 7Ly8CD2Ay0yZhc3t3QI9ZAvDBfyjjoPqjhIpHcSvNhvt81usF1ziY= 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=-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 X-Received: by 10.31.52.134 with SMTP id b128mr4307737vka.150.1447934768462; Thu, 19 Nov 2015 04:06:08 -0800 (PST) Subject: Re: gfortran segfaults on "Hello world" To: cygwin AT cygwin DOT com References: <564CFB0C DOT 9000803 AT netcologne DOT de> <20151118225059 DOT 5EF9811DB5 AT cc-mx2 DOT netcologne DOT de> <564D74D5 DOT 1040103 AT netcologne DOT de> From: Marco Atzeri Message-ID: <564DBB2C.10500@gmail.com> Date: Thu, 19 Nov 2015 13:06:04 +0100 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 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