public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Linux ppc64 - compatibility-ldbl.o can't find std::num_put
@ 2019-04-10 16:53 Brian Groose
  2019-04-13  2:57 ` Alan Modra
  0 siblings, 1 reply; 8+ messages in thread
From: Brian Groose @ 2019-04-10 16:53 UTC (permalink / raw)
  To: binutils

It looks like I'm hitting the same issue that was reported in this
invalid gcc bug, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43968,
which was closed because it is a binutils bug?

I'm getting the exact same errors but running Linux on ppc64 instead
of alpha.  I have built binutils 2.25.1 and 2.32 from source, and both
have hit the same linker errors as in that gcc bug.  The same code
with the same binutils and gcc versions links without error on Linux
x86 and x64 (and 32-bit Solaris targets).

I am NOT linking with -static, though I am using -static-libgcc and
-static-libstdc++.  I am unable to reproduce this with a small test
case program such as the one found in the gcc bug.

Can anyone give me any suggestions of things to try here or what might be wrong?

/opt/gcc-5.3.0/lib/gcc/powerpc64-unknown-linux-gnu/5.3.0/../../../../lib64/libstdc++.a(compatibility-ldbl.o):
In function `std::num_put<char, std::ostreambuf_iterator<char,
std::char_traits<char> > >::do_put(std::ostreambuf_iterator<char,
std::char_traits<char> >, std::ios_base&, char, long) const':
/root/gcc/gcc-5.3.0-sandbox/build-gcc/powerpc64-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets.h:2510:
undefined reference to `std::ostreambuf_iterator<char,
std::char_traits<char> > std::num_put<char,
std::ostreambuf_iterator<char, std::char_traits<char> >
>::_M_insert_int<long>(std::ostreambuf_iterator<char,
std::char_traits<char> >, std::ios_base&, char, long) const'

... and more, with just the type passed to do_put changing - unsigned
long, void const*, long long, unsigned long long - and then wchar_t
versions of the same.  Followed by:

/opt/gcc-5.3.0/lib/gcc/powerpc64-unknown-linux-gnu/5.3.0/../../../../lib64/libstdc++.a(compatibility-ldbl.o):
In function `std::num_put<wchar_t, std::ostreambuf_iterator<wchar_t,
std::char_traits<wchar_t> >
>::do_put(std::ostreambuf_iterator<wchar_t, std::char_traits<wchar_t>
>, std::ios_base&, wchar_t, long) const':
/root/gcc/gcc-5.3.0-sandbox/build-gcc/powerpc64-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets.h:2510:
undefined reference to `std::ostreambuf_iterator<wchar_t,
std::char_traits<wchar_t> > std::num_put<wchar_t,
std::ostreambuf_iterator<wchar_t, std::char_traits<wchar_t> >
>::_M_insert_int<long>(std::ostreambuf_iterator<wchar_t,
std::char_traits<wchar_t> >, std::ios_base&, wchar_t, long) const'

...  with the same type variations to follow.

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

end of thread, other threads:[~2019-04-24 13:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-10 16:53 Linux ppc64 - compatibility-ldbl.o can't find std::num_put Brian Groose
2019-04-13  2:57 ` Alan Modra
2019-04-13 17:32   ` Brian Groose
2019-04-14 23:16     ` Alan Modra
2019-04-15 15:16       ` Brian Groose
     [not found]         ` <20190416102257.GR14424@bubble.grove.modra.org>
     [not found]           ` <CAKMEP22JpJ2kZudtYCX-zLkGwDcsNcDcLPQZSnSAW4LBzObc3Q@mail.gmail.com>
     [not found]             ` <20190417003822.GZ14424@bubble.grove.modra.org>
     [not found]               ` <CAKMEP22iLBSHNBYjhSQM7MubcjQQ0vaJo4cru0sP+3Y6y-ZOdA@mail.gmail.com>
     [not found]                 ` <CAKMEP22ci3Wu-OVhkMMb91fhxD23WX4rEEv9YohDHg6PxozurQ@mail.gmail.com>
2019-04-23 10:49                   ` Alan Modra
2019-04-23 20:33                     ` Brian Groose
2019-04-24 13:54                       ` Alan Modra

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).