From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20120 invoked by alias); 11 Feb 2011 02:36:42 -0000 Received: (qmail 20108 invoked by uid 22791); 11 Feb 2011 02:36:41 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 Feb 2011 02:36:37 +0000 From: "dongsheng.song at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/47241] lto not work on mingw32, reporting 'ld.exe: could not unlink output file' X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dongsheng.song at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 11 Feb 2011 03:01:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-02/txt/msg01387.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47241 Dongsheng Song changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dongsheng.song at gmail dot | |com --- Comment #11 from Dongsheng Song 2011-02-11 02:36:22 UTC --- (In reply to comment #10) > Author: ktietz > Date: Thu Feb 10 08:57:24 2011 > New Revision: 169999 > > URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169999 > Log: > 2011-02-10 Kai Tietz > > PR lto/47241 > * lto.c (lto_read_section_data): Free > fd_name in failure case. > For mingw targets don't hash file-descriptor. > (read_cgraph_and_symbols): Close current_lto_file > in failure case. > > > Modified: > trunk/gcc/lto/ChangeLog > trunk/gcc/lto/lto.c No, this commit still not resolve the issue. The filename is something like 'cc8dHzVI.ltrans0.ltrans.o', tt still exists in TEMP dir like 'C:\DOCUME~1\SONGDO~1\LOCALS~1\Temp' . The file is created by: COLLECT_GCC_OPTIONS='-c' '-O2' '-pipe' '-s' '-v' '-v' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' '-fltrans' '-o' 'C:\DOCUME~1\SONGDO~1\LOCALS~1\Temp\cc8dHzVI.ltrans0.ltrans.o' '-shared-libgcc' c:/gcc-4.6-windows/lib/gcc/../../libexec/gcc/i686-w64-mingw32/4.6.0/lto1.exe -quiet -dumpbase cc8dHzVI.ltrans0.o -mtune=generic -march=x86-64 -auxbase-strip C:\DOCUME~1\SONGDO~1\LOCALS~1\Temp\cc8dHzVI.ltrans0.ltrans.o -O2 -version -fltrans @C:\DOCUME~1\SONGDO~1\LOCALS~1\Temp\ccseSWUb -o - | c:/gcc-4.6-windows/bin/../lib/gcc/i686-w64-mingw32/4.6.0/../../../../i686-w64-mingw32/bin/as.exe -o C:\DOCUME~1\SONGDO~1\LOCALS~1\Temp\cc8dHzVI.ltrans0.ltrans.o COLLECT_GCC_OPTIONS='-c' '-O2' '-pipe' '-s' '-v' '-v' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' '-fltrans' '-o' 'C:\DOCUME~1\SONGDO~1\LOCALS~1\Temp\cc8dHzVI.ltrans0.ltrans.o' '-shared-libgcc' c:/gcc-4.6-windows/bin/../lib/gcc/i686-w64-mingw32/4.6.0/../../../../i686-w64-mingw32/bin/ld.exe: could not unlink output file collect2: ld returned 1 exit status