SDV error: The cflags property in Sdv_Srcfiles.xml is empty RRS feed

  • Question

  • When I try to run SDV (via msbuild or GUI) I end up with the following error:

        "The cflags property in Sdv_Srcfiles.xml is empty."

    I can't make sense of it, there doesn't even seem to be a Sdv_Srcfiles.xml.

    C:\Users\edho\TTTech\code\Windows\vs\knl-pci>msbuild knl-pci.vcxproj /p:Configur
    ation="Win7 Release" /p:Platform="x64" /t:sdv /p:Inputs="/check:*"
    Microsoft (R) Build Engine version 12.0.21005.1
    [Microsoft .NET Framework, version 4.0.30319.34209]
    Copyright (C) Microsoft Corporation. All rights reserved.
    Build started 25.06.2015 16:19:05.
    Project "C:\Users\edho\TTTech\code\Windows\vs\knl-pci\knl-pci.vcxproj" on node
    1 (sdv target(s)).
      staticdv.exe /check:*
      Microsoft (R) Windows (R) Static Driver Verifier Version 4.0.500.1
      Copyright (C) Microsoft Corporation.  All rights reserved.
      SDV is building for <Win7 Release|x64>
      Build     'knl-pci'  ...Done
      The cflags property in Sdv_Srcfiles.xml is empty.
    C:\Program Files (x86)\Windows Kits\8.1\build\windowsdriver.Sdv.targets(65,9):
    error MSB3073: The command "staticdv.exe /check:*" exited with code -1. [C:\Use
    Done Building Project "C:\Users\edho\TTTech\code\Windows\vs\knl-pci\knl-pci.vcx
    proj" (sdv target(s)) -- FAILED.
    Build FAILED.
    "C:\Users\edho\TTTech\code\Windows\vs\knl-pci\knl-pci.vcxproj" (sdv target) (1)
    (sdv target) ->
      C:\Program Files (x86)\Windows Kits\8.1\build\windowsdriver.Sdv.targets(65,9)
    : error MSB3073: The command "staticdv.exe /check:*" exited with code -1. [C:\U
        0 Warning(s)
        1 Error(s)
    Time Elapsed 00:00:04.64

    Thursday, June 25, 2015 2:30 PM

All replies

  • Thanks for reporting this issue. One possible workaround is to make sure that in the Project file, filenames in the ClCompile ItemGroup should not have full paths, i.e., are relative. 

    For deeper investigation, could you please provide us with a minimal repro? Please make sure to remove any IP.



    Thursday, July 2, 2015 8:43 PM
  • I'm also getting the same error, while running the SDV. I'm not using the following relative paths in my project file.

        <ClCompile Include="MyDriver.c" />
        <ClCompile Include="Temper.c" />
        <ClCompile Include="Loader.c" />
        <ClCompile Include="Utiler.c" />

    I've also tried searching for the Sdv_Srcfiles.xml file, but to no avail as it isn't present on the system.

    C:\Users\admin> dir /s /b C:\ | findstr "Sdv_Srcfiles.xml"

    My source directory contains the following files, which are related to the SDV.

    C:\Users\admin> dir *sdv*
    01/10/2017  04:58 PM               185 runsdvui.cmd
    01/10/2017  05:26 PM    <DIR>          sdv
    01/10/2017  05:12 PM             1,543 SDV-default.xml
    01/10/2017  04:58 PM                11 sdv-user.sdv
    01/10/2017  05:25 PM    <DIR>          sdv.temp

    Any ideas what I should do to fix this issue?

    Tuesday, January 10, 2017 4:32 PM