[Bug target/43968] undefined references to `std::{num_get, num_put, money_get, money_put}< [...] >::id' with -static
ubizjak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue May 4 17:42:00 GMT 2010
------- Comment #18 from ubizjak at gmail dot com 2010-05-04 17:42 -------
(In reply to comment #15)
> Ah, seems a generic ar/ranlib bug, apparently STB_GNU_UNIQUE symbols aren't
> added into ar index :(.
> Wonder why it hasn't showed up elsewhere yet. The reason why this doesn't hit
> us in libstdc++.a on x86-64 is that the STB_GNU_UNIQUE symbols locale-inst.o
> needs are in locale-inst.o rather than compatibility-ldbl.o.
> Looking into it.
Now that you mentioned - the problem was uncovered by [1]:
2010-04-28 Uros Bizjak <ubizjak@gmail.com>
* config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
type if available.
[1] http://gcc.gnu.org/ml/gcc-patches/2010-04/msg01751.html
I wonder if the ar/ranlib bug is severe enough that we need to check for newer
version of the binutils in configure.ac. Currently we have:
[gcc_GAS_CHECK_FEATURE([gnu_unique_object], gcc_cv_as_gnu_unique_object,
[elf,2,19,52],,
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43968
More information about the Gcc-bugs
mailing list