delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/25/13:20:29

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <3E09F759.5040508@snet.net>
Date: Wed, 25 Dec 2002 13:22:17 -0500
From: Arkadiy Belousov <arkadiy AT snet DOT net>
Reply-To: arkadiy AT snet DOT net
User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.3a) Gecko/20021212
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Bug somewhere between cygwin, gcc and cvs

Hello all!

I downloaded latest stable CVS code (1.11.2) and compiled it under cygwin.
"cvs co", "cvs login" and "cvs commit" worked, but not "cvs update".

I traced the bug to call to

open (".", O_RDONLY);

at lib/savecwd.c:61 in CVS source. This call is made the same way during 
commit and update, yet it fails during update only, with the error "file 
already exist".

When I tried to make similar call from other places in the code, I 
learned that placing the call right before save_cwd is called from 
recurse.c makes the entire thing work.

The next thing I tried was optimization level in the compiler. When  I 
replaced -O2 with -O, the whole situation went away.

I am running Windows ME.
GCC gives the following in response to -v :

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with: /netrel/src/gcc-3.2-3/configure 
--enable-languages=c,c++,f77,java --enable-libgcj --enable-threads=posix 
--with-system-zlib --enable-nls --without-included-gettext 
--enable-interpreter --disable-sjlj-exceptions 
--disable-version-specific-runtime-libs --enable-shared 
--build=i686-pc-linux --host=i686-pc-cygwin --target=i686-pc-cygwin 
--enable-haifa --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc 
--libdir=/usr/lib --includedir=/nonexistent/include --libexecd
ir=/usr/sbin
Thread model: posix
gcc version 3.2 20020927 (prerelease)

cygwin version is cygwin 1.3.17-1 , according to cygcheck




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

- Raw text -


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