www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - Which mingw-w64 version and packager? Is cygwin's ok?

reply Bruno Medeiros <brunodomedeiros+dng gmail.com> writes:
I'm trying out LDC for the first time (0.12.1).
I understand a recent version of mingw-w64 is required. I was looking 
at: http://mingw-w64.sourceforge.net/download.php
and I was wondering if the Cygwin versions are good? They seem recent 
enough (based on GCC 4.8.2?), but they don't support SEH and C11/C++11 
threading AFAIK. Is that an issue for LDC?

-- 
Bruno Medeiros
https://twitter.com/brunodomedeiros
Mar 05 2014
parent reply "Kai Nacke" <kai redstar.de> writes:
Hi Bruno!

On Wednesday, 5 March 2014 at 13:50:43 UTC, Bruno Medeiros wrote:
 I'm trying out LDC for the first time (0.12.1).
 I understand a recent version of mingw-w64 is required. I was 
 looking at: http://mingw-w64.sourceforge.net/download.php
 and I was wondering if the Cygwin versions are good? They seem 
 recent enough (based on GCC 4.8.2?), but they don't support SEH 
 and C11/C++11 threading AFAIK. Is that an issue for LDC?
Even if a recent mingw-w64 package is required, LDC is only supported on 32 bit. You can use the version mentioned in the wiki (http://wiki.dlang.org/Building_LDC_on_MinGW_x86) - this one is known to work. (Every newer build should work, too.) SEH support and C11/C++11 threading are not yet relevant. Regards, Kai
Mar 05 2014
next sibling parent "Kai Nacke" <kai redstar.de> writes:
On Wednesday, 5 March 2014 at 17:25:26 UTC, Kai Nacke wrote:
 Hi Bruno!

 On Wednesday, 5 March 2014 at 13:50:43 UTC, Bruno Medeiros 
 wrote:
 I'm trying out LDC for the first time (0.12.1).
 I understand a recent version of mingw-w64 is required. I was 
 looking at: http://mingw-w64.sourceforge.net/download.php
 and I was wondering if the Cygwin versions are good? They seem 
 recent enough (based on GCC 4.8.2?), but they don't support 
 SEH and C11/C++11 threading AFAIK. Is that an issue for LDC?
Even if a recent mingw-w64 package is required, LDC is only supported on 32 bit. You can use the version mentioned in the wiki (http://wiki.dlang.org/Building_LDC_on_MinGW_x86) - this one is known to work. (Every newer build should work, too.) SEH support and C11/C++11 threading are not yet relevant. Regards, Kai
I forgot: cygwin is not supported! Regards, Kai
Mar 05 2014
prev sibling parent reply Bruno Medeiros <brunodomedeiros+dng gmail.com> writes:
On 05/03/2014 17:25, Kai Nacke wrote:
 Even if a recent mingw-w64 package is required, LDC is only supported on
 32 bit. You can use the version mentioned in the wiki
 (http://wiki.dlang.org/Building_LDC_on_MinGW_x86) - this one is known to
 work. (Every newer build should work, too.)
Yeah, after a few headaches and confusion with Cygwin and even the Mingw-builds packages, I decided best to just use the package mentioned in the LDC README, even if that pollutes my PATH a bit.
 SEH support and C11/C++11 threading are not yet relevant.
Ok, good to understand that. BTW, the "LDC on 32 bit only" limitation is a LDC limitation, or LLVM one? -- Bruno Medeiros https://twitter.com/brunodomedeiros
Mar 05 2014
parent reply "Kai Nacke" <kai redstar.de> writes:
Hi Bruno!

On Wednesday, 5 March 2014 at 21:38:13 UTC, Bruno Medeiros wrote:
 On 05/03/2014 17:25, Kai Nacke wrote:
 Even if a recent mingw-w64 package is required, LDC is only 
 supported on
 32 bit. You can use the version mentioned in the wiki
 (http://wiki.dlang.org/Building_LDC_on_MinGW_x86) - this one 
 is known to
 work. (Every newer build should work, too.)
Yeah, after a few headaches and confusion with Cygwin and even the Mingw-builds packages, I decided best to just use the package mentioned in the LDC README, even if that pollutes my PATH a bit.
 SEH support and C11/C++11 threading are not yet relevant.
Ok, good to understand that. BTW, the "LDC on 32 bit only" limitation is a LDC limitation, or LLVM one?
Well, both. LLVM currently has no SEH support for Windows 64bit (a task I am working on). But the runtime libraries also miss some support, e.g. nested exceptions on Windows 64bit. This is all Windows related! There are no restrictions on Linux, FreeBSD, ... Regards, Kai
Mar 05 2014
parent Bruno Medeiros <brunodomedeiros+dng gmail.com> writes:
On 06/03/2014 07:18, Kai Nacke wrote:
 This is all Windows related! There are no restrictions on Linux,
 FreeBSD, ...

 Regards,
 Kai
Yeah, I know, but my main (and currently only) motivation for trying out LDC was actually to have an up to date D compiler with debugging working on Windows, without having to use Visual Studio... -- Bruno Medeiros https://twitter.com/brunodomedeiros
Mar 07 2014