public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/50349] New: /usr/bin/ld: warning: wildcard match appears in both version 'GLIBCXX_3.4' and 'CXXABI_1.3' in script
@ 2011-09-10 19:44 pluto at agmk dot net
  2012-02-16 21:05 ` [Bug libstdc++/50349] " bkoz at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: pluto at agmk dot net @ 2011-09-10 19:44 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50349

             Bug #: 50349
           Summary: /usr/bin/ld: warning: wildcard match appears in both
                    version 'GLIBCXX_3.4' and 'CXXABI_1.3' in script
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pluto@agmk.net
              Host: x86_64-gnu-linux
            Target: x86_64-gnu-linux
             Build: x86_64-gnu-linux


during native gcc-4.6 bootstrap the linker reports few warnings
on libstdc++-symbols.ver script:

(...)
/usr/bin/ld: warning: wildcard match appears in both version 'GLIBCXX_3.4' and
'CXXABI_1.3' in script
/usr/bin/ld: warning: using 'GLIBCXX_3.4' as version for
'std::basic_stringbuf<wchar_t, std::char_traits<wchar_t>,
std::allocator<wchar_t> >::str() const' which is also named in version
'GLIBCXX_3.4.6' in script
/usr/bin/ld: warning: using 'GLIBCXX_3.4' as version for
'std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::_M_disjunct(char const*) const' which is also named in version
'GLIBCXX_3.4.5' in script
/usr/bin/ld: warning: using 'GLIBCXX_3.4' as version for
'std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>
>::_M_disjunct(wchar_t const*) const' which is also named in version
'GLIBCXX_3.4.5' in script


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

* [Bug libstdc++/50349] /usr/bin/ld: warning: wildcard match appears in both version 'GLIBCXX_3.4' and 'CXXABI_1.3' in script
  2011-09-10 19:44 [Bug libstdc++/50349] New: /usr/bin/ld: warning: wildcard match appears in both version 'GLIBCXX_3.4' and 'CXXABI_1.3' in script pluto at agmk dot net
@ 2012-02-16 21:05 ` bkoz at gcc dot gnu.org
  2012-02-16 23:13 ` pluto at agmk dot net
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bkoz at gcc dot gnu.org @ 2012-02-16 21:05 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50349

Benjamin Kosnik <bkoz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bkoz at gcc dot gnu.org

--- Comment #1 from Benjamin Kosnik <bkoz at gcc dot gnu.org> 2012-02-16 20:36:33 UTC ---

I am unable to reproduce this on F16, 

GNU ld version 2.21.53.0.1-6.fc16 20110716
Copyright 2011 Free Software Foundation, Inc.

Can you give me some more information about your ld, and include any special
flags used to get the warnings. Thanks.


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

* [Bug libstdc++/50349] /usr/bin/ld: warning: wildcard match appears in both version 'GLIBCXX_3.4' and 'CXXABI_1.3' in script
  2011-09-10 19:44 [Bug libstdc++/50349] New: /usr/bin/ld: warning: wildcard match appears in both version 'GLIBCXX_3.4' and 'CXXABI_1.3' in script pluto at agmk dot net
  2012-02-16 21:05 ` [Bug libstdc++/50349] " bkoz at gcc dot gnu.org
@ 2012-02-16 23:13 ` pluto at agmk dot net
  2012-02-16 23:16 ` pluto at agmk dot net
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pluto at agmk dot net @ 2012-02-16 23:13 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50349

