[Bug lto/47241] lto not work on mingw32, reporting 'ld.exe: could not unlink output file'
ktietz at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 9 08:16:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47241
Kai Tietz <ktietz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |WAITING
Resolution|FIXED |
--- Comment #4 from Kai Tietz <ktietz at gcc dot gnu.org> 2011-02-09 07:48:27 UTC ---
Hmm EACCESS is normally provided when the file has still an user (means an open
handle exists to it). THere is indeed a difference between POSIX unlink and MS
variant. For POSIX it is possible to call unlink on an opened file, which gets
removed when last handle to it is closed. This behavior doesn't exist for win32
native API. So we need to investigate who (and why) handle to this file is
still accessed.
The cause for this is pretty likely to be searched in binutils.
More information about the Gcc-bugs
mailing list