The patch described here (all the way from 2006) introduces a subtle error when the host is cygwin and there is an error while assembling the file:
http://sourceware.org/ml/binutils/2006-02/msg00098.html Prior to this change, the output file would first be closed and then second it would be unlinked. After this change, the file is unlinked, and then closed. All of this is fine under when the host is a unixy system. However, when the host is a windows based system, (and under cygwin), the unlink will fail because the file is still open. Gas does exit with an error, but the output file continues to exist. If you then rerun make, it will not try to rebuild this incomplete and erroneous file. I have a fix on the way for this. To reproduce, build for cygwin host and assemble any file that contains an error. The output file will continue to exist. -- Summary: Output file present even after gas exits with an error Product: binutils Version: 2.21 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gas AssignedTo: unassigned at sources dot redhat dot com ReportedBy: sterling at tensilica dot com CC: bug-binutils at gnu dot org GCC host triplet: cygwin GCC target triplet: any http://sourceware.org/bugzilla/show_bug.cgi?id=11728 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-binutils