--- Comment #3 from Pawel Sikora <pluto at agmk dot net> 2012-02-16 23:10:34 UTC ---
(In reply to comment #1)
> I am unable to reproduce this on F16, 
> 
> GNU ld version 2.21.53.0.1-6.fc16 20110716
> Copyright 2011 Free Software Foundation, Inc.
> 
> Can you give me some more information about your ld, and include any special
> flags used to get the warnings. Thanks.

you need to use ld-gold for gcc build and configure gcc with
--enable-symvers=gnu.
the problem is in the libstdc++-v3/config/abi/pre/gnu.ver:

grep shows duplicated lines:

gnu.ver:    _ZNKSs11_M_disjunctEPKc;
gnu.ver:    _ZNKSbIwSt11char_traitsIwESaIwEE11_M_disjunctEPKw;
gnu.ver:    _ZNKSs11_M_disjunctEPKc;
gnu.ver:    _ZNKSbIwSt11char_traitsIwESaIwEE11_M_disjunctEPKw;

full build log attached.


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

* [Bug libstdc++/50349] /usr/bin/ld: warning: wildcard match appears in both version 'GLIBCXX_3.4' and 'CXXABI_1.3' in script
  2011-09-10 19:44 [Bug libstdc++/50349] New: /usr/bin/ld: warning: wildcard match appears in both version 'GLIBCXX_3.4' and 'CXXABI_1.3' in script pluto at agmk dot net
  2012-02-16 21:05 ` [Bug libstdc++/50349] " bkoz at gcc dot gnu.org
  2012-02-16 23:13 ` pluto at agmk dot net
@ 2012-02-16 23:16 ` pluto at agmk dot net
  2012-02-21 20:10 ` bkoz at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pluto at agmk dot net @ 2012-02-16 23:16 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50349

--- Comment #2 from Pawel Sikora <pluto at agmk dot net> 2012-02-16 23:09:45 UTC ---
Created attachment 26687
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26687
build log.


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

* [Bug libstdc++/50349] /usr/bin/ld: warning: wildcard match appears in both version 'GLIBCXX_3.4' and 'CXXABI_1.3' in script
  2011-09-10 19:44 [Bug libstdc++/50349] New: /usr/bin/ld: warning: wildcard match appears in both version 'GLIBCXX_3.4' and 'CXXABI_1.3' in script pluto at agmk dot net
                   ` (2 preceding siblings ...)
  2012-02-16 23:16 ` pluto at agmk dot net
@ 2012-02-21 20:10 ` bkoz at gcc dot gnu.org
  2012-02-21 23:50 ` bkoz at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bkoz at gcc dot gnu.org @ 2012-02-21 20:10 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50349

Benjamin Kosnik <bkoz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2012-02-21
         AssignedTo|unassigned at gcc dot       |bkoz at gcc dot gnu.org
                   |gnu.org                     |
   Target Milestone|---                         |4.7.0
     Ever Confirmed|0                           |1

--- Comment #4 from Benjamin Kosnik <bkoz at gcc dot gnu.org> 2012-02-21 20:07:30 UTC ---

confirmed with gcc-trunk and gold as:

%ld --version
GNU gold (GNU Binutils 2.22.52.20120220) 1.11
Copyright 2011 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

/mnt/share/bin/H-x86_64-binutils.20120220-gold/bin/ld: warning: wildcard match
appears in both version 'GLIBCXX_3.4' and 'CXXABI_1.3' in script
/mnt/share/bin/H-x86_64-binutils.20120220-gold/bin/ld: warning: wildcard match
appears in both version 'CXXABI_1.3' and 'CXXABI_TM_1' in script
/mnt/share/bin/H-x86_64-binutils.20120220-gold/bin/ld: warning: using
'GLIBCXX_3.4' as version for
'_ZNKSt15basic_stringbufIwSt11char_traitsIwESaIwEE3strEv' which is also named
in version 'GLIBCXX_3.4.6' in script
/mnt/share/bin/H-x86_64-binutils.20120220-gold/bin/ld: warning: using
'GLIBCXX_3.4' as version for '_ZNKSs11_M_disjunctEPKc' which is also named in
version 'GLIBCXX_3.4.5' in script
/mnt/share/bin/H-x86_64-binutils.20120220-gold/bin/ld: warning: using
'GLIBCXX_3.4' as version for
'_ZNKSbIwSt11char_traitsIwESaIwEE11_M_disjunctEPKw' which is also named in
version 'GLIBCXX_3.4.5' in script


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

* [Bug libstdc++/50349] /usr/bin/ld: warning: wildcard match appears in both version 'GLIBCXX_3.4' and 'CXXABI_1.3' in script
  2011-09-10 19:44 [Bug libstdc++/50349] New: /usr/bin/ld: warning: wildcard match appears in both version 'GLIBCXX_3.4' and 'CXXABI_1.3' in script pluto at agmk dot net
                   ` (3 preceding siblings ...)
  2012-02-21 20:10 ` bkoz at gcc dot gnu.org
@ 2012-02-21 23:50 ` bkoz at gcc dot gnu.org
  2012-02-21 23:52 ` bkoz at gcc dot gnu.org
  2012-02-24 20:35 ` bkoz at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: bkoz at gcc dot gnu.org @ 2012-02-21 23:50 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50349

--- Comment #5 from Benjamin Kosnik <bkoz at gcc dot gnu.org> 2012-02-21 23:46:55 UTC ---
Author: bkoz
Date: Tue Feb 21 23:46:49 2012
New Revision: 184453

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184453
Log:
2012-02-17  Benjamin Kosnik  <bkoz@redhat.com>

    PR libstdc++/50349
    * config/abi/pre/gnu.ver: Only one local.
    * config/abi/pre/gnu-versioned-namespace.ver: Same.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/config/abi/pre/gnu-versioned-namespace.ver
    trunk/libstdc++-v3/config/abi/pre/gnu.ver


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

* [Bug libstdc++/50349] /usr/bin/ld: warning: wildcard match appears in both version 'GLIBCXX_3.4' and 'CXXABI_1.3' in script
  2011-09-10 19:44 [Bug libstdc++/50349] New: /usr/bin/ld: warning: wildcard match appears in both version 'GLIBCXX_3.4' and 'CXXABI_1.3' in script pluto at agmk dot net
                   ` (4 preceding siblings ...)
  2012-02-21 23:50 ` bkoz at gcc dot gnu.org
@ 2012-02-21 23:52 ` bkoz at gcc dot gnu.org
  2012-02-24 20:35 ` bkoz at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: bkoz at gcc dot gnu.org @ 2012-02-21 23:52 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50349

Benjamin Kosnik <bkoz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.7.0                       |---

--- Comment #6 from Benjamin Kosnik <bkoz at gcc dot gnu.org> 2012-02-21 23:50:01 UTC ---

Fixed:
/mnt/share/bin/H-x86_64-binutils.20120220-gold/bin/ld: warning: wildcard match
appears in both version 'GLIBCXX_3.4' and 'CXXABI_1.3' in script
/mnt/share/bin/H-x86_64-binutils.20120220-gold/bin/ld: warning: wildcard match
appears in both version 'CXXABI_1.3' and 'CXXABI_TM_1' in script

With patch.

The rest:
/mnt/share/bin/H-x86_64-binutils.20120220-gold/bin/ld: warning: using
'GLIBCXX_3.4' as version for
'_ZNKSt15basic_stringbufIwSt11char_traitsIwESaIwEE3strEv' which is also named
in version 'GLIBCXX_3.4.6' in script
/mnt/share/bin/H-x86_64-binutils.20120220-gold/bin/ld: warning: using
'GLIBCXX_3.4' as version for '_ZNKSs11_M_disjunctEPKc' which is also named in
version 'GLIBCXX_3.4.5' in script
/mnt/share/bin/H-x86_64-binutils.20120220-gold/bin/ld: warning: using
'GLIBCXX_3.4' as version for
'_ZNKSbIwSt11char_traitsIwESaIwEE11_M_disjunctEPKw' which is also named in
version 'GLIBCXX_3.4.5' in script

are correct warnings, but the symbols are correct. This is symbol hiding, and
gold warns for this but GNU ld does not. Doesn't matter, binary is still the
same.


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

* [Bug libstdc++/50349] /usr/bin/ld: warning: wildcard match appears in both version 'GLIBCXX_3.4' and 'CXXABI_1.3' in script
  2011-09-10 19:44 [Bug libstdc++/50349] New: /usr/bin/ld: warning: wildcard match appears in both version 'GLIBCXX_3.4' and 'CXXABI_1.3' in script pluto at agmk dot net
                   ` (5 preceding siblings ...)
  2012-02-21 23:52 ` bkoz at gcc dot gnu.org
@ 2012-02-24 20:35 ` bkoz at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: bkoz at gcc dot gnu.org @ 2012-02-24 20:35 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50349

Benjamin Kosnik <bkoz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.0


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

end of thread, other threads:[~2012-02-24 20:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-10 19:44 [Bug libstdc++/50349] New: /usr/bin/ld: warning: wildcard match appears in both version 'GLIBCXX_3.4' and 'CXXABI_1.3' in script pluto at agmk dot net
2012-02-16 21:05 ` [Bug libstdc++/50349] " bkoz at gcc dot gnu.org
2012-02-16 23:13 ` pluto at agmk dot net
2012-02-16 23:16 ` pluto at agmk dot net
2012-02-21 20:10 ` bkoz at gcc dot gnu.org
2012-02-21 23:50 ` bkoz at gcc dot gnu.org
2012-02-21 23:52 ` bkoz at gcc dot gnu.org
2012-02-24 20:35 ` bkoz at gcc dot gnu.org

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