public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* cygwin 2.0.2, make 4.1: stderr redirect append does not work with native Windows programs
       [not found] <5551188B.7050503@coverity.com>
@ 2015-05-13  3:33 ` Scott McPeak
  2015-05-13 10:34   ` Lemke, Michael  ST/HZA-ZSW
                     ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Scott McPeak @ 2015-05-13  3:33 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 2303 bytes --]

Using 32-bit cygwin 2.0.2 and make 4.1-1, in a recipe, redirecting
stderr in append mode does not work if the program being invoked on a
shell line is a native Windows executable.  Instead of appending, the
stderr output is written to the top of the file, corrupting it. This
happens only if the 'make' process has its own stdout/err redirected to
a pipe.

Example recipe:

     all:
             echo first > output
             echo
secondxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx >> output
             /cygdrive/c/Windows/System32/sort.exe nonexist 2>> output; true

When "make" is run, the "output" file should be:

     first
     secondxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
     nonexistThe system cannot find the file specified.

and in fact it is.  But when "make 2>&1 | cat" is run, the output is:

     nonexistThe system cannot find the file specified.
     xxxxxxxxxxxxxx

even though it should be the same as before.  The error message written
by sort.exe went to the top of the file instead of the end.

The problem does not happen if 'sort.exe' is replaced with a cygwin
program such as /usr/bin/sort.

The problem does not happen if stdout is redirected instead of stderr.

The problem does not happen if the output of 'make' is redirected to
a file instead of a pipe.

The problem does not happen if the sequence of commands in the recipe
is copied into a shell script and the shell invoked with its output
redirected to a pipe.  That is why I am filing this against 'make'.
However, it is possible the bug is in the shell (or a different shell?)
and I just don't know how to invoke it properly to imitate what 'make'
does.

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.)

-Scott








