none
Static Driver Verifier fails to build RRS feed

  • Question

  • I am trying to run the static driver verifier to get the "Static Tools Logo Test" to pass, but the SDV fails with the message

    "SDV encountered errors when building the driver".  The alert box contains the text 

    "

    EXEC : Build warning : C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5): error MSB3073: The command "cscript "C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\driverVersion.vbs" reset [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj] [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
    EXEC : Build warning : C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5): error MSB3073: :VCEnd" exited with code 1. [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj] [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
    EXEC : Build warning : C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5): error MSB3073: The command "cscript "C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\driverVersion.vbs" reset [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj] [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
    EXEC : Build warning : C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5): error MSB3073: :VCEnd" exited with code 1. [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj] [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
      EXEC : Build warning : C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5): error MSB3073: The command "cscript "C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\driverVersion.vbs" reset [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj] [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
      EXEC : Build warning : C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5): error MSB3073: :VCEnd" exited with code 1. [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj] [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
      EXEC : Build warning : C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5): error MSB3073: The command "cscript "C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\driverVersion.vbs" reset [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj] [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
      EXEC : Build warning : C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5): error MSB3073: :VCEnd" exited with code 1. [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj] [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
    C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter>cd /d "C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter"   && msbuild "pxdFilter.vcxproj" /t:sdv /p:inputs="/devenv /check" /p:configuration="Win8 Release" /p:platform="x64"  
    Microsoft (R) Build Engine version 4.0.30319.18408
    [Microsoft .NET Framework, version 4.0.30319.18408]
    Copyright (C) Microsoft Corporation. All rights reserved.
    Build started 1/3/2014 10:14:37 AM.
    Project "C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj" on node 1 (sdv target(s)).
    Sdv:
      staticdv.exe /devenv /check
      ---------------------------------------------------------------------
      Microsoft (R) Windows (R) Static Driver Verifier Version 3.0.483.0
      Copyright (C) Microsoft Corporation.  All rights reserved.
      ---------------------------------------------------------------------
      SDV is building for <Win8 Release|x64>
      The call to "Build" failed.




      SDV exit code: 3
      SDV encountered errors when building the driver.
    C:\Program Files (x86)\Windows Kits\8.0\build\WindowsDriver8.0.Sdv.targets(66,9): error MSB3073: The command "staticdv.exe /devenv /check" exited with code 3. [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
    Done Building Project "C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj" (sdv target(s)) -- FAILED.
    Build FAILED.
    "C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj" (sdv target) (1) ->
    (Sdv target) -> 
    "C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj" (sdv target) (1) ->
    (Sdv target) -> 
      C:\Program Files (x86)\Windows Kits\8.0\build\WindowsDriver8.0.Sdv.targets(66,9): error MSB3073: The command "staticdv.exe /devenv /check" exited with code 3. [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
        4 Warning(s)
        1 Error(s)
    Time Elapsed 00:00:02.25
    C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter>exit 0"

    but neither this or the sdv log files seem to contain the reason why.  

    If I manually run staticdv with the scan option it fails with error code 5 instead of 3, but doesn't offer much more.  Is there a way to make this more verbose?


            
    Friday, January 3, 2014 11:03 PM

All replies

  • Problem 1: The sdv seemed confused by the path to my project and couldn't find the driverVersion.vbs script.  Copying that to the expected directory and modifying it to adjust for the new path fixed half the problems.

    Problem 2:  The rc.exe utility apparently doesn't like spaces in paths, so changing the Visual Studio project root to not have spaces finally got this working.

    Monday, January 6, 2014 7:06 PM