This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/52689] static linking with libstdc++ fails


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-03-27
                 CC|                            |jakub at gcc dot gnu.org
         AssignedTo|unassigned at gcc dot       |bkoz at gcc dot gnu.org
                   |gnu.org                     |
   Target Milestone|---                         |4.7.1
     Ever Confirmed|0                           |1

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-27 15:07:17 UTC ---
This is a libstdc++ bug, caused by the libstdc++ directory reorganization and
introduction of the convenience libraries.

The various source files in libstdc++ that use .symver directives were written
with the assumption that libtool builds things twice, once without -DPIC for
libstdc++.a and once with -DPIC for libstdc++.so.6.
The compatibility stuff with symbol versions only belongs to libstdc++.so.6
obviously, otherwise you get the errors you are getting and gold is broken if
it doesn't error out on that.
Unfortunately the convenience libraries contain solely -DPIC code (-fPIC isn't
a big deal, but -DPIC is here), so everything is compiled just once and
libstdc++.a (incorrectly) as well as libstdc++.so.6 (correctly) is built with
the .symver stuff in the objects.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]