I'm in the process of updating our KMDF driver build from Visual Studio
2015 and WDK 1703 to VS 2017 and WDK 1803 (running on Windows 10 1803),
and everything has gone well except that SDV keeps failing.
When I run SDV I get the following in smvbuild.log:
C:\Program Files (x86)\Microsoft Visual
error MSB6006: "Lib.exe" exited with code 1.
Done executing task "LIB" -- FAILED.
Done building target "Lib" in project "subproject.vcxproj" -- FAILED.
In sdv\smvlink1.log there's more information:
slamcl Warning: Important: File "c:\program files (x86)\windows
kits\10\include\10.0.17134.0\km\wdm.h", line 4557, function:
"ReadULongNoFence": SDV encountered an internal compiler error around
slamcl: error: at phase 2: Out of memory
slamcl error at translate' }
On each build, the filename and/or function mentioned on the warning
line changes. I've configured SDV-default.xml to use 1 thread and 2500MB
memory, and am out of ideas.
I read that having other versions of Visual Studio or the WDK installed
can cause problems, so I uninstalled VS 2015, WDK 1703 and the older
SDK. I also tried updating the target KMDF version in all the projects
from 1.11 to 1.19 and disabled LTCG but nothing changed. The machine
itself has 32GB RAM and 32 CPU threads (2 CPUs with 8 hyper-threaded