From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20058 invoked by alias); 15 Feb 2011 02:46:22 -0000 Received: (qmail 20048 invoked by uid 22791); 15 Feb 2011 02:46:21 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_RW,TW_WX 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; Tue, 15 Feb 2011 02:46:18 +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: 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: Tue, 15 Feb 2011 04:55: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/msg01762.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47241 --- Comment #17 from Dongsheng Song 2011-02-15 02:46:14 UTC --- It seems that libstdc++.dll.a is too small: $ file gcc-4.6-windows_i686-linux/i686-w64-mingw32/lib/libstdc++.dll.a gcc-4.6-windows_i686-linux/i686-w64-mingw32/lib/libstdc++.dll.a: current ar archive $ ls -l gcc-4.6-windows_i686-linux/i686-w64-mingw32/lib/libstdc++.dll.a -rwxr-xr-x 1 oracle dba 2260 Feb 15 10:34 gcc-4.6-windows_i686-linux/i686-w64-mingw32/lib/libstdc++.dll.a $ i686-w64-mingw32-g++ Hello.cpp gcc-4.6-windows_i686-linux/i686-w64-mingw32/lib/libstdc++.dll.a /tmp/cc39V2U9.o:Hello.cpp:(.text+0x19): undefined reference to `std::cout' /tmp/cc39V2U9.o:Hello.cpp:(.text+0x1e): undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' /tmp/cc39V2U9.o:Hello.cpp:(.text+0x26): undefined reference to `std::basic_ostream >& std::endl >(std::basic_ostream >&)' /tmp/cc39V2U9.o:Hello.cpp:(.text+0x2e): undefined reference to `std::basic_ostream >::operator<<(std::basic_ostream >& (*)(std::basic_ostream >&))' /tmp/cc39V2U9.o:Hello.cpp:(.text+0x47): undefined reference to `std::ios_base::Init::~Init()' /tmp/cc39V2U9.o:Hello.cpp:(.text+0x6a): undefined reference to `std::ios_base::Init::Init()' collect2: ld returned 1 exit status