This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cygwin 2.0.2, make 4.1: stderr redirect append does not work with native Windows programs
- From: Takashi Yano <takashi dot yano at nifty dot ne dot jp>
- To: cygwin at cygwin dot com
- Date: Fri, 15 May 2015 18:33:39 +0900
- Subject: Re: cygwin 2.0.2, make 4.1: stderr redirect append does not work with native Windows programs
- Authentication-results: sourceware.org; auth=none
- References: <5551188B dot 7050503 at coverity dot com> <55525B85 dot 90001 at coverity dot com>
On Tue, 12 May 2015 12:59:01 -0700
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.)
Although I'm not sure why this happens (maybe a bug of make), try
make -O 2>&1 | cat
With option -O, it seems to work as expected.
--
Takashi Yano <takashi.yano@nifty.ne.jp>
--
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