none
Static driver verifier fails post pass-2 link with code 1. RRS feed

  • Question

  • I'm attempting to run Static Driver Verifier in Visual Studio 2017 (15.9.11) and can't get past a link error.  I don't see build or link errors outside of SDV and I haven't been successful at finding the problem through toggling various debug output settings.  The first sign of trouble starts as follows:

        ...

           ntoskrnl.lib(ntoskrnl.exe)
           ntoskrnl.lib(ntoskrnl.exe)
           hal.lib(HAL.dll)
           hal.lib(HAL.dll)
           hal.lib(HAL.dll)
      Finished pass 2


    C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(720,5): error MSB6006: "link.exe" exited with code 1. [C:\D\Nvm\nvme-windows-driver\src\driver\mtinvme.vcxproj]
    Done executing task "Link" -- FAILED.
    Done building target "Link" in project "mtinvme.vcxproj" -- FAILED.
    Done Building Project "C:\D\Nvm\nvme-windows-driver\src\driver\mtinvme.vcxproj" (rebuild target(s)) -- FAILED.

    Monday, April 29, 2019 4:07 PM