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