[Mingw-w64-public] rubenvb brings you C++11 std::thread!

2011-08-29 Thread Ruben Van Boxem
And the world is struck with awe! No really, I have just completed an experimental GCC 4.7 (current SVN trunk) build using mingw-w64 trunk, which through an ingenious patch to libstdc++'s configure contains all goodies needed for a working (simple test case only, as always :) ) std::thread. There

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] rubenvb Personal Build: new release 4.6.2-2, now with Mac and Cygwin hosted builds!

2011-08-29 Thread Earnie
Ruben Van Boxem wrote: > 2011/8/29 Earnie > >> Ruben Van Boxem wrote: >> >>> I have an idea: try removing the python27.dll file in >>> mingw32/bin. I put it in there for gdb's python support, and it >>> might interfere with the Python you're using to do your stuff. >>> I'll see if I can't move the

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] rubenvb Personal Build: new release 4.6.2-2, now with Mac and Cygwin hosted builds!

2011-08-29 Thread Ruben Van Boxem
2011/8/29 Earnie > Ruben Van Boxem wrote: > > > I have an idea: try removing the python27.dll file in mingw32/bin. I > > put it in there for gdb's python support, and it might interfere > > with the Python you're using to do your stuff. I'll see if I can't > > move the dll to mingw32/bin/lib and

Re: [Mingw-w64-public] rubenvb Personal Build: new release 4.6.2-2, now with Mac and Cygwin hosted builds!

2011-08-29 Thread Earnie
Ruben Van Boxem wrote: > I have an idea: try removing the python27.dll file in mingw32/bin. I > put it in there for gdb's python support, and it might interfere > with the Python you're using to do your stuff. I'll see if I can't > move the dll to mingw32/bin/lib and have gdb search for > lib/pyth

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