Re: Adding support for mingw-w64 and winpthread

2016-05-11 Thread Vincent R via D.gnu
On Wednesday, 30 March 2016 at 12:05:27 UTC, Vincent R wrote: On Wednesday, 30 March 2016 at 11:44:41 UTC, Johannes Pfau wrote: Am Wed, 30 Mar 2016 08:27:27 + schrieb Vincent R : [...] Known problem, I'll probably push a fix to master for this soon. Linking -lws2_32 -lwsock32 is the cor

Re: Adding support for mingw-w64 and winpthread

2016-03-30 Thread Vincent R via D.gnu
On Wednesday, 30 March 2016 at 11:44:41 UTC, Johannes Pfau wrote: Am Wed, 30 Mar 2016 08:27:27 + schrieb Vincent R : [...] Known problem, I'll probably push a fix to master for this soon. Linking -lws2_32 -lwsock32 is the correct workaround, but the libraries must be specified in the co

Re: Adding support for mingw-w64 and winpthread

2016-03-30 Thread Vincent R via D.gnu
On Friday, 25 March 2016 at 10:11:46 UTC, Johannes Pfau wrote: Am Fri, 25 Mar 2016 09:15:06 + schrieb Vincent R : > So the main question is: can we simply ditch gcc.gthreads > and inline the code into rt.monitor? Thanks for all this information and it seems your knowledge is far beyond mi

Re: Adding support for mingw-w64 and winpthread

2016-03-25 Thread Vincent R via D.gnu
On Thursday, 24 March 2016 at 13:07:00 UTC, Johannes Pfau wrote: I also had another look at MinGW-W64 some weeks ago but then got distracted :-) Here's a quick patch to get winpthreads working: https://paste.gnome.org/pl3pqzcke This only hooks up the gthreads API with winpthreads. But when

Re: Adding support for mingw-w64 and winpthread

2016-03-24 Thread Vincent R via D.gnu
On Thursday, 24 March 2016 at 10:12:20 UTC, Iain Buclaw wrote: How readily does Mingw support pthreads? What may be needed is simply a new package for mingw-specific system functions (ie: core.sys.mingw.pthread). In the meantime, you should be able to get around by passing --enable-threads=win3

Adding support for mingw-w64 and winpthread

2016-03-24 Thread Vincent R via D.gnu
Hi, I would like to generate gdc compiler on msys2/mingw-w64 platform. The build system on msys2 uses archlinux build architecture and the build file is here: https://github.com/vrichomme/MINGW-packages/blob/newfastrelease/mingw-w64-gcc/PKGBUILD To generate it I followed the following steps:

Re: "GNU D Compiler" project for GSoC 2016

2016-03-11 Thread Vincent R via D.gnu
On Monday, 7 March 2016 at 16:49:43 UTC, Abhishek Kumar wrote: On Monday, 7 March 2016 at 13:52:13 UTC, Iain Buclaw wrote: On Saturday, 5 March 2016 at 19:46:34 UTC, Abhishek Kumar wrote: [...] Hi, Yes, here is a good place as any. Have you set-up GDC itself, or just DMD? Iain. I have c

Re: Crash when iterating over files with foreach and std.file.dirEntries on Windows?

2015-11-16 Thread Vincent R via D.gnu
On Monday, 16 November 2015 at 15:34:13 UTC, Jeremy DeHaan wrote: Should I file an issue in the bugzilla just in case? And if it makes you feel better, this is the first issue I've encountered with the MinGW builds. yes you should and please post the code you have used because I would be curi

Re: error: symbol (longsymbol) is already defined

