Thread overview
[Issue 14873] Build fails with message 'cannot create PDB file'
Aug 05, 2015
Rainer Schuetze
Aug 06, 2015
Derik Palacino
Aug 06, 2015
Derik Palacino
Aug 07, 2015
Rainer Schuetze
Aug 08, 2015
Rainer Schuetze
Aug 13, 2015
Derik Palacino
Aug 15, 2015
Rainer Schuetze
Nov 01, 2015
Rainer Schuetze
Nov 28, 2015
Rainer Schuetze
August 05, 2015
https://issues.dlang.org/show_bug.cgi?id=14873

Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario@gmx.de

--- Comment #1 from Rainer Schuetze <r.sagitario@gmx.de> ---
Could be a duplicate of issue 14164. Is this happening with the latest release, too? Please try https://github.com/D-Programming-Language/visuald/releases/tag/v0.3.42

--
August 06, 2015
https://issues.dlang.org/show_bug.cgi?id=14873

--- Comment #2 from Derik Palacino <derik@palacino.net> ---
I'll check on the possibility of the 14164 resolution, and download the latest and re-check the issue there.

--
August 06, 2015
https://issues.dlang.org/show_bug.cgi?id=14873

--- Comment #3 from Derik Palacino <derik@palacino.net> ---
Issue 14164 appears completely unrelated to this. This issue is blocking successful compilation.

If there a log that might reveal an underlying error message for which this may be a generic mask?

--
August 07, 2015
https://issues.dlang.org/show_bug.cgi?id=14873

--- Comment #4 from Rainer Schuetze <r.sagitario@gmx.de> ---
Posting C:\Users\Derik\Projects\TagIO\Projects\Library\Debug\Library.buildlog.html here might help. I suspect it might have to do with bad PATH settings.

If you switch to mago as the debug engine used for debugging, no conversion to PDB will be necessary. It's actually the default now with the latest version of Visual D.

--
August 08, 2015
https://issues.dlang.org/show_bug.cgi?id=14873

--- Comment #5 from Rainer Schuetze <r.sagitario@gmx.de> ---
> Issue 14164 appears completely unrelated to this.

Sorry, mistyped here. I meant issue 14614.

--
August 13, 2015
https://issues.dlang.org/show_bug.cgi?id=14873

--- Comment #6 from Derik Palacino <derik@palacino.net> ---
Sorry for the delay. I've tried this with the latest version (0.3.42 from a4db8f4) and got the same results.

------ Rebuild All started: Project: Library, Configuration: Debug Win32 ------
Building Debug\Library.dll...
Converting debug information...
C:\Users\Derik\Projects\TagIO\Projects\Library\Debug\Library.pdb: cannot create
PDB file
Building Debug\Library.dll failed!
Details saved as
"file://C:\Users\Derik\Projects\TagIO\Projects\Library\Debug\Library.buildlog.html"
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


The build log reveals...

Command Line

set PATH=C:\D\dmd2\windows\bin;C:\Program Files (x86)\Microsoft Visual Studio
14.0\\Common7\IDE;C:\Program Files (x86)\Windows Kits\8.1\\bin;C:\Program Files
(x86)\Microsoft Visual Studio 10.0\Common7\IDE;%PATH%
dmd -g -debug -X -Xf"Debug\Library.json" -deps="Debug\Library.dep" -c
-of"Debug\Library.obj" dll.def dllmain.d Objects.d TagIO.d
if errorlevel 1 goto reportError

set LIB="C:\D\dmd2\windows\bin\..\lib"
echo. >
C:\Users\Derik\Projects\TagIO\Projects\Library\Debug\Library.build.lnkarg
echo "Debug\Library.obj","Debug\Library.dll_cv","Debug\Library.map",user32.lib+
>> C:\Users\Derik\Projects\TagIO\Projects\Library\Debug\Library.build.lnkarg
echo kernel32.lib,dll.def/MAP:FULL/CO/NOI/DELEXE >> C:\Users\Derik\Projects\TagIO\Projects\Library\Debug\Library.build.lnkarg

"C:\Program Files (x86)\VisualD\pipedmd.exe" -deps Debug\Library.lnkdep
C:\D\dmd2\windows\bin\link.exe
@C:\Users\Derik\Projects\TagIO\Projects\Library\Debug\Library.build.lnkarg
if errorlevel 1 goto reportError
if not exist "Debug\Library.dll_cv" (echo "Debug\Library.dll_cv" not created!
&& goto reportError)
echo Converting debug information...
"C:\Program Files (x86)\VisualD\cv2pdb\cv2pdb.exe" "Debug\Library.dll_cv"
"Debug\Library.dll"
if errorlevel 1 goto reportError
if not exist "Debug\Library.dll" (echo "Debug\Library.dll" not created! && goto
reportError)

goto noError

:reportError
echo Building Debug\Library.dll failed!

Output

onverting debug information...
C:\Users\Derik\Projects\TagIO\Projects\Library\Debug\Library.pdb: cannot create
PDB file
Building Debug\Library.dll failed!

--
August 15, 2015
https://issues.dlang.org/show_bug.cgi?id=14873

--- Comment #7 from Rainer Schuetze <r.sagitario@gmx.de> ---
Thanks for posting the log.

It seems a path to $(VSINSTALLDIR)\VC\bin needs to be added to the "Executable Paths" for DMD/Win32 builds to start the MS PDB server executable mspdbsrv.exe. Once it is running, it works without the additional path.

--
November 01, 2015
https://issues.dlang.org/show_bug.cgi?id=14873

--- Comment #8 from Rainer Schuetze <r.sagitario@gmx.de> ---
Should be fixed in https://github.com/D-Programming-Language/visuald/releases/tag/v0.3.43-beta1

--
November 28, 2015
https://issues.dlang.org/show_bug.cgi?id=14873

Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #9 from Rainer Schuetze <r.sagitario@gmx.de> ---
released in https://github.com/D-Programming-Language/visuald/releases/tag/v0.3.43

--