[-- Attachment #2: cygcheck.out --]
[-- Type: text/plain, Size: 39254 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Sat May 09 02:41:46 2015

Windows 7 Enterprise Ver 6.1 Build 7601 Service Pack 1

Running under WOW64 on AMD64

Path:	C:\Python27
	C:\Python\Scripts
	C:\cygwin\home\smcpeak\bin
	C:\cygwin\home\smcpeak\scripts
	C:\cygwin\usr\local\bin
	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\Program Files\Java\jdk1.8.0_45\bin
	C:\Python27
	C:\Python27\Scripts
	C:\Program Files (x86)\Intel\iCLS Client
	C:\Program Files\Intel\iCLS Client
	C:\Windows\system32
	C:\Windows
	C:\Windows\System32\Wbem
	C:\Windows\System32\WindowsPowerShell\v1.0
	C:\Program Files\Intel\Intel(R) Management Engine Components\DAL
	C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL
	C:\Program Files\Intel\Intel(R) Management Engine Components\IPT
	C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT
	C:\Program Files\Intel\WiFi\bin
	C:\Program Files\Common Files\Intel\WirelessCommon
	C:\Program Files\NetIQ\SecureLogin
	C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit
	C:\Program Files\Microsoft SQL Server\110\Tools\Binn
	C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0
	C:\Users\smcpeak\AppData\Roaming\Python\Scripts
	C:\cygwin\sbin
	C:\cygwin\usr\sbin
	C:\cygwin\usr\local\sbin
	C:\cygwin\usr\local\jdk\bin

Output from C:\cygwin\bin\id.exe
UID: 1480343(smcpeak)            GID: 1049089(SYNOPSYS+Group(513)
=1049089(SYNOPSYS+Group(513))    544(Administrators)
559(Performance Log Users)       545(Users)
4(INTERACTIVE)                   66049(CONSOLE LOGON)
11(Authenticated Users)          15(This Organization)
4095(CurrentSession)             66048(LOCAL)
1235865(SYNOPSYS+Group(187289))  1383014(SYNOPSYS+Group(334438))
1360701(SYNOPSYS+Group(312125))  1191316(SYNOPSYS+Group(142740))
1218285(SYNOPSYS+Group(169709))  1361896(SYNOPSYS+Group(313320))
1475212(SYNOPSYS+Group(426636))  1478346(SYNOPSYS+Group(429770))
1477176(SYNOPSYS+Group(428600))  1478009(SYNOPSYS+Group(429433))
1485746(SYNOPSYS+Group(437170))  1380667(SYNOPSYS+Group(332091))
405504(High Mandatory Level)

SysDir: C:\Windows\system32
WinDir: C:\Windows

USER = 'smcpeak'
LD_LIBRARY_PATH = '/home/smcpeak/lib'
PWD = '/c/wrk/make-bug'
HOME = '/home/smcpeak'

HOMEPATH = '\Users\smcpeak'
APPDATA = 'C:\Users\smcpeak\AppData\Roaming'
ProgramW6432 = 'C:\Program Files'
HOSTNAME = 'smcpeak-E7250'
UOIPME_REG_PATH = 'C:\Program Files\Intel Corporation\USB over IP'
SHELL = '/bin/bash'
TERM = 'xterm'
PROCESSOR_IDENTIFIER = 'Intel64 Family 6 Model 61 Stepping 4, GenuineIntel'
PROFILEREAD = 'true'
WINDIR = 'C:\Windows'
IGNOREEOF = '10'
CVSROOT = '/home/smcpeak/cvsroot'
systype = 'Primary'
PUBLIC = 'C:\Users\Public'
OLDPWD = '/home/smcpeak'
PERL_MB_OPT = '--install_base "/home/smcpeak/perl5"'
ORIGINAL_PATH = '/cygdrive/c/Program Files/Java/jdk1.8.0_45/bin:/cygdrive/c/Python27:/cygdrive/c/Python27/Scripts:/cygdrive/c/Program Files (x86)/Intel/iCLS Client:/cygdrive/c/Program Files/Intel/iCLS Client:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/cygdrive/c/Program Files/Intel/WiFi/bin:/cygdrive/c/Program Files/Common Files/Intel/WirelessCommon:/cygdrive/c/Program Files/NetIQ/SecureLogin:/cygdrive/c/Program Files (x86)/Windows Kits/8.1/Windows Performance Toolkit:/cygdrive/c/Program Files/Microsoft SQL Server/110/Tools/Binn:/cygdrive/c/Program Files (x86)/Microsoft SDKs/TypeScript/1.0:/cygdrive/c/Users/smcpeak/AppData/Roaming/Python/Scripts'
USERDOMAIN = 'SYNOPSYS'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\ProgramData'
XAPPLRESDIR = '/home/smcpeak/.xapplresdir'
windows_tracing_flags = '3'
windows_tracing_logfile = 'C:\BVTBin\Tests\installpackage\csilogfile.log'
!:: = '::\'
TEMP = '/tmp'
COMMONPROGRAMFILES = 'C:\Program Files (x86)\Common Files'
SiteCode = 'US01'
USERNAME = 'smcpeak'
PAGER = 'more'
Version_Image = '5_1_2012_W7'
PROCESSOR_LEVEL = '6'
ProgramFiles(x86) = 'C:\Program Files (x86)'
BK_TRIGGER_FIX_COPYRIGHT = '1'
PSModulePath = 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\'
FP_NO_HOST_CHECK = 'NO'
SYSTEMDRIVE = 'C:'
SerTechID = 'torres'
PROCESSOR_ARCHITEW6432 = 'AMD64'
DONT_STITLE = '1'
EDITOR = 'pico'
LANG = 'en_US.UTF-8'
VS120COMNTOOLS = 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\'
USERPROFILE = 'C:\Users\smcpeak'
TZ = 'America/Los_Angeles'
PS1 = '\n\u@\h:\w`print_git_branch`\$ '
LOGONSERVER = '\\CA11VWADDC'
CommonProgramW6432 = 'C:\Program Files\Common Files'
PROCESSOR_ARCHITECTURE = 'x86'
LOCALAPPDATA = 'C:\Users\smcpeak\AppData\Local'
ProgramData = 'C:\ProgramData'
EXECIGNORE = '*.dll'
SHLVL = '1'
cleanup_DriverApps = 'done'
USERDNSDOMAIN = 'INTERNAL.SYNOPSYS.COM'
TRType = 'incoming'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw'
HOMEDRIVE = 'C:'
COMSPEC = 'C:\Windows\system32\cmd.exe'
TMP = '/tmp'
SYSTEMROOT = 'C:\Windows'
CVS_RSH = 'ssh'
PRINTER = 'Send To OneNote 2010'
PROCESSOR_REVISION = '3d04'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info'
PROGRAMFILES = 'C:\Program Files (x86)'
NUMBER_OF_PROCESSORS = '4'
SESSIONNAME = 'Console'
PERL_MM_OPT = 'INSTALL_BASE=/home/smcpeak/perl5'
OCAMLRUNPARAM = 'l=256M'
COMPUTERNAME = 'SMCPEAK-E7250'
_ = '/usr/bin/cygcheck'

HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\C:\cygwin'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'C:\cygwin'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: c5e39b7a9d22bafb Path: C:\cygwin

c:  hd  NTFS    243683Mb  34% CP CS UN PA FC     System

C:\cygwin        /          system  binary,auto
C:\cygwin\bin    /usr/bin   system  binary,auto
C:\cygwin\lib    /usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  user    binary,posix=0,auto

Found: C:\cygwin\bin\awk
 -> C:\cygwin\bin\gawk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Not Found: crontab
Found: C:\cygwin\bin\find.exe
Found: C:\Windows\system32\find.exe
Warning: C:\cygwin\bin\find.exe hides C:\Windows\system32\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\kill.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\patch.exe
Found: C:\cygwin\bin\perl.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\ssh.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\test.exe
Found: C:\cygwin\bin\vi.exe
Found: C:\cygwin\bin\vim.exe

  114k 2013/06/23 C:\cygwin\bin\cygapr-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygapr-1-0.dll" v0.0 ts=2013-06-23 18:07
  120k 2014/09/22 C:\cygwin\bin\cygaprutil-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygaprutil-1-0.dll" v0.0 ts=2014-09-22 18:48
   38k 2013/07/23 C:\cygwin\bin\cygargp-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygargp-0.dll" v0.0 ts=2013-07-23 15:35
   87k 2015/03/03 C:\cygwin\bin\cygatomic-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygatomic-1.dll" v0.0 ts=2015-03-03 17:49
   14k 2012/05/04 C:\cygwin\bin\cygattr-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygattr-1.dll" v0.0 ts=2012-05-04 12:35
  203k 2015/03/23 C:\cygwin\bin\cygblkid-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygblkid-1.dll" v0.0 ts=2015-03-23 09:55
   62k 2011/05/21 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2011-05-21 20:16
   10k 2012/05/03 C:\cygwin\bin\cygcatgets1.dll - os=4.0 img=1.0 sys=4.0
                  "cygcatgets1.dll" v0.0 ts=2012-05-03 15:04
   10k 2015/02/20 C:\cygwin\bin\cygcharset-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygcharset-1.dll" v0.0 ts=2015-02-20 16:52
  125k 2013/05/09 C:\cygwin\bin\cygcloog-isl-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygcloog-isl-4.dll" v0.0 ts=2013-05-09 08:37
   13k 2015/03/19 C:\cygwin\bin\cygcom_err-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygcom_err-2.dll" v0.0 ts=2015-03-19 02:45
    7k 2012/05/07 C:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2012-05-07 12:18
 1981k 2015/03/19 C:\cygwin\bin\cygcrypto-1.0.0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-1.0.0.dll" v0.0 ts=2015-03-19 17:27
  461k 2015/04/29 C:\cygwin\bin\cygcurl-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygcurl-4.dll" v0.0 ts=2015-04-29 20:38
 1284k 2011/11/10 C:\cygwin\bin\cygdb-4.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.8.dll" v0.0 ts=2011-11-10 18:45
  273k 2015/02/17 C:\cygwin\bin\cygdbus-1-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygdbus-1-3.dll" v0.0 ts=2015-02-17 19:43
  105k 2011/11/10 C:\cygwin\bin\cygdb_cxx-4.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.8.dll" v0.0 ts=2011-11-10 18:46
  159k 2013/10/20 C:\cygwin\bin\cygedit-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygedit-0.dll" v0.0 ts=2013-10-20 22:09
  153k 2013/07/31 C:\cygwin\bin\cygexpat-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-1.dll" v0.0 ts=2013-07-31 22:33
   32k 2014/10/14 C:\cygwin\bin\cygfam-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygfam-0.dll" v0.0 ts=2014-10-14 21:21
   27k 2015/01/02 C:\cygwin\bin\cygffi-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygffi-6.dll" v0.0 ts=2015-01-02 01:11
  225k 2015/01/02 C:\cygwin\bin\cygfontconfig-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygfontconfig-1.dll" v0.0 ts=2015-01-02 03:39
   23k 2013/06/06 C:\cygwin\bin\cygfontenc-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygfontenc-1.dll" v0.0 ts=2013-06-06 22:17
   60k 2015/04/13 C:\cygwin\bin\cygformw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygformw-10.dll" v0.0 ts=2015-04-13 08:02
  597k 2015/01/26 C:\cygwin\bin\cygfreetype-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygfreetype-6.dll" v0.0 ts=2015-01-26 17:20
  107k 2015/03/03 C:\cygwin\bin\cyggcc_s-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggcc_s-1.dll" v0.0 ts=2015-03-03 14:52
   19k 2009/02/26 C:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2009-02-26 07:58
    8k 2009/02/26 C:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2009-02-26 07:58
 1407k 2015/03/12 C:\cygwin\bin\cyggio-2.0-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggio-2.0-0.dll" v0.0 ts=2015-03-12 06:28
 1036k 2015/03/12 C:\cygwin\bin\cygglib-2.0-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygglib-2.0-0.dll" v0.0 ts=2015-03-12 06:24
   15k 2015/03/12 C:\cygwin\bin\cyggmodule-2.0-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggmodule-2.0-0.dll" v0.0 ts=2015-03-12 06:24
  505k 2015/01/26 C:\cygwin\bin\cyggmp-10.dll - os=4.0 img=1.0 sys=4.0
                  "cyggmp-10.dll" v0.0 ts=2015-01-26 16:08
  958k 2015/02/13 C:\cygwin\bin\cyggnutls-28.dll - os=4.0 img=1.0 sys=4.0
                  "cyggnutls-28.dll" v0.0 ts=2015-02-13 13:14
   26k 2015/02/13 C:\cygwin\bin\cyggnutls-openssl-27.dll - os=4.0 img=1.0 sys=4.0
                  "cyggnutls-openssl-27.dll" v0.0 ts=2015-02-13 13:14
   23k 2015/02/13 C:\cygwin\bin\cyggnutls-xssl-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggnutls-xssl-0.dll" v0.0 ts=2015-02-13 13:14
   42k 2015/02/13 C:\cygwin\bin\cyggnutlsxx-28.dll - os=4.0 img=1.0 sys=4.0
                  "cyggnutlsxx-28.dll" v0.0 ts=2015-02-13 13:14
  316k 2015/03/12 C:\cygwin\bin\cyggobject-2.0-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggobject-2.0-0.dll" v0.0 ts=2015-03-12 06:25
   78k 2015/03/03 C:\cygwin\bin\cyggomp-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggomp-1.dll" v0.0 ts=2015-03-03 15:09
  272k 2015/02/22 C:\cygwin\bin\cyggssapi_krb5-2.dll - os=4.0 img=1.0 sys=4.0
                  "cyggssapi_krb5-2.dll" v0.0 ts=2015-02-22 14:03
    9k 2015/03/12 C:\cygwin\bin\cyggthread-2.0-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggthread-2.0-0.dll" v0.0 ts=2015-03-12 06:24
  812k 2015/02/20 C:\cygwin\bin\cygguile-17.dll - os=4.0 img=1.0 sys=4.0
                  "cygguile-17.dll" v0.0 ts=2015-02-20 16:34
   31k 2015/01/27 C:\cygwin\bin\cyghistory7.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory7.dll" v0.0 ts=2015-01-27 23:43
  173k 2015/02/11 C:\cygwin\bin\cyghogweed-2.dll - os=4.0 img=1.0 sys=4.0
                  "cyghogweed-2.dll" v0.0 ts=2015-02-11 17:01
 1010k 2015/02/20 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2015-02-20 16:52
  198k 2014/12/06 C:\cygwin\bin\cygidn-11.dll - os=4.0 img=1.0 sys=4.0
                  "cygidn-11.dll" v0.0 ts=2014-12-06 12:56
   41k 2015/02/20 C:\cygwin\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-8.dll" v0.0 ts=2015-02-20 18:11
  310k 2013/09/09 C:\cygwin\bin\cygiodbc-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiodbc-2.dll" v0.0 ts=2013-09-09 15:53
   67k 2013/09/09 C:\cygwin\bin\cygiodbcinst-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiodbcinst-2.dll" v0.0 ts=2013-09-09 15:53
  989k 2013/05/09 C:\cygwin\bin\cygisl-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygisl-10.dll" v0.0 ts=2013-05-09 08:14
  191k 2015/02/22 C:\cygwin\bin\cygk5crypto-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygk5crypto-3.dll" v0.0 ts=2015-02-22 14:02
  743k 2015/02/22 C:\cygwin\bin\cygkrb5-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygkrb5-3.dll" v0.0 ts=2015-02-22 14:03
   39k 2015/02/22 C:\cygwin\bin\cygkrb5support-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygkrb5support-0.dll" v0.0 ts=2015-02-22 14:02
   49k 2015/02/19 C:\cygwin\bin\cyglber-2-4-2.dll - os=4.0 img=1.0 sys=4.0
                  "cyglber-2-4-2.dll" v0.0 ts=2015-02-19 13:10
  270k 2015/02/19 C:\cygwin\bin\cygldap-2-4-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap-2-4-2.dll" v0.0 ts=2015-02-19 13:10
  286k 2015/02/19 C:\cygwin\bin\cygldap_r-2-4-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap_r-2-4-2.dll" v0.0 ts=2015-02-19 13:12
    5k 2015/05/08 C:\cygwin\bin\cyglsa.dll - os=4.0 img=1.0 sys=4.0
                  "cyglsa.dll" v0.0 ts=1970-01-01 00:00
    6k 2015/05/08 C:\cygwin\bin\cyglsa64.dll (not x86 dll)
   38k 2015/02/17 C:\cygwin\bin\cygltdl-7.dll - os=4.0 img=1.0 sys=4.0
                  "cygltdl-7.dll" v0.0 ts=2015-02-17 18:29
  159k 2015/05/04 C:\cygwin\bin\cyglzma-5.dll - os=4.0 img=1.0 sys=4.0
                  "cyglzma-5.dll" v0.0 ts=2015-05-04 04:00
  122k 2015/05/06 C:\cygwin\bin\cygmagic-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygmagic-1.dll" v0.0 ts=2015-05-06 08:06
  173k 2015/04/17 C:\cygwin\bin\cygman-2-7-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygman-2-7-1.dll" v0.0 ts=2015-04-17 22:31
   22k 2015/04/17 C:\cygwin\bin\cygmandb-2-7-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygmandb-2-7-1.dll" v0.0 ts=2015-04-17 22:31
   30k 2015/04/13 C:\cygwin\bin\cygmenuw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenuw-10.dll" v0.0 ts=2015-04-13 08:02
   98k 2015/03/01 C:\cygwin\bin\cygmpc-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygmpc-3.dll" v0.0 ts=2015-03-01 20:24
  361k 2015/01/26 C:\cygwin\bin\cygmpfr-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygmpfr-4.dll" v0.0 ts=2015-01-26 16:33
 2820k 2015/01/29 C:\cygwin\bin\cygmysqlclient-18.dll - os=4.0 img=18.0 sys=4.0
                  "cygmysqlclient-18.dll" v0.0 ts=2015-01-29 05:57
   57k 2015/04/13 C:\cygwin\bin\cygncurses++w-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++w-10.dll" v0.0 ts=2015-04-13 08:07
  327k 2015/04/13 C:\cygwin\bin\cygncursesw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncursesw-10.dll" v0.0 ts=2015-04-13 08:01
  141k 2014/11/11 C:\cygwin\bin\cygneon-27.dll - os=4.0 img=1.0 sys=4.0
                  "cygneon-27.dll" v0.0 ts=2014-11-11 16:42
  195k 2015/02/11 C:\cygwin\bin\cygnettle-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygnettle-4.dll" v0.0 ts=2015-02-11 17:01
  221k 2014/10/19 C:\cygwin\bin\cygp11-kit-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygp11-kit-0.dll" v0.0 ts=2014-10-19 15:00
   15k 2015/04/13 C:\cygwin\bin\cygpanelw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanelw-10.dll" v0.0 ts=2015-04-13 08:02
  458k 2015/04/30 C:\cygwin\bin\cygpcre-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-1.dll" v0.0 ts=2015-04-30 02:20
 1705k 2015/02/17 C:\cygwin\bin\cygperl5_14.dll - os=4.0 img=1.0 sys=4.0
                  "cygperl5_14.dll" v0.0 ts=2015-02-17 20:43
   41k 2015/04/09 C:\cygwin\bin\cygpipeline-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygpipeline-1.dll" v0.0 ts=2015-04-09 20:58
  196k 2015/04/13 C:\cygwin\bin\cygpng16-16.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng16-16.dll" v0.0 ts=2015-04-13 19:47
   41k 2013/10/21 C:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2013-10-21 21:52
  157k 2015/02/05 C:\cygwin\bin\cygpq-5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpq-5.dll" v0.0 ts=2015-02-05 21:04
  122k 2015/05/06 C:\cygwin\bin\cygproxy-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygproxy-1.dll" v0.0 ts=2015-05-06 06:46
  486k 2015/03/03 C:\cygwin\bin\cygquadmath-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygquadmath-0.dll" v0.0 ts=2015-03-03 15:54
  208k 2015/01/27 C:\cygwin\bin\cygreadline7.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline7.dll" v0.0 ts=2015-01-27 23:43
 2117k 2014/11/13 C:\cygwin\bin\cygruby200.dll - os=4.0 img=1.0 sys=4.0
                  "cygruby200.dll" v2.0 ts=2014-11-13 22:37
  102k 2014/11/24 C:\cygwin\bin\cygsasl2-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygsasl2-3.dll" v0.0 ts=2014-11-24 18:35
   92k 2014/12/20 C:\cygwin\bin\cygserf-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygserf-1-0.dll" v0.0 ts=2014-12-20 16:56
    8k 2011/05/05 C:\cygwin\bin\cygsigsegv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygsigsegv-2.dll" v0.0 ts=2011-05-05 08:33
   98k 2015/03/23 C:\cygwin\bin\cygsmartcols-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygsmartcols-1.dll" v0.0 ts=2015-03-23 09:55
  793k 2015/04/10 C:\cygwin\bin\cygsqlite3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsqlite3-0.dll" v0.0 ts=2015-04-10 11:58
  155k 2015/03/17 C:\cygwin\bin\cygssh2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygssh2-1.dll" v0.0 ts=2015-03-17 05:56
  443k 2015/03/19 C:\cygwin\bin\cygssl-1.0.0.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-1.0.0.dll" v0.0 ts=2015-03-19 17:27
   13k 2015/03/03 C:\cygwin\bin\cygssp-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygssp-0.dll" v0.0 ts=2015-03-03 15:49
  943k 2015/03/03 C:\cygwin\bin\cygstdc++-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygstdc++-6.dll" v0.0 ts=2015-03-03 15:08
  378k 2015/04/03 C:\cygwin\bin\cygsvn_client-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_client-1-0.dll" v0.0 ts=2015-04-03 19:22
   68k 2015/04/03 C:\cygwin\bin\cygsvn_delta-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_delta-1-0.dll" v0.0 ts=2015-04-03 19:20
   81k 2015/04/03 C:\cygwin\bin\cygsvn_diff-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_diff-1-0.dll" v0.0 ts=2015-04-03 19:20
   33k 2015/04/03 C:\cygwin\bin\cygsvn_fs-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs-1-0.dll" v0.0 ts=2015-04-03 19:21
  169k 2015/04/03 C:\cygwin\bin\cygsvn_fs_base-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs_base-1-0.dll" v0.0 ts=2015-04-03 19:21
  197k 2015/04/03 C:\cygwin\bin\cygsvn_fs_fs-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs_fs-1-0.dll" v0.0 ts=2015-04-03 19:21
   11k 2015/04/03 C:\cygwin\bin\cygsvn_fs_util-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs_util-1-0.dll" v0.0 ts=2015-04-03 19:20
   49k 2015/04/03 C:\cygwin\bin\cygsvn_ra-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra-1-0.dll" v0.0 ts=2015-04-03 19:22
   32k 2015/04/03 C:\cygwin\bin\cygsvn_ra_local-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_local-1-0.dll" v0.0 ts=2015-04-03 19:21
  165k 2015/04/03 C:\cygwin\bin\cygsvn_ra_serf-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_serf-1-0.dll" v0.0 ts=2015-04-03 19:21
  104k 2015/04/03 C:\cygwin\bin\cygsvn_ra_svn-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_svn-1-0.dll" v0.0 ts=2015-04-03 19:21
  192k 2015/04/03 C:\cygwin\bin\cygsvn_repos-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_repos-1-0.dll" v0.0 ts=2015-04-03 19:21
  422k 2015/04/03 C:\cygwin\bin\cygsvn_subr-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_subr-1-0.dll" v0.0 ts=2015-04-03 19:20
  664k 2015/04/03 C:\cygwin\bin\cygsvn_wc-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_wc-1-0.dll" v0.0 ts=2015-04-03 19:21
   69k 2015/04/23 C:\cygwin\bin\cygtasn1-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygtasn1-6.dll" v0.0 ts=2015-04-23 09:29
   54k 2015/04/13 C:\cygwin\bin\cygticw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygticw-10.dll" v0.0 ts=2015-04-13 08:01
   16k 2015/03/23 C:\cygwin\bin\cyguuid-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyguuid-1.dll" v0.0 ts=2015-03-23 09:55
 1173k 2015/03/26 C:\cygwin\bin\cygX11-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygX11-6.dll" v0.0 ts=2015-03-26 15:27
   10k 2013/06/06 C:\cygwin\bin\cygXau-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXau-6.dll" v0.0 ts=2013-06-06 06:29
  102k 2014/07/17 C:\cygwin\bin\cygxcb-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygxcb-1.dll" v0.0 ts=1970-01-01 00:00
   22k 2015/03/26 C:\cygwin\bin\cygXdmcp-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXdmcp-6.dll" v0.0 ts=2015-03-26 15:38
   62k 2014/08/10 C:\cygwin\bin\cygXext-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXext-6.dll" v0.0 ts=1970-01-01 00:00
   77k 2014/08/10 C:\cygwin\bin\cygXft-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygXft-2.dll" v0.0 ts=1970-01-01 00:00
 1242k 2014/10/19 C:\cygwin\bin\cygxml2-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygxml2-2.dll" v0.0 ts=2014-10-19 09:00
   35k 2013/06/14 C:\cygwin\bin\cygXrender-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXrender-1.dll" v0.0 ts=2013-06-14 10:01
    9k 2012/05/23 C:\cygwin\bin\cygXss-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXss-1.dll" v0.0 ts=2012-05-23 05:56
  114k 2014/12/08 C:\cygwin\bin\cygyaml-0-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygyaml-0-2.dll" v0.0 ts=2014-12-08 18:29
   83k 2014/11/19 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2014-11-19 22:57
 3364k 2015/05/08 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2015-05-08 23:19
    Cygwin DLL version info:
        DLL version: 2.0.2
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        Cygwin conv: 181
        API major: 0
        API minor: 287
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Installations name: Installations
        Cygdrive default prefix: 
        Build date: 
        Shared id: cygwin1S5


No Cygwin services found.


Cygwin Package Information
Last downloaded files to: C:\dist\cygwin
Last downloaded files from: http://mirrors.kernel.org/sourceware/cygwin/

Package                               Version            Status
_autorebase                           001002-1           OK
_update-info-dir                      01384-1            OK
alternatives                          1.3.30c-10         OK
base-cygwin                           3.8-1              OK
base-files                            4.2-3              OK
bash                                  4.3.33-1           OK
binutils                              2.25-1             OK
bzip2                                 1.0.6-2            OK
ca-certificates                       2.3-1              OK
coreutils                             8.23-4             OK
crypt                                 1.2-1              OK
csih                                  0.9.8-6            OK
cvs                                   1.12.13-10         OK
cygrunsrv                             1.62-1             OK
cygutils                              1.4.14-1           OK
cygwin                                2.0.2-1            OK
cygwin-devel                          2.0.2-1            OK
dash                                  0.5.8-3            OK
desktop-file-utils                    0.21-1             OK
diffutils                             3.3-2              OK
dos2unix                              7.2.1-1            OK
editrights                            1.03-1             OK
emacs                                 24.5-1             OK
file                                  5.22-2             OK
findutils                             4.5.12-1           OK
font-adobe-dpi75                      1.0.2-1            OK
font-encodings                        1.0.4-1            OK
fontconfig                            2.11.1-2           OK
gamin                                 0.1.10-15          OK
gawk                                  4.1.1-1            OK
gcc-core                              4.9.2-3            OK
gcc-g++                               4.9.2-3            OK
gdb                                   7.8-2              OK
getent                                2.18.90-4          OK
git                                   2.1.4-1            OK
git-gui                               2.1.4-1            OK
gitk                                  2.1.4-1            OK
grep                                  2.21-2             OK
groff                                 1.22.3-1           OK
gsettings-desktop-schemas             3.14.1-1           OK
gzip                                  1.6-1              OK
hostname                              3.13-1             OK
info                                  5.2-3              OK
ipc-utils                             1.0-1              OK
less                                  458-2              OK
libapr1                               1.4.8-1            OK
libaprutil1                           1.5.4-1            OK
libargp                               20110921-2         OK
libatomic1                            4.9.2-3            OK
libattr1                              2.4.46-1           OK
libblkid1                             2.25.2-2           OK
libbz2_1                              1.0.6-2            OK
libcatgets1                           1.1-2              OK
libcharset1                           1.14-3             OK
libcloog-isl4                         0.18.0-2           OK
libcom_err2                           1.42.12-2          OK
libcurl4                              7.42.1-1           OK
libdb4.8                              4.8.30-1           OK
libdbus1_3                            1.8.16-1           OK
libedit0                              20130712-1         OK
libexpat1                             2.1.0-3            OK
libfam0                               0.1.10-15          OK
libffi6                               3.2.1-1            OK
libfontconfig1                        2.11.1-2           OK
libfontenc1                           1.1.2-1            OK
libfreetype6                          2.5.5-1            OK
libgcc1                               4.9.2-3            OK
libgdbm4                              1.8.3-20           OK
libglib2.0_0                          2.42.2-1           OK
libgmp10                              6.0.0a-2           OK
libgnutls28                           3.2.21-1           OK
libgomp1                              4.9.2-3            OK
libgssapi_krb5_2                      1.13.1-1           OK
libguile17                            1.8.8-1            OK
libhogweed2                           2.7-2              OK
libiconv                              1.14-3             OK
libiconv-devel                        1.14-3             OK
libiconv2                             1.14-3             OK
libidn11                              1.29-1             OK
libintl-devel                         0.19.4-1           OK
libintl8                              0.19.4-1           OK
libiodbc2                             3.52.8-2           OK
libisl10                              0.11.1-2           OK
libk5crypto3                          1.13.1-1           OK
libkrb5_3                             1.13.1-1           OK
libkrb5support0                       1.13.1-1           OK
libltdl7                              2.4.6-1            OK
liblzma5                              5.2.1-1            OK
libmpc3                               1.0.3-1            OK
libmpfr4                              3.1.2-2            OK
libmysqlclient18                      5.5.41-2           OK
libncursesw10                         5.9-20150404-1     OK
libneon27                             0.30.1-1           OK
libnettle4                            2.7-2              OK
libopenldap2_4_2                      2.4.40-2           OK
libopenssl100                         1.0.2a-1           OK
libp11-kit0                           0.20.7-1           OK
libpcre1                              8.37-1             OK
libpipeline1                          1.4.0-1            OK
libpng16                              1.6.17-1           OK
Empty package libpopt0
libpopt0                              1.16-1             OK
libpq5                                9.4.1-1            OK
libproxy1                             0.4.11-4           OK
libquadmath0                          4.9.2-3            OK
libreadline7                          6.3.8-1            OK
libsasl2_3                            2.1.26-9           OK
libserf1_0                            1.3.8-1            OK
libsigsegv2                           2.10-1             OK
libsmartcols1                         2.25.2-2           OK
libsqlite3_0                          3.8.9-1            OK
libssh2_1                             1.5.0-1            OK
libssp0                               4.9.2-3            OK
libstdc++6                            4.9.2-3            OK
libtasn1_6                            4.4-1              OK
libuuid-devel                         2.25.2-2           OK
libuuid1                              2.25.2-2           OK
libX11_6                              1.6.3-1            OK
libXau6                               1.0.8-1            OK
libxcb1                               1.10-1             OK
libXdmcp6                             1.1.2-1            OK
libXext6                              1.3.3-1            OK
libXft2                               2.3.2-1            OK
libxml2                               2.9.2-1            OK
libXrender1                           0.9.8-1            OK
libXss1                               1.2.2-1            OK
libyaml0_2                            0.1.6-2            OK
login                                 1.11-1             OK
lynx                                  2.8.7-1            OK
make                                  4.1-1              OK
man-db                                2.7.1-1            OK
mintty                                1.1.3-1            OK
mkfontdir                             1.0.7-1            OK
mkfontscale                           1.1.1-1            OK
nano                                  2.4.1-1            OK
openssh                               6.8p1-1            OK
openssl                               1.0.2a-1           OK
p11-kit                               0.20.7-1           OK
p11-kit-trust                         0.20.7-1           OK
p7zip                                 9.20.1-1           OK
patch                                 2.7.4-1            OK
perl                                  5.14.4-3           OK
perl-Archive-Zip                      1.46-1             OK
perl-B-Generate                       1.50-1             OK
perl-Capture-Tiny                     0.28-1             OK
perl-Compress-Bzip2                   2.22-1             OK
perl-Config-Tiny                      2.22-1             OK
perl-CPAN-Reporter                    1.2011-1           OK
perl-Data-Alias                       1.18-2             OK
perl-Devel-Autoflush                  0.06-1             OK
perl-Digest-HMAC                      1.03-4             OK
perl-Digest-SHA                       5.95-1             OK
perl-Encode-Locale                    1.04-1             OK
perl-Error                            0.17023-1          OK
perl-File-Copy-Recursive              0.38-4             OK
perl-File-HomeDir                     1.00-2             OK
perl-File-Listing                     6.04-4             OK
perl-File-pushd                       1.009-1            OK
perl-HTML-Parser                      3.71-2             OK
perl-HTTP-Cookies                     6.01-4             OK
perl-HTTP-Daemon                      6.01-4             OK
perl-HTTP-Date                        6.02-4             OK
perl-HTTP-Message                     6.06-2             OK
perl-HTTP-Negotiate                   6.01-4             OK
perl-IO-CaptureOutput                 1.1104-1           OK
perl-IO-Socket-INET6                  2.72-1             OK
perl-IO-String                        1.08-4             OK
perl-IO-Tty                           1.12-1             OK
perl-IPC-Cmd                          0.92-1             OK
perl-IPC-Run                          0.94-1             OK
perl-libwww-perl                      6.13-1             OK
perl-LWP-MediaTypes                   6.02-4             OK
perl-Module-ScanDeps                  1.18-1             OK
perl-Module-Signature                 0.73-2             OK
perl-Net-DNS                          0.83-1             OK
perl-Net-HTTP                         6.07-1             OK
perl-Net-IP                           1.26-2             OK
perl-PadWalker                        2.0-1              OK
perl-PAR-Dist                         0.49-2             OK
perl-Pod-Coverage                     0.23-2             OK
perl-Pod-Escapes                      1.07-1             OK
perl-Pod-Simple                       3.30-1             OK
perl-Probe-Perl                       0.03-2             OK
perl-Proc-ProcessTable                0.51-1             OK
perl-Socket6                          0.25-1             OK
perl-Tee                              0.14-4             OK
perl-Term-ReadLine-Gnu                1.26-1             OK
perl-Term-ReadLine-Perl               1.0303-4           OK
perl-TermReadKey                      2.32-1             OK
perl-Test-NoWarnings                  1.04-3             OK
perl-Test-Pod                         1.48-2             OK
perl-Test-Pod-Coverage                1.10-1             OK
perl-Test-Reporter                    1.60-2             OK
perl-Test-Reporter-Transport-Metabase 1.999008-4         OK
perl-Test-Simple                      1.001014-1         OK
perl-URI                              1.67-1             OK
perl-WWW-RobotRules                   6.02-4             OK
perl-XML-LibXML                       2.0118-1           OK
perl-XML-NamespaceSupport             1.11-4             OK
perl-XML-Parser                       2.44-1             OK
perl-XML-SAX                          0.99-4             OK
perl-YAML                             1.14-1             OK
perl_autorebase                       5.14.4-3           OK
perl_base                             5.14.4-3           OK
perl_vendor                           5.14.4-1           OK
popt                                  1.16-1             OK
python                                2.7.9-1            OK
python3                               3.4.3-1            OK
rcs                                   5.9.3-1            OK
rebase                                4.4.1-1            OK
rsync                                 3.1.1-1            OK
ruby                                  2.0.0-p598-1       OK
ruby-io-console                       0.4.2-1            OK
ruby-json                             1.8.1-1            OK
ruby-minitest4                        4.7.5-1            OK
ruby-psych                            2.0.6-1            OK
ruby-rake                             10.3.2-1           OK
ruby-rdoc                             4.1.2-1            OK
rubygems                              2.4.1-1            OK
run                                   1.3.3-1            OK
sed                                   4.2.2-3            OK
shared-mime-info                      1.3-3              OK
subversion                            1.8.13-1           OK
tar                                   1.27.1-1           OK
tcl                                   8.5.11-1           OK
tcl-tk                                8.5.11-1           OK
tcsh                                  6.18.01-6          OK
terminfo                              5.9-20150404-1     OK
terminfo-extra                        5.9-20150404-1     OK
tzcode                                2014j-1            OK
unzip                                 6.0-14             OK
util-linux                            2.25.2-2           OK
vim                                   7.4.726-1          OK
vim-common                            7.4.726-1          OK
vim-minimal                           7.4.726-1          OK
w32api-headers                        3.3.0-2            OK
w32api-runtime                        3.3.0-1            OK
which                                 2.20-2             OK
windows-default-manifest              6.4-1              OK
xemacs-emacs-common                   21.4.24-1          OK
xxd                                   7.4.726-1          OK
xz                                    5.2.1-1            OK
zip                                   3.0-12             OK
zlib-devel                            1.2.8-3            OK
zlib0                                 1.2.8-3            OK
Use -h to see help about each section


[-- Attachment #3: Makefile --]
[-- Type: text/plain, Size: 279 bytes --]

# make-bug/Makefile

all:
	echo first > output
	echo secondxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx >> output
	/cygdrive/c/Windows/System32/sort.exe nonexist 2>> output; true
	@echo "----- BEGIN output -----"
	@cat output
	@echo "----- END output -----"

# EOF




[-- Attachment #4: Type: text/plain, Size: 218 bytes --]

--
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: cygwin 2.0.2, make 4.1: stderr redirect append does not work with native Windows programs
  2015-05-13  3:33 ` cygwin 2.0.2, make 4.1: stderr redirect append does not work with native Windows programs Scott McPeak
@ 2015-05-13 10:34   ` Lemke, Michael  ST/HZA-ZSW
  2015-05-14  0:04   ` Scott McPeak
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Lemke, Michael  ST/HZA-ZSW @ 2015-05-13 10:34 UTC (permalink / raw)
  To: cygwin

On May 12, 2015 9:59 PM Scott McPeak wrote:
>
>Using 32-bit cygwin 2.0.2 and make 4.1-1, in a recipe, redirecting
>stderr in append mode does not work if the program being invoked on a
>shell line is a native Windows executable.  Instead of appending, the
>stderr output is written to the top of the file, corrupting it. This
>happens only if the 'make' process has its own stdout/err redirected to
>a pipe.
>
>Example recipe:
>
>     all:
>             echo first > output
>             echo
>secondxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx >> output
>             /cygdrive/c/Windows/System32/sort.exe nonexist 2>> output; true
>
>When "make" is run, the "output" file should be:
>
>     first
>     secondxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>     nonexistThe system cannot find the file specified.
>
>and in fact it is.  But when "make 2>&1 | cat" is run, the output is:
>
>     nonexistThe system cannot find the file specified.
>     xxxxxxxxxxxxxx
>
>even though it should be the same as before.  The error message written
>by sort.exe went to the top of the file instead of the end.

Just a wild guess here: line endings?  Try 

make 2>&1 | cat -A 

and see if everything's there.

Michael

--
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: cygwin 2.0.2, make 4.1: stderr redirect append does not work with native Windows programs
  2015-05-13  3:33 ` cygwin 2.0.2, make 4.1: stderr redirect append does not work with native Windows programs Scott McPeak
  2015-05-13 10:34   ` Lemke, Michael  ST/HZA-ZSW
@ 2015-05-14  0:04   ` Scott McPeak
  2015-05-15  9:40   ` Takashi Yano
  2015-05-27 11:57   ` Corinna Vinschen
  3 siblings, 0 replies; 7+ messages in thread
From: Scott McPeak @ 2015-05-14  0:04 UTC (permalink / raw)
  To: cygwin

 > Just a wild guess here: line endings?  Try
 >
 > make 2>&1 | cat -A
 >
 > and see if everything's there.

This is of course easy for anyone to try using the reproducer I attached:

   $ make 2>&1 | cat -A
   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.^M^M$
   xxxxxxxxxxxxxx$
   ----- END output -----$

The output is still wrong.

-Scott

--
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cygwin 2.0.2, make 4.1: stderr redirect append does not work with native Windows programs
  2015-05-13  3:33 ` cygwin 2.0.2, make 4.1: stderr redirect append does not work with native Windows programs Scott McPeak
  2015-05-13 10:34   ` Lemke, Michael  ST/HZA-ZSW
  2015-05-14  0:04   ` Scott McPeak
@ 2015-05-15  9:40   ` Takashi Yano
  2015-05-16 18:18     ` Scott McPeak
  2015-05-27 11:57   ` Corinna Vinschen
  3 siblings, 1 reply; 7+ messages in thread
From: Takashi Yano @ 2015-05-15  9:40 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cygwin 2.0.2, make 4.1: stderr redirect append does not work with native Windows programs
  2015-05-15  9:40   ` Takashi Yano
@ 2015-05-16 18:18     ` Scott McPeak
  0 siblings, 0 replies; 7+ messages in thread
From: Scott McPeak @ 2015-05-16 18:18 UTC (permalink / raw)
  To: cygwin

> 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.

Indeed, thanks!  It also appears that I can:

   $ export MAKEFLAGS=O
   $ make ...

to work around the problem, with no apparent ill effects, which is good 
because my actual environment involves a twisty maze of recursive Makefiles.

Of course, I still hope the underlying bug gets fixed.

-Scott

--
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cygwin 2.0.2, make 4.1: stderr redirect append does not work with native Windows programs
  2015-05-13  3:33 ` cygwin 2.0.2, make 4.1: stderr redirect append does not work with native Windows programs Scott McPeak
                     ` (2 preceding siblings ...)
  2015-05-15  9:40   ` Takashi Yano
@ 2015-05-27 11:57   ` Corinna Vinschen
  2015-05-27 16:25     ` Marco Atzeri
  3 siblings, 1 reply; 7+ messages in thread
From: Corinna Vinschen @ 2015-05-27 11:57 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1297 bytes --]

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

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cygwin 2.0.2, make 4.1: stderr redirect append does not work with native Windows programs
  2015-05-27 11:57   ` Corinna Vinschen
@ 2015-05-27 16:25     ` Marco Atzeri
  0 siblings, 0 replies; 7+ messages in thread
From: Marco Atzeri @ 2015-05-27 16:25 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-05-27 16:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <5551188B.7050503@coverity.com>
2015-05-13  3:33 ` cygwin 2.0.2, make 4.1: stderr redirect append does not work with native Windows programs Scott McPeak
2015-05-13 10:34   ` Lemke, Michael  ST/HZA-ZSW
2015-05-14  0:04   ` Scott McPeak
2015-05-15  9:40   ` Takashi Yano
2015-05-16 18:18     ` Scott McPeak
2015-05-27 11:57   ` Corinna Vinschen
2015-05-27 16:25     ` Marco Atzeri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).