This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Cryptic error message from collect2
- From: Brian Dessent <brian at dessent dot net>
- To: Jonas Karlsson <jonas at gobolinux dot org>
- Cc: GCC Help mailinglist <gcc-help at gcc dot gnu dot org>
- Date: Sat, 09 Aug 2008 13:13:55 -0700
- Subject: Re: Cryptic error message from collect2
- References: <op.ufmjtgpwdefb7q@localhost.localdomain>
- Reply-to: GCC Help mailinglist <gcc-help at gcc dot gnu dot org>
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