2015-11-12 Thread Vincent R via D.gnu
On Wednesday, 11 November 2015 at 13:48:16 UTC, Johannes Pfau wrote: Am Tue, 10 Nov 2015 05:14:48 + schrieb Ellery Newcomer : On Monday, 9 November 2015 at 08:53:30 UTC, Iain Buclaw wrote: > > Instead of funneling blame, this could be resolved in the > move > to 2.067 > (maybe just skippi

Re: Trying to generate gdc for mingw-w64(x86 and x64) using msys2

2015-11-10 Thread Vincent R via D.gnu
On Monday, 9 November 2015 at 16:47:20 UTC, Johannes Pfau wrote: Am Mon, 09 Nov 2015 00:22:52 + schrieb Vincent R : I tried a last time before and I managed to make it work not completely but at least I can see a hello world application on the console: $ gdc -o main.exe main.d $ ./main.

Re: Trying to generate gdc for mingw-w64(x86 and x64) using msys2

2015-11-08 Thread Vincent R via D.gnu
On Saturday, 7 November 2015 at 14:13:36 UTC, Vincent R wrote: On Saturday, 7 November 2015 at 13:43:52 UTC, Vincent R wrote: On Friday, 6 November 2015 at 18:15:06 UTC, Vincent R wrote: On Friday, 6 November 2015 at 10:07:53 UTC, Vincent R wrote: [...] Ok I was able to generate a gdc compil

Re: Trying to generate gdc for mingw-w64(x86 and x64) using msys2

2015-11-07 Thread Vincent R via D.gnu
On Saturday, 7 November 2015 at 13:43:52 UTC, Vincent R wrote: On Friday, 6 November 2015 at 18:15:06 UTC, Vincent R wrote: On Friday, 6 November 2015 at 10:07:53 UTC, Vincent R wrote: [...] Ok I was able to generate a gdc compiler(x64) so now I need to test it and I will keep you informed.

Re: Trying to generate gdc for mingw-w64(x86 and x64) using msys2

2015-11-07 Thread Vincent R via D.gnu
On Friday, 6 November 2015 at 18:15:06 UTC, Vincent R wrote: On Friday, 6 November 2015 at 10:07:53 UTC, Vincent R wrote: [...] Ok I was able to generate a gdc compiler(x64) so now I need to test it and I will keep you informed. It doesn't work... $ gdc main.d gdc.exe: error: CreateProcess:

Re: Trying to generate gdc for mingw-w64(x86 and x64) using msys2

2015-11-06 Thread Vincent R via D.gnu
On Friday, 6 November 2015 at 10:07:53 UTC, Vincent R wrote: [...] Ok I was able to generate a gdc compiler(x64) so now I need to test it and I will keep you informed.

Re: Trying to generate gdc for mingw-w64(x86 and x64) using msys2

2015-11-06 Thread Vincent R via D.gnu
On Friday, 6 November 2015 at 09:37:31 UTC, Vincent R wrote: On Thursday, 5 November 2015 at 20:26:27 UTC, Johannes Pfau wrote: Am Thu, 05 Nov 2015 18:42:32 + schrieb Vincent R : On Thursday, 5 November 2015 at 14:27:20 UTC, Vincent R wrote: > [...] I tried to add a version(MinGW) inside

Re: Trying to generate gdc for mingw-w64(x86 and x64) using msys2

2015-11-06 Thread Vincent R via D.gnu
On Thursday, 5 November 2015 at 20:26:27 UTC, Johannes Pfau wrote: Am Thu, 05 Nov 2015 18:42:32 + schrieb Vincent R : On Thursday, 5 November 2015 at 14:27:20 UTC, Vincent R wrote: > [...] I tried to add a version(MinGW) inside core.sys.posix.sys.types to just declare pthread_key_t but it

Re: Trying to generate gdc for mingw-w64(x86 and x64) using msys2

2015-11-05 Thread Vincent R via D.gnu
On Thursday, 5 November 2015 at 14:27:20 UTC, Vincent R wrote: [...] I tried to add a version(MinGW) inside core.sys.posix.sys.types to just declare pthread_key_t but it didn't work because I still have exactly the same error. So am I supposed to do ?

Re: Trying to generate gdc for mingw-w64(x86 and x64) using msys2

2015-11-05 Thread Vincent R via D.gnu
On Thursday, 5 November 2015 at 13:15:45 UTC, Johannes Pfau wrote: Am Thu, 05 Nov 2015 12:42:08 + schrieb Vincent R : Hi, I would like to generate a d compiler targeting mingw-w64 using the msys2 build system. So I have installed msys2 (posix emulation like cygwin) as shown here: http://

Trying to generate gdc for mingw-w64(x86 and x64) using msys2

2015-11-05 Thread Vincent R via D.gnu
Hi, I would like to generate a d compiler targeting mingw-w64 using the msys2 build system. So I have installed msys2 (posix emulation like cygwin) as shown here: http://msys2.github.io/ and I have installed necessary packages: $ pacman -S base-devel $ pacman -S mingw-w64-x86_64-toolchain o