www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17384] New: LDC x64 linker error in VS2017


          Issue ID: 17384
           Summary: LDC x64 linker error in VS2017
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: visuald
          Assignee: nobody puremagic.com
          Reporter: thomas.hedstrom mail.com

Created attachment 1646
  --> https://issues.dlang.org/attachment.cgi?id=1646&action=edit
Not working project

Building console app "Hello World" generated from D project templates for
target LDC x64 (release or debug) results in linker error:

"LINK : fatal error LNK1171: unable to load mspdb140.dll (error code: 126)
Error: P:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x64\link.exe failed
with status: 1171"

Tested LDC 1.2.0 and 1.3.0-beta1
VS2017 Community

DMD x86,x64 and LDC x86 all compiles.

A minimal patch of the build .cmd file indicates that the variable
"VSINSTALLDIR" is the cause. Changing "set VSINSTALLDIR=P:\Program Files
(x86)\Microsoft Visual Studio\2017\Community\"
to empty (or removing it) make it work.
(The original path exists and seems correct though)

May 08 2017