public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/59380] New: libstdc++.a: could not read symbols: Bad value
@ 2013-12-04  7:33 cnstar9988 at gmail dot com
  2013-12-04  7:34 ` [Bug c++/59380] " cnstar9988 at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: cnstar9988 at gmail dot com @ 2013-12-04  7:33 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59380
           Summary: libstdc++.a: could not read symbols: Bad value
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: cnstar9988 at gmail dot com

libstdc++.a: could not read symbols: Bad value
gcc 4.8.2

====foo.cc=====
#include <iostream>
 void foo() { std::cout << 42 << std::endl; }

g++ -pthread -fPIC -o foo.so -shared foo.cc


[root@hpblade01 ~]# g++ -pthread -fPIC -o foo.so -shared foo.cc
/usr/bin/ld:
/opt/gcc-4.8.2/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libstdc++.a(ios_init.o):
relocation R_X86_64_32 against `__pthread_key_create' can not be used when
making a shared object; recompile with -fPIC
/opt/gcc-4.8.2/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libstdc++.a:
could not read symbols: Bad value
collect2: error: ld returned 1 exit status

=======
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/gcc-4.8.2/libexec/gcc/x86_64-redhat-linux/4.8.2/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../src/configure --prefix=/opt/gcc-4.8.2
--enable-languages=c,c++ --with-pic --disable-shared --enable-threads=posix
--enable-checking=release --enable-threads=posix --with-system-zlib
--enable-__cxa_atexit --disable-libunwind-exceptions --disable-nls
--with-cpu=generic --disable-multilib --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.2 (GCC)


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

* [Bug c++/59380] libstdc++.a: could not read symbols: Bad value
  2013-12-04  7:33 [Bug c++/59380] New: libstdc++.a: could not read symbols: Bad value cnstar9988 at gmail dot com
@ 2013-12-04  7:34 ` cnstar9988 at gmail dot com
  2013-12-04  7:37 ` cnstar9988 at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: cnstar9988 at gmail dot com @ 2013-12-04  7:34 UTC (permalink / raw)
  To: gcc-bugs

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

littlestar <cnstar9988 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unknown                     |4.8.2

--- Comment #1 from littlestar <cnstar9988 at gmail dot com> ---
works well on gcc 4.6.4
fails on gcc 4.8.2
CentOS 6.2 X86_64


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

* [Bug c++/59380] libstdc++.a: could not read symbols: Bad value
  2013-12-04  7:33 [Bug c++/59380] New: libstdc++.a: could not read symbols: Bad value cnstar9988 at gmail dot com
  2013-12-04  7:34 ` [Bug c++/59380] " cnstar9988 at gmail dot com
@ 2013-12-04  7:37 ` cnstar9988 at gmail dot com
  2013-12-04 11:27 ` hjl.tools at gmail dot com
  2013-12-04 11:29 ` hjl.tools at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: cnstar9988 at gmail dot com @ 2013-12-04  7:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from littlestar <cnstar9988 at gmail dot com> ---
similar to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58638


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

* [Bug c++/59380] libstdc++.a: could not read symbols: Bad value
  2013-12-04  7:33 [Bug c++/59380] New: libstdc++.a: could not read symbols: Bad value cnstar9988 at gmail dot com
  2013-12-04  7:34 ` [Bug c++/59380] " cnstar9988 at gmail dot com
  2013-12-04  7:37 ` cnstar9988 at gmail dot com
@ 2013-12-04 11:27 ` hjl.tools at gmail dot com
  2013-12-04 11:29 ` hjl.tools at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2013-12-04 11:27 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2013-12-04
     Ever confirmed|0                           |1

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
Where is your libstdc++.so? Why can't linker find it?


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

* [Bug c++/59380] libstdc++.a: could not read symbols: Bad value
  2013-12-04  7:33 [Bug c++/59380] New: libstdc++.a: could not read symbols: Bad value cnstar9988 at gmail dot com
                   ` (2 preceding siblings ...)
  2013-12-04 11:27 ` hjl.tools at gmail dot com
@ 2013-12-04 11:29 ` hjl.tools at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2013-12-04 11:29 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
Dup.

*** This bug has been marked as a duplicate of bug 58638 ***


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

end of thread, other threads:[~2013-12-04 11:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-04  7:33 [Bug c++/59380] New: libstdc++.a: could not read symbols: Bad value cnstar9988 at gmail dot com
2013-12-04  7:34 ` [Bug c++/59380] " cnstar9988 at gmail dot com
2013-12-04  7:37 ` cnstar9988 at gmail dot com
2013-12-04 11:27 ` hjl.tools at gmail dot com
2013-12-04 11:29 ` hjl.tools at gmail dot com

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