public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libstdc++/19545] New: static libstdc++.a does not link against shared objects @ 2005-01-20 13:32 niki dot waibel at gmx dot net 2005-01-20 14:59 ` [Bug libstdc++/19545] " pinskia at gcc dot gnu dot org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: niki dot waibel at gmx dot net @ 2005-01-20 13:32 UTC (permalink / raw) To: gcc-bugs i usually compile c++ code using static libstdc++, which is no problem on: i386-pc-solaris2.9, sparc-sun-solaris2.8, sparc-sun-solaris2.9 and i686-pc- linux-gnu using gcc-3.4.3 and binutils-2.15.94.0.2. only on x86_64-unknown-linux-gnu i get (not always, but very often) sthg like === /misc/x86_64-unknown-linux-gnu/bin/ld: /misc/x86_64-unknown-linux-gnu/opt/gcc/3. 4.3/lib/gcc/x86_64-unknown-linux-gnu/3.4.3/libstdc++.a(allocator.o): relocation R_X86_64_32S against `__gnu_cxx::__pool_alloc_base::_S_free_list' can not be used when making a shared object; recompile with -fPIC /misc/x86_64-unknown-linux-gnu/opt/gcc/3.4.3/lib/gcc/x86_64-unknown-linux-gnu/3. 4.3/libstdc++.a(allocator.o): could not read symbols: Bad value collect2: ld returned 1 exit status make: *** [libdb_cxx-4.3.la] Error 1 === i know that this can be solved using the shared version of libstdc++, but i'd like to have binaries with do not depend on libstdc++ AND i'd like to understand what's wrong here. (maybe this is a binutils problem -- i am not sure...) -- Summary: static libstdc++.a does not link against shared objects Product: gcc Version: 3.4.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: niki dot waibel at gmx dot net CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19545 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/19545] static libstdc++.a does not link against shared objects 2005-01-20 13:32 [Bug libstdc++/19545] New: static libstdc++.a does not link against shared objects niki dot waibel at gmx dot net @ 2005-01-20 14:59 ` pinskia at gcc dot gnu dot org 2005-01-21 8:55 ` niki dot waibel at gmx dot net ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-01-20 14:59 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-20 14:59 ------- --with-pic try to use only PIC/non-PIC objects default=use both -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19545 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/19545] static libstdc++.a does not link against shared objects 2005-01-20 13:32 [Bug libstdc++/19545] New: static libstdc++.a does not link against shared objects niki dot waibel at gmx dot net 2005-01-20 14:59 ` [Bug libstdc++/19545] " pinskia at gcc dot gnu dot org @ 2005-01-21 8:55 ` niki dot waibel at gmx dot net 2005-01-21 9:00 ` niki dot waibel at gmx dot net ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: niki dot waibel at gmx dot net @ 2005-01-21 8:55 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From niki dot waibel at gmx dot net 2005-01-21 08:55 ------- --with-pic when building the db lib (that is what i currently try to compile on all platforms), or when building gcc? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19545 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/19545] static libstdc++.a does not link against shared objects 2005-01-20 13:32 [Bug libstdc++/19545] New: static libstdc++.a does not link against shared objects niki dot waibel at gmx dot net 2005-01-20 14:59 ` [Bug libstdc++/19545] " pinskia at gcc dot gnu dot org 2005-01-21 8:55 ` niki dot waibel at gmx dot net @ 2005-01-21 9:00 ` niki dot waibel at gmx dot net 2005-01-21 9:05 ` niki dot waibel at gmx dot net 2005-01-21 9:20 ` niki dot waibel at gmx dot net 4 siblings, 0 replies; 6+ messages in thread From: niki dot waibel at gmx dot net @ 2005-01-21 9:00 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From niki dot waibel at gmx dot net 2005-01-21 09:00 ------- i get exactly the same error if i use --with-pic when configuring db-4.3.27. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19545 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/19545] static libstdc++.a does not link against shared objects 2005-01-20 13:32 [Bug libstdc++/19545] New: static libstdc++.a does not link against shared objects niki dot waibel at gmx dot net ` (2 preceding siblings ...) 2005-01-21 9:00 ` niki dot waibel at gmx dot net @ 2005-01-21 9:05 ` niki dot waibel at gmx dot net 2005-01-21 9:20 ` niki dot waibel at gmx dot net 4 siblings, 0 replies; 6+ messages in thread From: niki dot waibel at gmx dot net @ 2005-01-21 9:05 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From niki dot waibel at gmx dot net 2005-01-21 09:05 ------- comping gcc again using --with-pic. just saw the option in gcc-3.4.3/libstdc++- v3/configure ... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19545 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/19545] static libstdc++.a does not link against shared objects 2005-01-20 13:32 [Bug libstdc++/19545] New: static libstdc++.a does not link against shared objects niki dot waibel at gmx dot net ` (3 preceding siblings ...) 2005-01-21 9:05 ` niki dot waibel at gmx dot net @ 2005-01-21 9:20 ` niki dot waibel at gmx dot net 4 siblings, 0 replies; 6+ messages in thread From: niki dot waibel at gmx dot net @ 2005-01-21 9:20 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From niki dot waibel at gmx dot net 2005-01-21 09:20 ------- YES! everything fine now. compiling gcc using --with-pic solved the problem. thanks a lot for that hint! niki -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19545 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-01-21 9:20 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-01-20 13:32 [Bug libstdc++/19545] New: static libstdc++.a does not link against shared objects niki dot waibel at gmx dot net 2005-01-20 14:59 ` [Bug libstdc++/19545] " pinskia at gcc dot gnu dot org 2005-01-21 8:55 ` niki dot waibel at gmx dot net 2005-01-21 9:00 ` niki dot waibel at gmx dot net 2005-01-21 9:05 ` niki dot waibel at gmx dot net 2005-01-21 9:20 ` niki dot waibel at gmx dot net
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).