public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/52689] New: static linking with libstdc++ fails
@ 2012-03-23 17:31 jens.maurer at gmx dot net
  2012-03-23 17:32 ` [Bug libstdc++/52689] " markus at trippelsdorf dot de
                   ` (22 more replies)
  0 siblings, 23 replies; 24+ messages in thread
From: jens.maurer at gmx dot net @ 2012-03-23 17:31 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52689
           Summary: static linking with libstdc++ fails
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jens.maurer@gmx.net


$ cat x.cc 

#include <iostream>

int main()
{
  std::cout << "hello\n";
}


$ gcc x.cc -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
/usr/bin/ld: a.out: No symbol version section for versioned symbol
`_ZSt15future_category@@GLIBCXX_3.4.14'
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status


or

$ g++ x.cc -static-libstdc++
/usr/bin/ld: a.out: No symbol version section for versioned symbol
`_ZSt15future_category@@GLIBCXX_3.4.14'
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status


$ ld --version
GNU ld (GNU Binutils for Ubuntu) 2.21.53.20110810


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

end of thread, other threads:[~2012-06-15 10:39 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-23 17:31 [Bug libstdc++/52689] New: static linking with libstdc++ fails jens.maurer at gmx dot net
2012-03-23 17:32 ` [Bug libstdc++/52689] " markus at trippelsdorf dot de
2012-03-23 20:14 ` jens.maurer at gmx dot net
2012-03-23 20:21 ` jens.maurer at gmx dot net
2012-03-23 21:19 ` markus at trippelsdorf dot de
2012-03-24 20:21 ` markus at trippelsdorf dot de
2012-03-27  7:32 ` jens.maurer at gmx dot net
2012-03-27  7:35 ` markus at trippelsdorf dot de
2012-03-27 15:37 ` jakub at gcc dot gnu.org
2012-03-29  6:36 ` bkoz at gcc dot gnu.org
2012-03-30 17:24 ` ro at gcc dot gnu.org
2012-04-03  8:01 ` ubizjak at gmail dot com
2012-04-03  8:57 ` ubizjak at gmail dot com
2012-04-03  9:47 ` ro at CeBiTec dot Uni-Bielefeld.DE
2012-04-04 17:06 ` bkoz at gcc dot gnu.org
2012-04-04 17:24 ` bkoz at gcc dot gnu.org
2012-04-04 17:27 ` uros at gcc dot gnu.org
2012-04-17  0:20 ` bkoz at gcc dot gnu.org
2012-04-17  2:23 ` bkoz at gcc dot gnu.org
2012-04-25  1:18 ` bkoz at gcc dot gnu.org
2012-04-25  2:01 ` bkoz at gcc dot gnu.org
2012-04-25 22:48 ` bkoz at gcc dot gnu.org
2012-05-02 22:44 ` bkoz at gcc dot gnu.org
2012-06-15 10:39 ` redi 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).