Re: [Mingw-w64-public] GCC 4.7.0 with std::thread: the sequel

2011-08-29 Thread Ruben Van Boxem
2011/8/29 PcX > 于 2011/8/29 22:43, Ruben Van Boxem 写道: > > and compiling my little test program complains about not finding >> pthread.h. libpthread.a is present though. >> >> I found a glimmer of hope: adding -static to the link line makes it work. >> So there must be some mismatch between libs

Re: [Mingw-w64-public] GCC 4.7.0 with std::thread: the sequel

2011-08-29 Thread PcX
于 2011/8/29 22:43, Ruben Van Boxem 写道: > and compiling my little test program complains about not finding > pthread.h. libpthread.a is present though. > > I found a glimmer of hope: adding -static to the link line makes it > work. So there must be some mismatch between libstdc++ and winpthread >

Re: [Mingw-w64-public] GCC 4.7.0 with std::thread: the sequel

2011-08-29 Thread Ruben Van Boxem
2011/8/29 Ruben Van Boxem > 2011/8/29 PcX > >> 于 2011/8/29 20:42, Ruben Van Boxem 写道: >> >> There's a bit more, check the libstdc++/configure bit of my patch. And rev >> 4428 of mingw-w64 >> >> I note that mingw-w64 has rev 4430, and winpthread has rev 4429. >> You may test them? >> > > Hmm.. 4

Re: [Mingw-w64-public] GCC 4.7.0 with std::thread: the sequel

2011-08-29 Thread Ruben Van Boxem
2011/8/29 PcX > 于 2011/8/29 20:42, Ruben Van Boxem 写道: > > There's a bit more, check the libstdc++/configure bit of my patch. And rev > 4428 of mingw-w64 > > I note that mingw-w64 has rev 4430, and winpthread has rev 4429. > You may test them? > Hmm.. 4.6 with the posix thread patches and the l

Re: [Mingw-w64-public] GCC 4.7.0 with std::thread: the sequel

2011-08-29 Thread PcX
于 2011/8/29 20:42, Ruben Van Boxem 写道: There's a bit more, check the libstdc++/configure bit of my patch. And rev 4428 of mingw-w64 I note that mingw-w64 has rev 4430, and winpthread has rev 4429. You may test them? -- Best Regards, PcX -

Re: [Mingw-w64-public] GCC 4.7.0 with std::thread: the sequel

2011-08-29 Thread PcX
于 2011/8/29 20:40, Ruben Van Boxem 写道: > Yes I did. Might be a GCC 4.7 issue? I have no idea. I only test this for gcc4.6. -- Best Regards, PcX -- EMC VNX: the world's simplest storage, starting under $10K The only uni

Re: [Mingw-w64-public] GCC 4.7.0 with std::thread: the sequel

2011-08-29 Thread Ruben Van Boxem
2011/8/29 PcX > 于 2011/8/29 20:04, Ruben Van Boxem 写道: > >> To be continued! >> > This is Kai's full patches > There's a bit more, check the libstdc++/configure bit of my patch. And rev 4428 of mingw-w64 Ruben > Now haven't merge to the trunk > --**

Re: [Mingw-w64-public] GCC 4.7.0 with std::thread: the sequel

2011-08-29 Thread PcX
于 2011/8/29 20:04, Ruben Van Boxem 写道: > To be continued! This is Kai's full patches Now haven't merge to the trunk - 2011-08-28 Kai Tietz * configure: Regenerated. * config.h.in:

Re: [Mingw-w64-public] GCC 4.7.0 with std::thread: the sequel

2011-08-29 Thread Ruben Van Boxem
2011/8/29 PcX > 于 2011/8/29 20:04, Ruben Van Boxem 写道: > > std::system_error: Operation not permitted. > Have you patched > > config/os/mingw32/error_constants.h > ? > > -//operation_not_permitted =EPERM, > +#ifdef HAVE_EPERM > + operation_not_permitted =E

Re: [Mingw-w64-public] GCC 4.7.0 with std::thread: the sequel

2011-08-29 Thread PcX
于 2011/8/29 20:04, Ruben Van Boxem 写道: > std::system_error: Operation not permitted. Have you patched config/os/mingw32/error_constants.h ? -//operation_not_permitted =EPERM, +#ifdef HAVE_EPERM + operation_not_permitted =EPERM, +#endif -- Best Regards,

Re: [Mingw-w64-public] GCC 4.7.0 with std::thread: the sequel

2011-08-29 Thread PcX
于 2011/8/29 20:20, Ruben Van Boxem 写道: > #include > #include > > using namespace std; > > void f() > { > cout << "Hello from thread" << endl; > } > int main() > { > thread t(f); > thread s(f); > > t.join(); > s.join(); > return 0; > } I'm very annoyed. My built edition works

Re: [Mingw-w64-public] GCC 4.7.0 with std::thread: the sequel

2011-08-29 Thread Ruben Van Boxem
2011/8/29 PcX > 于 2011/8/29 20:04, Ruben Van Boxem 写道: > > I am experiencing a std::system_error: Operation not permitted. in a > > simple std::thread::join example. > Can you supply some examples? > This is as simple as it gets (and as complicated as I can use std::thread :) ): #include #incl

Re: [Mingw-w64-public] GCC 4.7.0 with std::thread: the sequel

2011-08-29 Thread PcX
于 2011/8/29 20:04, Ruben Van Boxem 写道: > I am experiencing a std::system_error: Operation not permitted. in a > simple std::thread::join example. Can you supply some examples? Thanks. -- Best Regards, PcX -- EMC VNX:

[Mingw-w64-public] GCC 4.7.0 with std::thread: the sequel

2011-08-29 Thread Ruben Van Boxem
Kai and I, have, with the help of PcX and Frank, got to a point where a slightly patched libstdc++ configure can build adll with the necessary symbols. Kai is on holiday now, and I will be on holiday too in a few days, so don't expect any final word soon. I am experiencing a std::system_error: Op