delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/10/18:49:59

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A075CB3.8080905@gmail.com>
Date: Mon, 11 May 2009 00:01:07 +0100
From: Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: gfortran-4 problem: stdout is lost when redirected
References: <4A06C63B DOT 60106 AT gmail DOT com>
In-Reply-To: <4A06C63B.60106@gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

David Billinghurst wrote:
> I have a problem with cygwin gfortran 4.3.2 20080827 on cygwin-1.7. Text
> written to stdout (unit 6) is lost when redirected.  The problem goes
> away if I add  a "close(6)" statement, so the buffer may not be flushed
> properly.
> 
> I don't see the problem with vanilla gcc-4.4.0 or gcc-trunk, compiled
> from source.  These versions still use static libraries, so I am unsure
> if the problem has been fixed, or if it is due to the patches in the
> cygwin version of 4.3.2.

  Yes, this is a known problem with the DLL build of libgfortran, last
discussed on this list two days ago.  It's almost certainly to do with
buffered output and DLLs unloading at process shutdown, and the current
workaround is to use static linking.  I believe this is a problem from
upstream, where shared libraries are still not the default.  Getting java to
work at all (it currently builds an invalid DLL) is my first priority,
followed by gfortran stdio and libstdc function replacement.  Also, PTC!

    cheers,
      DaveK

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019