public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "d.v.a at ngs dot ru" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/28811] --with-pic vs static libraries and libstdc++ Date: Wed, 27 Jun 2012 10:20:00 -0000 [thread overview] Message-ID: <bug-28811-4-oFP6MX5AYR@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-28811-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28811 --- Comment #18 from __vic <d.v.a at ngs dot ru> 2012-06-27 10:19:18 UTC --- GCC 4.7.1 still fails to link .so against static libstdc++.a in 64-bit mode: $ g++ -shared -fPIC -static-libgcc -static-libstdc++ -o 1.so 1.cpp /usr/bin/ld: /opt/gcc-4.6.1/lib/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../lib64/libstdc++.a(globals_io.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /opt/gcc-4.6.1/lib/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../lib64/libstdc++.a: could not read symbols: Bad value collect2: ld returned 1 exit status make: *** [1.so] Error 1 32-bit mode is working: $ g++ -m32 -shared -fPIC -static-libgcc -static-libstdc++ -o 1.so 1.cpp
next prev parent reply other threads:[~2012-06-27 10:20 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-28811-4@http.gcc.gnu.org/bugzilla/> 2011-04-28 16:41 ` rguenth at gcc dot gnu.org 2012-06-27 10:20 ` d.v.a at ngs dot ru [this message] 2012-06-27 10:28 ` d.v.a at ngs dot ru 2012-09-20 2:11 ` bkoz at gcc dot gnu.org 2012-11-05 23:42 ` bkoz at gcc dot gnu.org 2012-11-05 23:43 ` bkoz at gcc dot gnu.org 2013-11-15 15:15 ` paolo.carlini at oracle dot com 2006-08-22 20:29 [Bug libstdc++/28811] New: undefined versioned symbol name _ZNKSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv@GLIBCXX_3.4 pluto at agmk dot net 2006-08-27 4:55 ` [Bug libstdc++/28811] --with-pic vs static libraries and libstdc++ pinskia at gcc dot gnu dot org 2006-09-08 12:48 ` pluto at agmk dot net 2007-09-07 5:58 ` cnstar9988 at gmail dot com 2008-06-06 11:57 ` paolo dot carlini at oracle dot com 2008-06-06 12:02 ` paolo dot carlini at oracle dot com 2008-06-06 12:15 ` jakub at gcc dot gnu dot org 2008-06-06 13:27 ` hjl dot tools at gmail dot com 2008-06-08 15:45 ` hjl dot tools at gmail dot com 2008-11-14 0:33 ` pluto at agmk dot net 2009-01-28 1:41 ` bkoz at gcc dot gnu dot org 2009-01-28 3:25 ` bkoz at gcc dot gnu dot org 2009-08-04 12:34 ` rguenth at gcc dot gnu dot org 2010-05-22 18:17 ` rguenth at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-28811-4-oFP6MX5AYR@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).