From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18668 invoked by alias); 10 Aug 2008 01:58:30 -0000 Received: (qmail 18601 invoked by uid 22791); 10 Aug 2008 01:58:29 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.168) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 10 Aug 2008 01:57:36 +0000 Received: by ug-out-1314.google.com with SMTP id m2so128484ugc.17 for ; Sat, 09 Aug 2008 18:57:33 -0700 (PDT) Received: by 10.67.101.17 with SMTP id d17mr1684243ugm.40.1218333453264; Sat, 09 Aug 2008 18:57:33 -0700 (PDT) Received: from localhost.localdomain ( [85.228.96.21]) by mx.google.com with ESMTPS id l20sm737907uga.0.2008.08.09.18.57.31 (version=SSLv3 cipher=RC4-MD5); Sat, 09 Aug 2008 18:57:32 -0700 (PDT) Date: Sun, 10 Aug 2008 04:29:00 -0000 To: "GCC Help mailinglist" Subject: Re: Cryptic error message from collect2 From: "Jonas Karlsson" Content-Type: text/plain; charset=iso-8859-15 MIME-Version: 1.0 References: <489DFA83.52107B06@dessent.net> <489E30CA.C6FABDBA@dessent.net> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <489E30CA.C6FABDBA@dessent.net> User-Agent: Opera Mail/9.51 (Linux) X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg00094.txt.bz2 On Sun, 10 Aug 2008 02:05:30 +0200, Brian Dessent wrote: > Jonas Karlsson wrote: > >> open("/tmp/ccc72aCK.ld", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 EEXIST (File exists) > > I don't know why your filesystem returns an error for this syscall, but > with a normal filesystem driver the exact same sequence occurs and > succeeds: > > open("/tmp/ccPxl0Fa.ld", O_RDWR|O_CREAT|O_EXCL, 0600) = 3 > close(3) = 0 > gettimeofday({1218326107, 17028}, NULL) = 0 > getpid() = 16870 > open("/tmp/ccCsztRa.le", O_RDWR|O_CREAT|O_EXCL, 0600) = 3 > close(3) = 0 > open("/tmp/ccPxl0Fa.ld", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3 > > open() should fail with an existing file with O_CREAT|O_EXCL, but with > O_CREAT|O_TRUNC it should succeed and truncate the file. > Yes! Thanks for the hint. This was all an error in the funionfs implementation. Not being that experianced in file flags, I needed a pointer. Thanks again. -- /Jonas Using Opera's revolutionary e-mail client: http://www.opera.com/mail/