From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30115 invoked by alias); 9 Aug 2008 20:14:33 -0000 Received: (qmail 30097 invoked by uid 22791); 9 Aug 2008 20:14:33 -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; Sat, 09 Aug 2008 20:13:58 +0000 Received: from localhost.localdomain ([127.0.0.1] helo=dessent.net) by dessent.net with esmtp (Exim 4.50) id 1KRup1-0003l0-Uj; Sat, 09 Aug 2008 20:13:56 +0000 Message-ID: <489DFA83.52107B06@dessent.net> Date: Sat, 09 Aug 2008 20:26: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: 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/msg00088.txt.bz2 Jonas Karlsson wrote: > collect2: open temporary output file: File exists collect2 needs to create a number of temporary output files, and apparently the name it has chosen for one of them already exists and cannot be overwritten. It tries a number of locations -- you can look through the code at libiberty/make_temp_file.c and so on, but it's probably easier just to strace it to find out what's going on. If you strace the gcc command however you won't see much as it doesn't do a lot other than invoke subprocesses. So run the failing gcc command with -### which will give you the exact invocation of collect2 which you can then strace. Brian