Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-Id: <5.1.0.14.0.20020605110204.02ba0e78@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com Date: Wed, 05 Jun 2002 11:03:31 -0400 To: "Lawrence R. Rogers" , cygwin AT cygwin DOT com From: "Larry Hall (RFK Partners, Inc)" Subject: Re: cpp0 unable to write to stdout or stderr In-Reply-To: <26213222.1023266140@[10.20.10.81]> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" See: Is it OK to have multiple copies of the DLL? http://cygwin.com/faq/faq_4.html#SEC51 Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX At 08:35 AM 6/5/2002, Lawrence R. Rogers wrote: >Hello: > >In the standard hello world program: > > #include > > main() > { > printf("Hello, world!\n"); > } > >I was getting no .exe with: > > gcc hello.c -o hello.exe > >I began to break down the compilation steps to see where the compile was failing. > >I got lucky when I did: > > % cpp hello.c > >and got no output. I did an: > > % strace -f cpp hello.c >& cpp.out > >and I saw the following towards the end of the strace output: > > 88 348315 [main] cpp0 604 _close: close (4) > 84 348399 [main] cpp0 604 fhandler_base::close: handle 0x110 > 117 348516 [main] cpp0 604 _close: 0 = close (4) >86118 434634 [main] cpp0 604 _write: -1 = write (1, 0xA015840, 12553) <=== > 152 434786 [main] cpp0 604 _write: -1 = write (2, 0x242F284, 30) <=== > 112 434898 [main] cpp0 604 do_exit: do_exit (33) > 96 434994 [main] cpp0 604 void: 0x0 = signal (20, 0x1) > 92 435086 [main] cpp0 604 void: 0x0 = signal (1, 0x1) > 92 435178 [main] cpp0 604 void: 0x0 = signal (2, 0x1) > 91 435269 [main] cpp0 604 void: 0x0 = signal (3, 0x1) > >Notice that the writes returned -1 to both stdout and stderr. > >I tried this on two other machines, another Win2000 and a WinXP Pro. Both were successful as was the compilation. > >I removed and reinstalled cygwin but to no avail. > >I also ran cpp0 as > > % /lib/gcc-lib/i686-pc-cygwin/2.95.3-5/cpp0.exe -I/usr/include hellow.c > >and it ran just fine. > >Here are the cygcheck specific: > >Cygwin Win95/NT Configuration Diagnostics >Current System Time: Wed Jun 05 08:31:46 2002 > >Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 2 > >Path: L:\cygwin\usr\local\bin > L:\cygwin\bin > L:\cygwin\bin > c:\WINNT\system32 > c:\WINNT > c:\WINNT\System32\Wbem > c:\PROGRA~1\IBM\AFS\DOCUME~1 > c:\PROGRA~1\IBM\AFS\Common > c:\PROGRA~1\IBM\AFS\Client\Program > c:\PROGRA~1\IBM\AFS\CONTRO~1 > c:\Program Files\Network Associates\PGPNT > c:\Program Files\Support Tools\ > c:\Program Files\kfw-2.1.2\bin\i386\rel\ > c:\Program Files\SSH Communications Security\SSH Secure Shell > %MAINDIR%\bin32 > >SysDir: C:\WINNT\System32 >WinDir: C:\WINNT > >HOME = `z:\cert.org\usr\lrr' >MAKE_MODE = `unix' >PWD = `/tmp' >USER = `lrr' > >ALLUSERSPROFILE = `C:\Documents and Settings\All Users' >APPDATA = `C:\Documents and Settings\lrr\Application Data' >COMMONPROGRAMFILES = `C:\Program Files\Common Files' >COMPUTERNAME = `MANGANESE' >COMSPEC = `C:\WINNT\system32\cmd.exe' >HOMEDRIVE = `C:' >HOMEPATH = `\' >LOGONSERVER = `\\MANGANESE' >MANPATH = `:/usr/ssl/man' >NUMBER_OF_PROCESSORS = `1' >OLDPWD = `/' >OS2LIBPATH = `C:\WINNT\system32\os2\dll;' >OS = `Windows_NT' >PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' >PROCESSOR_ARCHITECTURE = `x86' >PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 3, GenuineIntel' >PROCESSOR_LEVEL = `6' >PROCESSOR_REVISION = `0803' >PROGRAMFILES = `C:\Program Files' >PROMPT = `$P$G' >PS1 = `\[\033]0;\w\007 >\033[32m\]\u@\h \[\033[33m\w\033[0m\] >$ ' >SHLVL = `1' >SYSTEMDRIVE = `C:' >SYSTEMROOT = `C:\WINNT' >TEMP = `c:\DOCUME~1\lrr\LOCALS~1\Temp' >TERM = `cygwin' >TMP = `c:\DOCUME~1\lrr\LOCALS~1\Temp' >USERDOMAIN = `MANGANESE' >USERNAME = `lrr' >USERPROFILE = `C:\Documents and Settings\lrr' >WINDIR = `C:\WINNT' >_ = `/usr/bin/cygcheck.exe' > >HKEY_CURRENT_USER\Software\Cygnus Solutions >HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin >HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 > (default) = `/cygdrive' > cygdrive flags = 0x00000022 >HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options >HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOr >der\Start Menu\Programs\Cygnus Solutions > (default) = (unsupported type) >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 > (default) = `/cygdrive' > cygdrive flags = 0x00000022 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ > (default) = `L:/cygwin' > flags = 0x0000000a >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin > (default) = `L:/cygwin/bin' > flags = 0x0000000a >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib > (default) = `L:/cygwin/lib' > flags = 0x0000000a >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts > (default) = `L:\cygwin\usr\X11R6\lib\X11\fonts' > flags = 0x0000000a >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options > >a: fd N/A N/A >c: hd NTFS 4996Mb 77% CP CS UN PA FC Windows 2000 >d: cd N/A N/A >l: hd NTFS 7444Mb 37% CP CS UN PA FC Local >u: net AFS 2097151Mb 51% CP CS ?S >y: net AFS 2097151Mb 51% CP CS ?S >z: net AFS 2097151Mb 51% CP CS ?S > >. /cygdrive user binmode,noumount >L:/cygwin / system binmode >L:/cygwin/bin /usr/bin system binmode >L:/cygwin/lib /usr/lib system binmode >L:\cygwin\usr\X11R6\lib\X11\fonts /usr/X11R6/lib/X11/fonts system binmode >. /cygdrive user binmode,noumount > >Found: L:\cygwin\bin\bash.exe >Found: L:\cygwin\bin\cat.exe >Found: L:\cygwin\bin\cpp.exe >Found: L:\cygwin\bin\find.exe >Found: L:\cygwin\bin\gcc.exe >Found: L:\cygwin\bin\gdb.exe >Found: L:\cygwin\bin\ld.exe >Found: L:\cygwin\bin\ls.exe >Found: L:\cygwin\bin\make.exe >Found: L:\cygwin\bin\sh.exe > > 678k 2001/06/21 C:\WINNT\cygwin1.dll - os=4.0 img=1.0 sys=4.0 > "cygwin1.dll" v0.0 ts=2001/5/20 23:28 > Cygwin DLL version info: > DLL version: 1.3.2 > DLL epoch: 19 > DLL bad signal mask: 19005 > DLL old termios: 5 > DLL malloc env: 28 > API major: 0 > API minor: 39 > Shared data: 3 > DLL identifier: cygwin1 > Mount registry: 2 > Cygnus registry name: Cygnus Solutions > Cygwin registry name: Cygwin > Program options name: Program Options > Cygwin mount registry name: mounts v2 > Cygdrive flags: cygdrive flags > Cygdrive prefix: cygdrive prefix > Cygdrive default prefix: > Build date: Sun May 20 23:28:17 EDT 2001 > Shared id: cygwin1S3 > > 58k 2002/05/07 L:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0 > "cygbz2-1.dll" v0.0 ts=2002/5/7 2:33 > 54k 2002/01/27 L:\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0 sys=4.0 > "cygbz21.0.dll" v0.0 ts=2002/1/26 20:07 > 621k 2002/05/17 L:\cygwin\bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0 > "cygcrypto.dll" v0.0 ts=2002/5/17 8:24 > 108k 2002/04/15 L:\cygwin\bin\cygcurl-2.dll - os=4.0 img=1.0 sys=4.0 > "cygcurl-2.dll" v0.0 ts=2002/4/15 14:25 > 50k 2002/03/17 L:\cygwin\bin\cygexslt-0.dll - os=4.0 img=1.0 sys=4.0 > "cygexslt-0.dll" v0.0 ts=2002/3/17 1:24 > 45k 2001/04/25 L:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0 > "cygform5.dll" v0.0 ts=2001/4/25 1:28 > 35k 2002/01/09 L:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0 > "cygform6.dll" v0.0 ts=2002/1/9 1:03 > 19k 2002/02/20 L:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0 > "cyggdbm.dll" v0.0 ts=2002/2/19 22:05 > 17k 2001/06/28 L:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0 > "cyghistory4.dll" v0.0 ts=2001/1/6 23:34 > 20k 2002/01/13 L:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0 > "cyghistory5.dll" v0.0 ts=2002/1/12 20:27 > 22k 2001/12/13 L:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0 > "cygintl-1.dll" v0.0 ts=2001/12/13 4:28 > 21k 2001/06/20 L:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0 > "cygintl.dll" v0.0 ts=2001/6/20 13:09 > 81k 2000/12/05 L:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0 > "cygitcl30.dll" v0.0 ts=2000/11/25 20:43 > 35k 2000/12/05 L:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0 > "cygitk30.dll" v0.0 ts=2000/11/25 20:43 > 45k 2002/02/08 L:\cygwin\bin\cygjbig1.dll - os=4.0 img=1.0 sys=4.0 > "cygjbig1.dll" v0.0 ts=2002/2/7 18:59 > 119k 2002/02/09 L:\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0 > "cygjpeg6b.dll" v0.0 ts=2002/2/9 0:19 > 25k 2002/05/08 L:\cygwin\bin\cygltdl-3.dll - os=4.0 img=1.0 sys=4.0 > "cygltdl-3.dll" v0.0 ts=2002/5/8 19:46 > 26k 2001/04/25 L:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0 > "cygmenu5.dll" v0.0 ts=2001/4/25 1:27 > 20k 2002/01/09 L:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0 > "cygmenu6.dll" v0.0 ts=2002/1/9 1:03 > 156k 2001/04/25 L:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0 > "cygncurses++5.dll" v0.0 ts=2001/4/25 1:29 > 175k 2002/01/09 L:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0 > "cygncurses++6.dll" v0.0 ts=2002/1/9 1:03 > 226k 2001/04/25 L:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0 > "cygncurses5.dll" v0.0 ts=2001/4/25 1:17 > 202k 2002/01/09 L:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0 > "cygncurses6.dll" v0.0 ts=2002/1/9 1:03 > 15k 2001/04/25 L:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0 > "cygpanel5.dll" v0.0 ts=2001/4/25 1:27 > 12k 2002/01/09 L:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0 > "cygpanel6.dll" v0.0 ts=2002/1/9 1:03 > 40k 2001/11/21 L:\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0 > "cygpcre.dll" v0.0 ts=2001/11/21 17:15 > 39k 2001/11/21 L:\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0 > "cygpcreposix.dll" v0.0 ts=2001/11/21 17:15 > 171k 2002/05/07 L:\cygwin\bin\cygpng10.dll - os=4.0 img=1.0 sys=4.0 > "cygpng10.dll" v0.0 ts=2002/5/7 14:53 > 175k 2002/05/24 L:\cygwin\bin\cygpng12.dll - os=4.0 img=1.0 sys=4.0 > "cygpng12.dll" v0.0 ts=2002/5/23 22:22 > 170k 2002/01/21 L:\cygwin\bin\cygpng2.dll - os=4.0 img=1.0 sys=4.0 > "cygpng2.dll" v0.0 ts=2002/1/20 20:05 > 108k 2001/06/28 L:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0 > "cygreadline4.dll" v0.0 ts=2001/1/6 23:34 > 121k 2002/01/13 L:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0 > "cygreadline5.dll" v0.0 ts=2002/1/12 20:27 > 66k 2001/11/20 L:\cygwin\bin\cygregex.dll - os=4.0 img=1.0 sys=4.0 > "cygregex.dll" v0.0 ts=2001/11/20 9:44 > 156k 2002/05/17 L:\cygwin\bin\cygssl.dll - os=4.0 img=1.0 sys=4.0 > "cygssl.dll" v0.0 ts=2002/5/17 8:24 > 390k 2000/12/05 L:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0 > "cygtcl80.dll" v0.0 ts=2000/11/25 20:39 > 5k 2000/12/05 L:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0 > 10k 2000/12/05 L:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0 > "cygtclreg80.dll" v0.0 ts=2000/11/25 20:39 > 253k 2002/02/10 L:\cygwin\bin\cygtiff3.dll - os=4.0 img=1.0 sys=4.0 > "cygtiff3.dll" v0.0 ts=2002/2/10 3:34 > 623k 2000/12/05 L:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0 > "cygtk80.dll" v0.0 ts=2000/11/25 20:43 >1248k 2002/03/17 L:\cygwin\bin\cygxml2-2.dll - os=4.0 img=1.0 sys=4.0 > "cygxml2-2.dll" v0.0 ts=2002/3/16 22:45 > 152k 2002/03/17 L:\cygwin\bin\cygxslt-1.dll - os=4.0 img=1.0 sys=4.0 > "cygxslt-1.dll" v0.0 ts=2002/3/17 1:19 > 15k 2002/03/17 L:\cygwin\bin\cygxsltbreakpoint-1.dll - os=4.0 img=1.0 sys=4.0 > "cygxsltbreakpoint-1.dll" v0.0 ts=2002/3/17 1:24 > 50k 2002/03/12 L:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0 > "cygz.dll" v0.0 ts=2002/3/11 23:38 > 751k 2002/02/25 L:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 > "cygwin1.dll" v0.0 ts=2002/2/25 11:14 > Cygwin DLL version info: > DLL version: 1.3.10 > DLL epoch: 19 > DLL bad signal mask: 19005 > DLL old termios: 5 > DLL malloc env: 28 > API major: 0 > API minor: 51 > Shared data: 3 > DLL identifier: cygwin1 > Mount registry: 2 > Cygnus registry name: Cygnus Solutions > Cygwin registry name: Cygwin > Program options name: Program Options > Cygwin mount registry name: mounts v2 > Cygdrive flags: cygdrive flags > Cygdrive prefix: cygdrive prefix > Cygdrive default prefix: > Build date: Mon Feb 25 11:14:34 EST 2002 > Shared id: cygwin1S3 > > >Cygwin Package Information >Last downloaded files to: L:\Cygwin >Last downloaded files from: ftp://archive.progeny.com/cygwin > >Package Version >_update-info-dir 00005-1 >ash 20020131-1 >autoconf 2.53-1 >autoconf-devel 2.53a-1 >autoconf-stable 2.13-4 >automake 1.6a-1 >automake-devel 1.6.1-3 >automake-stable 1.4p5-5 >bash 2.05a-3 >bc 1.06-1 >binutils 20011002-1 >bison 1.35-1 >byacc 1.9-1 >bzip2 1.0.2-2 >ccache 1.9-1 >clear 1.0-1 >compface 1.4-5 >cpio 2.4.2 >cron 3.0.1-6 >crypt 1.0-1 >ctags 5.2-1 >curl 7.9.6-1 >cvs 1.11.0-1 >cygrunsrv 0.95-1 >cygutils 1.0.0-1 >cygwin 1.3.10-1 >cygwin-doc 1.0-1 >dejagnu 20010117-1 >diff 1.0-1 >diffutils 2.8.1-1 >ed 0.2-1 >enscript 1.6.3-2 >expect 20010117-1 >fetchmail 5.9.11-3 >figlet 2.2-1 >file 3.37-1 >fileutils 4.1-1 >findutils 4.1.7-4 >flex 2.5.4-2 >fortune 1.8-2 >gawk 3.0.4-1 >gcc 2.95.3-5 >gdb 20010428-3 >gdbm 1.8.0-4 >gettext 0.10.40-1 >ghostscript 6.51-4 >gnugo 3.2-1 >gperf 0.0 >grep 2.5-1 >groff 1.17.2-1 >gsl 1.1.1-1 >gzip 1.3.2-1 >indent 2.2.8-1 >inetutils 1.3.2-17 >irc 20010101-1 >jbigkit 1.2-6 >jpeg 6b-7 >keychain 1.8-1 >less 374-1 >libbz2_0 1.0.2-1 >libbz2_1 1.0.2-2 >libintl 0.10.38-3 >libintl1 0.10.40-1 >libncurses5 5.2-1 >libncurses6 5.2-8 >libpng 1.2.3-1 >libpng10 1.0.13-3 >libpng10-devel 1.0.13-3 >libpng12 1.2.3-1 >libpng12-devel 1.2.3-1 >libpng2 1.0.12-1 >libreadline4 4.1-2 >libreadline5 4.2a-1 >libtool 20020202a-1 >libtool-devel 20020502-2 >libtool-stable 1.4.2-2 >libxml2 2.4.17-1 >libxslt 1.0.13-1 >links 0.96-1 >login 1.4-3 >lynx 2.8.4-1 >m4 0.0 >make 3.79.1-7 >man 1.5g-2 >mingw-runtime 1.3-2 >mktemp 1.4-1 >more 2.11o-1 >mt 2.0.1-1 >mutt 1.2.5i-6 >nano 1.0.7-1 >ncftp 3.1.3-1 >ncurses 5.2-8 >newlib-man 20001118-1 >opengl 1.1.0-6 >openssh 3.2.3p1-1 >openssl 0.9.6d-1 >openssl-devel 0.9.6d-1 >patch 2.5-3 >pcre 3.7-1 >perl 5.6.1-2 >pine 4.44-1 >pkgconfig 0.12.0-1 >popt 1.6.4-1 >postgresql 7.2.1-1 >procmail 3.22-6 >python 2.2-1 >rcs 5.7-3 >readline 4.2a-1 >regex 4.4-2 >robots 2.0-1 >rsync 2.5.5-1 >rxvt 2.7.2-10 >sed 3.02-1 >sh-utils 2.0-2 >sharutils 4.2.1-2 >shutdown 1.2-2 >squid 2.4.STABLE6-1 >ssmtp 2.38.7-3 >swig 1.3.11-1 >tar 1.13.19-1 >tcltk 20001125-1 >tcsh 6.11.00-4 >termcap 20020403-1 >terminfo 5.2-3 >tetex-beta 20001218-4 >texinfo 4.2-3 >textutils 2.0.21-1 >tiff 3.5.7-1 >time 1.7-1 >ttcp 19980512-1 >ucl 1.01-1 >units 1.77-1 >unzip 5.50-1 >upx 1.20-1 >vim 6.1-2 >w32api 1.4-2 >wget 1.8.1-1 >which 1.5-1 >whois 4.5.17-1 >zip 2.3-2 >zlib 1.1.4-1 >zsh 4.0.4-1 > >Use -h to see help about each section > > >Thanks in advance. > >Larry Rogers >Software Engineering Institute >Pittsburgh, PA >lrr AT cert DOT org > >-- >Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple >Bug reporting: http://cygwin.com/bugs.html >Documentation: http://cygwin.com/docs.html >FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/