none
Microsoft Visual Studio 2015 Static Driver Verifier Not Working RRS feed

  • Question

  • Hello,

    I am using the Static Driver Verifier tool in VS 2015.  As noted on the information site given here:

    https://msdn.microsoft.com/en-us/library/windows/hardware/ff552808

    SDV has a known bug to not reach completion after displaying the "Build" message.  I tried the workaround of changing the program file stated above, however there is an access restriction on Windows Server 2012 when saving changes to this file.  Is there a method to get around the permissions issues in Windows Server 2012 to allow Static Driver Verifier to run?

    Thanks

    Thursday, April 7, 2016 8:11 PM

Answers

  • Hi.  This was a workaround due to a regression in Visual Studio Update 1. It is fixed in Visual Studio Update 2 that was just released.
    Monday, April 11, 2016 4:44 AM

All replies

  • Hi Pro-Dex OMS,

    Actually this forum is to discuss the VS debugger/profiler tool, since this issue is related to the Driver Development Tools "Static Driver Verifier tool ", to help you resolve this issue as soon as possible, I help you move this case to the Windows Hardware WDK and Driver Development forum for dedicated support.

    Sincerely,

    Jack


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, April 11, 2016 1:50 AM
  • Hi.  This was a workaround due to a regression in Visual Studio Update 1. It is fixed in Visual Studio Update 2 that was just released.
    Monday, April 11, 2016 4:44 AM
  • Hello,

    Thank you for your reply.  I have installed the Visual Studio Update 2 from the site below. 

    https://www.visualstudio.com/en-us/news/vs2015-update2-vs.aspx

    The installer automatically removes the Update 1 installation.  When the driver solution with multiple projects is opened in Visual Studio 2015 Professional, the Static Driver Verifier is no longer stuck on the "Building..." status, but SDV does not get launched anymore. I have a project build configuration of x64 Release (Have tried x64 Debug as well) and SDV no longer launches at all. Are there any tips on what may be causing this to occur? I simply installed Update 2 from the site mentioned and restarted the machine.  Have SDK 10.0.10586.15, WDK 10.0.10586.0, and HLK installed.  Update 2 is identified in Programs and Features as Microsoft Visual Studio Professional 2015 with Updates.

    Thank You For Your Assistance

    Monday, April 11, 2016 7:24 PM
  • Can you please tell me which OS you are running VS on?

    Additionally, can you please attempt to repro using msbuild in a VS2015 command prompt, and send us the output

    To build the project, enter
    msbuild <project.vsproj> /p:configuration=release /p:platform=x64
    msbuild <project.vsproj> /p:configuration=release /p:platform=x64 /t:sdv /p:inputs="/clean"
    msbuild <project.vsproj> /p:configuration=release /p:platform=x64 /t:sdv /p:inputs="/check:*"

    Thanks!

    Tuesday, April 12, 2016 2:23 PM
  • I'm running VS Professional 2015 with Updates on Windows Server 2012 R2.

    Below is the output after issuing the command msbuild <project.vsproj> /p:configuration=release /p:platform=x64:

    Microsoft (R) Build Engine version 14.0.25123.0
    Copyright (C) Microsoft Corporation. All rights reserved.

    Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
    Build started 4/12/2016 7:54:48 AM.
    Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\toaster.sln" on node 1 (default targets).
    ValidateSolutionConfiguration:
      Building solution configuration "release|x64".
    Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\toaster.sln" (1) is building "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\Package\package.VcxProj" (2) on node 1 (default targets).
    Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\Package\package.VcxProj" (2) is building "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\coinstaller\tostrco1.vcxproj" (3) on node 1 (default targets).
    DriverBuildNotifications:
      Building 'tostrco1' with toolset 'WindowsApplicationForDrivers10.0' and the 'Desktop' target platform.
    InitializeBuildStatus:
      Creating "x64\Release\tostrco1.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
    ClCompile:
      All outputs are up-to-date.
    Link:
      All outputs are up-to-date.
      tostrco1.vcxproj -> C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\coinstaller\x64\Release\OmsPciCoInstaller.dll
    FinalizeBuildStatus:
      Deleting file "x64\Release\tostrco1.tlog\unsuccessfulbuild".
      Touching "x64\Release\tostrco1.tlog\tostrco1.lastbuildstate".
    Done Building Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\coinstaller\tostrco1.vcxproj" (default targets).
    Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\Package\package.VcxProj" (2) is building "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj" (4) on node 1 (default targets).
    DriverBuildNotifications:
      Building 'omspci1' with toolset 'WindowsKernelModeDriver10.0' and the 'Desktop' target platform.
      Using KMDF 1.11.
    InitializeBuildStatus:
      Creating "x64\Release\omspci1.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
    StampInf:
      C:\Program Files (x86)\Windows Kits\10\bin\x86\stampinf.exe -d "*" -a "amd64" -v "*" -k "1.11" -f x64\Release\OMSPCI.inf
      Copying "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\OMSPCI.INF" to "x64\Release\OMSPCI.inf" for stamping
      Stamping x64\Release\OMSPCI.inf [Version] section with DriverVer=04/12/2016,7.54.49.412
      Copying file from "x64\Release\OMSPCI.inf" to "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\x64\Release\OMSPCI.inf".
    C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\OMSPCI.INF(31-31): warning 2223: Section [OmsModelSection] should have '.NTx86' decoration. [C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj]
    ClCompile:
      All outputs are up-to-date.
    ResourceCompile:
      All outputs are up-to-date.
    Link:
      All outputs are up-to-date.
      omspci1.vcxproj -> C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\x64\Release\omspci1.sys
    Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj" (4) is building "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj" (4:2) on node 1 (TestSign target(s)).
    TestSign:
      The driver will be test-signed. Driver signing options can be changed from the project properties.
      Sign Inputs: C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\x64\Release\omspci1.sys
      All outputs are up-to-date.
    Done Building Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj" (TestSign target(s)).
    FinalizeBuildStatus:
      Deleting file "x64\Release\omspci1.tlog\unsuccessfulbuild".
      Touching "x64\Release\omspci1.tlog\omspci1.lastbuildstate".
    Done Building Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj" (default targets).
    DriverBuildNotifications:
      Building 'package' with toolset 'WindowsKernelModeDriver10.0' and the 'Desktop' target platform.
      Using KMDF 1.15.
    InitializeBuildStatus:
      Creating "x64\Release\package.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
    FinalizeBuildStatus:
      Deleting file "x64\Release\package.tlog\unsuccessfulbuild".
      Touching "x64\Release\package.tlog\package.lastbuildstate".
    DriverPackageTarget:
      Packaging up the following projects for the following configurations:
     
      ..\coinstaller\tostrco1.vcxproj Configuration='Release' Platform='x64'
     
      ..\omspci1\omspci1.vcxproj Configuration='Release' Platform='x64'
     
     
      The following files will be packaged:
     
      File to package:      C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\coinstaller\x64\Release\OmsPciCoInstaller.dll.
      Location in Package:  \OmsPciCoInstaller.dll.
      Requested by project: C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\coinstaller\tostrco1.vcxproj
     
     
      File to package:      C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\x64\Release\omspci1.sys.
      Location in Package:  \omspci1.sys.
      Requested by project: C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj
     
     
      File to package:      C:\Program Files (x86)\Windows Kits\10\redist\wdf\x64\WdfCoinstaller01011.dll.
      Location in Package:  \WdfCoinstaller01011.dll.
      Requested by project: C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj
     
     
      File to package:      C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\x64\Release\OMSPCI.inf.
      Location in Package:  \OMSPCI.inf.
      Requested by project: C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj
     
     
      Copying file from "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\x64\Release\OMSPCI.inf" to "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\x64\Release\package\\OMSPCI.inf".
    Inf2Cat:
      C:\Program Files (x86)\Windows Kits\10\bin\x86\inf2cat.exe /os:10_x64 /driver:C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\x64\Release\package\
      ...........................
      Signability test complete.
     
      Errors:
      None
     
      Warnings:
      None
     
      Catalog generation complete.
      C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\x64\Release\package\omspci.cat
    Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\Package\package.VcxProj" (2) is building "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\Package\package.VcxProj" (2:2) on node 1 (TestSign target(s)).
    TestSign:
      The driver package will be test-signed. Driver signing options can be changed from the project properties.
      Sign Inputs: C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\x64\Release\package\omspci.cat
      C:\Program Files (x86)\Windows Kits\10\bin\x86\signtool.exe sign /ph /sha1 "B4A2F6DE2972FCB8A9311BE10246D864D0781528"
      Done Adding Additional Store
      Successfully signed: C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\x64\Release\package\omspci.cat
     
      Certificate used for signing: issued to = WDKTestCert eargre,131012616372857370 and thumbprint = B4A2F6DE2972FCB8A9311BE10246D864D0781528
      Exported Certificate: C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\x64\Release\package.cer
    Done Building Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\Package\package.VcxProj" (TestSign target(s)).
    Done Building Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\Package\package.VcxProj" (default targets).
    Done Building Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\toaster.sln" (default targets).

    Build succeeded.

    "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\toaster.sln" (default target) (1) ->
    "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\Package\package.VcxProj" (default target) (2) ->
    "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj" (default target) (4) ->
    (InfVerif target) ->
      C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\OMSPCI.INF(31-31): warning 2223: Section [OmsModelSection] should have '.NTx86' decoration. [C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj]

        1 Warning(s)
        0 Error(s)

    Time Elapsed 00:00:02.12

    Below is the output after issuing the command msbuild <project.vsproj> /p:configuration=release /p:platform=x64 /t:sdv /p:inputs="/clean":

    Microsoft (R) Build Engine version 14.0.25123.0
    Copyright (C) Microsoft Corporation. All rights reserved.

    Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
    Build started 4/12/2016 7:56:41 AM.
    Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\toaster.sln" on node 1 (sdv target(s)).
    ValidateSolutionConfiguration:
      Building solution configuration "release|x64".
    C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\toaster.sln.metaproj : error MSB4057: The target "sdv" does not exist in the project. [C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\toaster.sln]
    Done Building Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\toaster.sln" (sdv target(s)) -- FAILED.

    Build FAILED.

    "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\toaster.sln" (sdv target) (1) ->
      C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\toaster.sln.metaproj : error MSB4057: The target "sdv" does not exist in the project. [C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\toaster.sln]

        0 Warning(s)
        1 Error(s)

    Time Elapsed 00:00:00.06

    Below is the output after issuing the command msbuild <project.vsproj> /p:configuration=release /p:platform=x64 /t:sdv /p:inputs="/check:*"

    Microsoft (R) Build Engine version 14.0.25123.0
    Copyright (C) Microsoft Corporation. All rights reserved.

    Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
    Build started 4/12/2016 7:57:47 AM.
    Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\toaster.sln" on node 1 (sdv target(s)).
    ValidateSolutionConfiguration:
      Building solution configuration "release|x64".
    C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\toaster.sln.metaproj : error MSB4057: The target "sdv" does not exist in the project. [C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\toaster.sln]
    Done Building Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\toaster.sln" (sdv target(s)) -- FAILED.

    Build FAILED.

    "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\toaster.sln" (sdv target) (1) ->
      C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\toaster.sln.metaproj : error MSB4057: The target "sdv" does not exist in the project. [C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\toaster.sln]

        0 Warning(s)
        1 Error(s)

    Time Elapsed 00:00:00.07

    I attempted to upload the text files that I piped these commands to but I could not find an option for including the text files here, if there is a way you can let me know.

    I hope this is of benefit to you!

    Thank You

    Tuesday, April 12, 2016 3:12 PM
  • As a note, I also tried this from the command line on the driver project file rather than the solution file and received similar SDV related errors. 

    Shown below is the output of the command msbuild omspci1.vcxproj /p:configuration=release /p:platform=x64 > OutputCommand4.txt:

    Microsoft (R) Build Engine version 14.0.25123.0
    Copyright (C) Microsoft Corporation. All rights reserved.

    Build started 4/12/2016 9:24:35 AM.
    Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj" on node 1 (default targets).
    DriverBuildNotifications:
      Building 'omspci1' with toolset 'WindowsKernelModeDriver10.0' and the 'Desktop' target platform.
      Using KMDF 1.11.
    InitializeBuildStatus:
      Creating "x64\release\omspci1.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
    StampInf:
      C:\Program Files (x86)\Windows Kits\10\bin\x86\stampinf.exe -d "*" -a "amd64" -v "*" -k "1.11" -f x64\release\OMSPCI.inf
      Copying "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\OMSPCI.INF" to "x64\release\OMSPCI.inf" for stamping
      Stamping x64\release\OMSPCI.inf [Version] section with DriverVer=04/12/2016,9.24.35.843
    C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\OMSPCI.INF(31-31): warning 2223: Section [OmsModelSection] should have '.NTx86' decoration. [C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj]
    ClCompile:
      All outputs are up-to-date.
    ResourceCompile:
      All outputs are up-to-date.
    Link:
      All outputs are up-to-date.
      omspci1.vcxproj -> C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\x64\release\omspci1.sys
    Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj" (1) is building "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj" (1:2) on node 1 (TestSign target(s)).
    TestSign:
      The driver will be test-signed. Driver signing options can be changed from the project properties.
      Sign Inputs: C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\x64\release\omspci1.sys
      All outputs are up-to-date.
    Done Building Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj" (TestSign target(s)).
    FinalizeBuildStatus:
      Deleting file "x64\release\omspci1.tlog\unsuccessfulbuild".
      Touching "x64\release\omspci1.tlog\omspci1.lastbuildstate".
    Done Building Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj" (default targets).

    Build succeeded.

    "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj" (default target) (1) ->
    (InfVerif target) ->
      C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\OMSPCI.INF(31-31): warning 2223: Section [OmsModelSection] should have '.NTx86' decoration. [C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj]

        1 Warning(s)
        0 Error(s)

    Time Elapsed 00:00:00.92

    Shown below is the output of the command msbuild omspci1.vcxproj /p:configuration=release /p:platform=x64 /t:sdv /p:inputs="/clean" > OutputCommand5.txt:

    Microsoft (R) Build Engine version 14.0.25123.0
    Copyright (C) Microsoft Corporation. All rights reserved.

    Build started 4/12/2016 9:24:25 AM.
    Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj" on node 1 (sdv target(s)).
    C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj : error MSB4057: The target "sdv" does not exist in the project.
    Done Building Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj" (sdv target(s)) -- FAILED.

    Build FAILED.

    "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj" (sdv target) (1) ->
      C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj : error MSB4057: The target "sdv" does not exist in the project.

        0 Warning(s)
        1 Error(s)

    Time Elapsed 00:00:00.29

    Shown below is the output of the command msbuild omspci1.vcxproj /p:configuration=release /p:platform=x64 /t:sdv /p:inputs="/check:*" > OutputCommand6.txt:

    Microsoft (R) Build Engine version 14.0.25123.0
    Copyright (C) Microsoft Corporation. All rights reserved.

    Build started 4/12/2016 9:23:53 AM.
    Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj" on node 1 (sdv target(s)).
    C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj : error MSB4057: The target "sdv" does not exist in the project.
    Done Building Project "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj" (sdv target(s)) -- FAILED.

    Build FAILED.

    "C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj" (sdv target) (1) ->
      C:\Users\eargre\Documents\PCIxWindowsDrivers_AfterUpgrade\Windows10\omspci1\omspci1.vcxproj : error MSB4057: The target "sdv" does not exist in the project.

        0 Warning(s)
        1 Error(s)

    Time Elapsed 00:00:00.31

    Tuesday, April 12, 2016 4:31 PM