September 06, 2014 Re: Installing LDC on Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kagamin | On Saturday, 6 September 2014 at 16:36:38 UTC, Kagamin wrote:
> Looks like mingw supports 3 types of exception handling. LDC usually tightly coupled with mingw version, you shouldn't try it blindly, but follow installation instructions instead.
It's not really tightly coupled to the MinGW version per se. What is required is Dwarf 2 EH and a working TLS implementation. The latter is the reason for the "recent version of mingw-w64" requirement, because I fixed the implementation there a year ago or so. No idea if the mingw.org people have gotten their act together since.
That being said, it still makes sense to try a known good version first, as LDC exercises quite a large part of the compiler/runtime features, some of which aren't needed in more wide-spread use cases (for example native TLS).
David
|
September 06, 2014 Re: Installing LDC on Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Nadlinger | On Saturday, 6 September 2014 at 21:54:00 UTC, David Nadlinger wrote: > On Saturday, 6 September 2014 at 17:51:16 UTC, Trass3r wrote: >>> SEH was patented, so llvm doesn't support it. >> >> That has changed. > > Has it? SEH on Win64 is something entirely different from the original (x86) SEH design, and not covered by said patent. Ok 2in1. 1) As far as I know the x86 SEH patent expired in June. 2) For x64 the implementation is very close now: https://github.com/ldc-developers/ldc/issues/166#issuecomment-54522891 |
September 07, 2014 Re: Installing LDC on Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Nadlinger Attachments:
| On Sat, 2014-09-06 at 21:52 +0000, David Nadlinger via Digitalmars-d-learn wrote: > On Saturday, 6 September 2014 at 16:11:55 UTC, Russel Winder via Digitalmars-d-learn wrote: > > I installed the other MinGW option and it provides > > libgcc_s_sjlj-1.dll > > which is not helping me actually run ldc2 on Windows :-( > > It is mentioned both the in README coming with the Windows packages and the on wiki [1] that you need a Dwarf 2 EH package (-dw2) of MinGW-w64 for LDC to work. > > How can we make this more clear? I wasn't looking at anything that was to do with building LDC on Windows, so I guess I just didn't look. I wanted a binary download install process. LDC came down fine, but it was then a question of getting MinGW-w64. The MinGW-w64 installer only offers seh and sjlj as options it doesn't offer dw2. I probably would have read the README eventually, but I wasn't in the frame of mind of doing this: I just wanted to test something on Windows quickly and give the machine back. I am therefore a bad sample for worrying about making things clear! :-) On Linux, I happily build LDC from a Git repository clone, I have even got it all working on OSX as well. I just don't do Windows… but for the SCons D tools Windows tests need running… -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder@ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder |
September 09, 2014 Re: Installing LDC on Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russel Winder | On Saturday, 6 September 2014 at 11:13:20 UTC, Russel Winder via Digitalmars-d-learn wrote: > OK I installed LDC pre-built on MinGW for Windows on Windows and then > Installed MinGW for Windows but when I run ldc2 it tells me > libgcc_s_dw2-1.dll is missing. > > Is this problem soluble by any means other than destruction of Windows? My first guess is that you do not use 32bit MinGW. Here is what I got inside MSYS2 (MSYS2 rocks btw!): $ find . -name libgcc* ./mingw32/bin/libgcc_s_dw2-1.dll ./mingw64/bin/libgcc_s_seh-1.dll |
September 09, 2014 Re: Installing LDC on Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Nadlinger | On Saturday, 6 September 2014 at 22:06:30 UTC, David Nadlinger wrote: > On Saturday, 6 September 2014 at 16:36:38 UTC, Kagamin wrote: >> Looks like mingw supports 3 types of exception handling. LDC usually tightly coupled with mingw version, you shouldn't try it blindly, but follow installation instructions instead. > > It's not really tightly coupled to the MinGW version per se. What is required is Dwarf 2 EH and a working TLS implementation. The latter is the reason for the "recent version of mingw-w64" requirement, because I fixed the implementation there a year ago or so. No idea if the mingw.org people have gotten their act together since. BTW, looks like there are official fresh dwarf builds: http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.1/threads-win32/dwarf/ |
Copyright © 1999-2021 by the D Language Foundation