This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cryptic error message from collect2


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]