public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/57740] New: C++11 std::thread not usable with static linking
@ 2013-06-27 20:18 roland at gnu dot org
  2013-06-27 20:20 ` [Bug libstdc++/57740] " pinskia at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: roland at gnu dot org @ 2013-06-27 20:18 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 57740
           Summary: C++11 std::thread not usable with static linking
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: roland at gnu dot org
              Host: x86_64-linux-gnu

Created attachment 30398
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30398&action=edit
test case

This bug goes back at least to 4.6, but I don't really care about anything
older than 4.8.

On x86_64-linux-gnu (and others), the attached test works when compiled with:
    g++ -std=c++0x -pthread std_mutex.cc -o std_mutex
but when compiled with:
    g++ -std=c++0x -static -pthread std_mutex.cc -o std_mutex
it either throws an error or just crashes.

The underlying problem is excessive use of weak references in gthr-posix.h.

I already have a fix and a testsuite addition in hand and will post them to
gcc-patches soon.


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

end of thread, other threads:[~2014-11-04  3:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-27 20:18 [Bug libstdc++/57740] New: C++11 std::thread not usable with static linking roland at gnu dot org
2013-06-27 20:20 ` [Bug libstdc++/57740] " pinskia at gcc dot gnu.org
2013-06-27 20:30 ` roland at gnu dot org
2013-06-27 20:44 ` jakub at gcc dot gnu.org
2013-06-27 20:57 ` roland at gnu dot org
2013-06-27 21:09 ` roland at gnu dot org
2013-06-27 21:15 ` jakub at gcc dot gnu.org
2013-06-27 21:25 ` roland at gnu dot org
2013-06-27 21:51 ` pinskia at gcc dot gnu.org
2013-06-27 22:12 ` roland at gnu dot org
2013-06-27 23:20 ` joseph at codesourcery dot com
2014-10-13 14:56 ` redi at gcc dot gnu.org
2014-11-04  3:32 ` mjbshaw at hotmail 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).