From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26297 invoked by alias); 24 Dec 2011 12:58:05 -0000 Received: (qmail 26288 invoked by uid 22791); 24 Dec 2011 12:58:04 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_BJ,TW_CX,TW_DC 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; Sat, 24 Dec 2011 12:57:51 +0000 From: "pluto at agmk dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/51673] New: undefined references / libstdc++-7.dll Date: Sat, 24 Dec 2011 13:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pluto at agmk dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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-12/txt/msg02598.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51673 Bug #: 51673 Summary: undefined references / libstdc++-7.dll Classification: Unclassified Product: gcc Version: 4.6.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: pluto@agmk.net Created attachment 26182 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26182 testcase with libstdc++-6/7.dll with gcc crosscompiler configured for target x86_64-pc-mingw32 with --enable-symvers=gnu-versioned-namespace --enable-libstdcxx-allocator=mt i'm getting linker errors on trivial testcase. /home/users/pluto/tmp/ccsZppkB.o:t.cpp:(.text$_ZN9__gnu_cxx3__710__mt_allocIiNS0_20__common_pool_policyINS0_6__poolELb1EEEE8allocateEyPKv[__gnu_cxx::__7::__mt_alloc >::allocate(unsigned long long, void const*)]+0x63): undefined reference to `operator new(unsigned long long)' /home/users/pluto/tmp/ccsZppkB.o:t.cpp:(.text$_ZN9__gnu_cxx3__710__mt_allocIiNS0_20__common_pool_policyINS0_6__poolELb1EEEE8allocateEyPKv[__gnu_cxx::__7::__mt_alloc >::allocate(unsigned long long, void const*)]+0x142): undefined reference to `__gnu_cxx::__7::__pool::_M_reserve_block(unsigned long long, unsigned long long)' /home/users/pluto/tmp/ccsZppkB.o:t.cpp:(.text$_ZN9__gnu_cxx3__710__mt_allocIiNS0_20__common_pool_policyINS0_6__poolELb1EEEE10deallocateEPiy[__gnu_cxx::__7::__mt_alloc >::deallocate(int*, unsigned long long)]+0x6d): undefined reference to `__gnu_cxx::__7::__pool::_M_reclaim_block(char*, unsigned long long)' afaics the libstdc++7.dll doesn't export e.g. _Znwy* symbols while libstdc++-6.dll looks fine in this area: $ 86_64-pc-mingw32-objdump -p libstdc++-6.dll|grep _Znw [3472] _Znwy [3473] _ZnwyRKSt9nothrow_t