[Bug libstdc++/61841] broken std::thread on Hurd

2014-08-28 Thread 1o5g4r8o at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61841

--- Comment #6 from Gabriele Giacone <1o5g4r8o at gmail dot com> ---
https://bugs.debian.org/749290#53

Please consider replying to its recipients.


[Bug libstdc++/61841] broken std::thread on Hurd

2014-08-28 Thread 1o5g4r8o at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61841

--- Comment #4 from Gabriele Giacone <1o5g4r8o at gmail dot com> ---
FYI according to [0], Matthias Klose backported [1] but it didn't fix the
issue.
Samuel Thibault did fix it with [2] on libpthread side.
Both needed?

[0] http://patchwork.ozlabs.org/patch/379715/
[1]
http://anonscm.debian.org/viewvc/gcccvs/branches/sid/gcc-4.9/debian/patches/pr61841.diff?revision=7572&view=markup&sortby=date
[2]
http://anonscm.debian.org/viewvc/pkg-glibc/glibc-package/trunk/debian/patches/hurd-i386/cvs-libpthread_std_thread.diff?revision=6243&view=markup&sortby=date


[Bug c++/61841] New: broken std::thread on Hurd

2014-07-18 Thread 1o5g4r8o at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61841

Bug ID: 61841
   Summary: broken std::thread on Hurd
   Product: gcc
   Version: 4.9.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: 1o5g4r8o at gmail dot com

Created attachment 33142
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33142&action=edit
testcase

Forwarding Debian bug https://bugs.debian.org/749290
Attached testcase.

On hurd

$ g++ thread.cpp -pthread -std=c++11 -o thread
$ ./thread 
terminate called after throwing an instance of 'std::system_error'
  what():  Enable multithreading to use std::thread: Operation not permitted
Aborted

On linux it runs fine

$ ./thread 
1307674368000
355687428096000