public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/51673] New: undefined references / libstdc++-7.dll
@ 2011-12-24 13:02 pluto at agmk dot net
  2011-12-24 13:37 ` [Bug libstdc++/51673] " paolo.carlini at oracle dot com
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: pluto at agmk dot net @ 2011-12-24 13:02 UTC (permalink / raw)
  To: gcc-bugs

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<int,
__gnu_cxx::__7::__common_pool_policy<__gnu_cxx::__7::__pool, true>
>::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<int,
__gnu_cxx::__7::__common_pool_policy<__gnu_cxx::__7::__pool, true>
>::allocate(unsigned long long, void const*)]+0x142): undefined reference to
`__gnu_cxx::__7::__pool<true>::_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<int,
__gnu_cxx::__7::__common_pool_policy<__gnu_cxx::__7::__pool, true>
>::deallocate(int*, unsigned long long)]+0x6d): undefined reference to
`__gnu_cxx::__7::__pool<true>::_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


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2012-03-22 22:18 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-24 13:02 [Bug libstdc++/51673] New: undefined references / libstdc++-7.dll pluto at agmk dot net
2011-12-24 13:37 ` [Bug libstdc++/51673] " paolo.carlini at oracle dot com
2011-12-24 14:12 ` redi at gcc dot gnu.org
2011-12-24 15:55 ` paolo.carlini at oracle dot com
2011-12-27  9:41 ` pluto at agmk dot net
2011-12-27 10:42 ` paolo.carlini at oracle dot com
2011-12-28 16:20 ` pluto at agmk dot net
2011-12-28 19:54 ` pluto at agmk dot net
2011-12-28 22:06 ` ktietz at gcc dot gnu.org
2012-01-09 23:41 ` bkoz at gcc dot gnu.org
2012-01-09 23:42 ` bkoz at gcc dot gnu.org
2012-01-10 19:56 ` pluto at agmk dot net
2012-03-04 19:36 ` pluto at agmk dot net
2012-03-06 11:49 ` ktietz at gcc dot gnu.org
2012-03-06 18:36 ` pluto at agmk dot net
2012-03-06 18:44 ` redi at gcc dot gnu.org
2012-03-06 20:19 ` joseph at codesourcery dot com
2012-03-06 21:04 ` pluto at agmk dot net
2012-03-22 22:19 ` pluto at agmk dot net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).