From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41636 invoked by alias); 27 May 2015 16:08:06 -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 41624 invoked by uid 89); 27 May 2015 16:08:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f182.google.com Received: from mail-wi0-f182.google.com (HELO mail-wi0-f182.google.com) (209.85.212.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 27 May 2015 16:07:56 +0000 Received: by wicmx19 with SMTP id mx19so116955250wic.0 for ; Wed, 27 May 2015 09:07:53 -0700 (PDT) X-Received: by 10.180.87.38 with SMTP id u6mr7433447wiz.43.1432742873624; Wed, 27 May 2015 09:07:53 -0700 (PDT) Received: from [172.21.188.214] ([149.6.156.42]) by mx.google.com with ESMTPSA id o6sm4329926wiz.24.2015.05.27.09.07.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 May 2015 09:07:53 -0700 (PDT) Message-ID: <5565EBCF.8080707@gmail.com> Date: Wed, 27 May 2015 16:25:00 -0000 From: Marco Atzeri User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: cygwin 2.0.2, make 4.1: stderr redirect append does not work with native Windows programs References: <5551188B.7050503@coverity.com> <55525B85.90001@coverity.com> <20150527114801.GB16927@calimero.vinschen.de> In-Reply-To: <20150527114801.GB16927@calimero.vinschen.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-05/txt/msg00358.txt.bz2 On 5/27/2015 1:48 PM, Corinna Vinschen wrote: > On May 12 12:59, Scott McPeak wrote: >> I am attaching a reproducer Makefile. Run "make 2>&1 | cat" to see >> the incorrect output: >> >> $ make 2>&1 | cat >> echo first > output >> echo secondxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx >> >> output >> /cygdrive/c/Windows/System32/sort.exe nonexist 2>> output; true >> ----- BEGIN output ----- >> nonexistThe system cannot find the file specified. >> xxxxxxxxxxxxxx >> ----- END output ----- >> >> The bug happens with both make 4.1 and make 4.0 on cygwin 2.0.2. It >> does not happen with make 3.82.90 and cygwin 1.7.23. (And that is >> my only known workaround: downgrade to cygwin 1.7.) > > This appears to be an issue with make 4. Using make 3.82.90 under > recent Cygwin "fixes" the issue. "Fixes" in quotes, because this might > be a result of how more recent make versions handle I/O. This could > be a deliberate decision in terms of flushing output to a file. > Then again, it's rather puzzeling that this affects a file only opened > by the subshell. > > Marco, do you see a chance trying to find out why this occurs? > > > Thanks, > Corinna I will put in the TODO list, but real job is giving me short time for the time being. Marco -- 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