visual-c++ - 带有驱动程序项目的静态驱动程序验证程序:InterceptedBuild 阶段出现不可恢复的错误
问题描述
在我运行以下命令后:
msbuild /p:Configuration=Win8_Release /p:Platform=x64 /t:sdv /p:inputs="/check /debug"
我在 smvbuild.log 中收到以下错误:
Task "Link"
C:\Program Files (x86)\Windows Kits\10\TOOLS\SDV\smv\bin\link.exe /ERRORREPORT:QUEUE /OUT:"C:\BEXbuild\build\builder\WindowsCJ_win10SDK_v142\src\VOLFLT\x64\Win8_Release\BexWinCj.sys" /VERSION:"10.0" /INCREMENTAL:NO /NOLOGO /WX /SECTION:"INIT,d" "C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\km\x64\BufferOverflowFastFailK.lib" "C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\km\x64\ntoskrnl.lib" "C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\km\x64\hal.lib" "C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\km\x64\wmilib.lib" "C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\km\x64\BufferOverflowFastFailK.lib" "C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\km\x64\ntoskrnl.lib" "C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\km\x64\hal.lib" "C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\km\x64\wmilib.lib" /NODEFAULTLIB /MANIFEST:NO /DEBUG /PDB:"C:\BEXbuild\build\builder\WindowsCJ_win10SDK_v142\src\VOLFLT\x64\Win8_Release\BexWinCj.pdb" /SUBSYSTEM:NATIVE,"10.00" /Driver /OPT:REF /OPT:ICF /ENTRY:"GsDriverEntry" /RELEASE /IMPLIB:"C:\BEXbuild\build\builder\WindowsCJ_win10SDK_v142\src\VOLFLT\x64\Win8_Release\BexWinCj.lib" /MERGE:"_TEXT=.text;_PAGE=PAGE" /MACHINE:X64 /PROFILE /guard:cf /kernel /IGNORE:4198,4010,4037,4039,4065,4070,4078,4087,4089,4221,4108,4088,4218,4218,4235 /osversion:10.0 /pdbcompress /debugtype:pdata C:\BEXbuild\build\builder\WindowsCJ_win10SDK_v142\src\VOLFLT\x64\Win8_Release\CjMessage.res
C:\BEXbuild\build\builder\WindowsCJ_win10SDK_v142\src\VOLFLT\x64\Win8_Release\CjConfigMgr.obj
C:\BEXbuild\build\builder\WindowsCJ_win10SDK_v142\src\VOLFLT\x64\Win8_Release\CjController.obj
C:\BEXbuild\build\builder\WindowsCJ_win10SDK_v142\src\VOLFLT\x64\Win8_Release\CjJournalMgr.obj
C:\BEXbuild\build\builder\WindowsCJ_win10SDK_v142\src\VOLFLT\x64\Win8_Release\CjMain.obj
C:\BEXbuild\build\builder\WindowsCJ_win10SDK_v142\src\VOLFLT\x64\Win8_Release\CjUtility.obj
C:\BEXbuild\build\builder\WindowsCJ_win10SDK_v142\src\VOLFLT\x64\Win8_Release\CjVolfilter.obj
Unhandled Exception: System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at SmvInterceptorWrapper.Program.Main(String[] args)
我检查了链接命令中的文件,它们都存在。有谁知道如何处理这个 SDV InterceptedBuild 错误?
解决方案
我也遇到过这个。按照http://answers.flyppdevportal.com/MVC/Post/Thread/fa1eac9a-7231-41c9-9bbf-9f929dbfe75c?category=wdk的建议,升级到 VS2019 v16.6,问题已解决。
推荐阅读
- flutter - 防病毒软件将 dart.exe 标记为勒索软件
- r - 我想在我的数据框中添加一个日期列。日期列需要自动填充列的全长
- vb.net - 运行此代码时为什么我的文本框中没有显示任何内容的任何原因?
- python - 获取具有两个特定关键字的行
- java - How JVM manages memory for methods?
- hyperledger-fabric - 为什么我在运行 Hyperledger Explorer 后看到双行
- cloud9-ide - 寻找基于云的 ide/ide,我可以在其中设置 apache-superset 进行开发
- sql - 如何查询所有仅具有最高值的不同行?
- ios - 列的子项不得包含任何空值,但在索引 0 处找到空值
- excel - 删除 excel 中为 3 位数字生成的组合中的重复项