From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10254 invoked by alias); 10 Aug 2008 00:06:09 -0000 Received: (qmail 10245 invoked by uid 22791); 10 Aug 2008 00:06:09 -0000 X-Spam-Check-By: sourceware.org Received: from dessent.net (HELO dessent.net) (69.60.119.225) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 10 Aug 2008 00:05:34 +0000 Received: from localhost.localdomain ([127.0.0.1] helo=dessent.net) by dessent.net with esmtp (Exim 4.50) id 1KRyR9-0004PL-5J; Sun, 10 Aug 2008 00:05:31 +0000 Message-ID: <489E30CA.C6FABDBA@dessent.net> Date: Sun, 10 Aug 2008 01:58:00 -0000 From: Brian Dessent Reply-To: GCC Help mailinglist X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: Jonas Karlsson CC: GCC Help mailinglist Subject: Re: Cryptic error message from collect2 References: <489DFA83.52107B06@dessent.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/msg00093.txt.bz2 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. Brian