msquic icon indicating copy to clipboard operation
msquic copied to clipboard

Build Windows Kernel on windows-2022 Image

Open nibanks opened this issue 4 years ago • 5 comments

nibanks avatar Sep 23 '21 12:09 nibanks

Marking as blocked as apparently there is no WDK compatible with Visual Studio 2022, which is the only one that windows-2022 machines have installed.

nibanks avatar Sep 24 '21 19:09 nibanks

Waiting on a new WDK that's compatible with WS2022.

nibanks avatar Sep 29 '21 12:09 nibanks

Still failing with:

##[error]C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(436,5): Error MSB8020: The build tools for WindowsKernelModeDriver10.0 (Platform Toolset = 'WindowsKernelModeDriver10.0') cannot be found. To build using the WindowsKernelModeDriver10.0 build tools, please install WindowsKernelModeDriver10.0 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".

nibanks avatar Nov 11 '21 12:11 nibanks

This is also blocked on deciding how to handle 32 bit kernel mode binaries. A WDK installed on the VS 2022 image will never support building 32 bit kernel drivers.

https://docs.microsoft.com/en-us/windows-hardware/drivers/installing-preview-versions-wdk

thhous-msft avatar Mar 04 '22 16:03 thhous-msft

Looks like this is still failing on the latest:

Project "D:\a\1\msquic\msquic.kernel.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "release|x64".
##[error]C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(440,5): Error MSB8020: The build tools for WindowsKernelModeDriver10.0 (Platform Toolset = 'WindowsKernelModeDriver10.0') cannot be found. To build using the WindowsKernelModeDriver10.0 build tools, please install WindowsKernelModeDriver10.0 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
Project "D:\a\1\msquic\msquic.kernel.sln" (1) is building "D:\a\1\msquic\src\platform\platform.kernel.vcxproj" (2) on node 1 (default targets).
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(440,5): error MSB8020: The build tools for WindowsKernelModeDriver10.0 (Platform Toolset = 'WindowsKernelModeDriver10.0') cannot be found. To build using the WindowsKernelModeDriver10.0 build tools, please install WindowsKernelModeDriver10.0 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [D:\a\1\msquic\src\platform\platform.kernel.vcxproj]
Done Building Project "D:\a\1\msquic\src\platform\platform.kernel.vcxproj" (default targets) -- FAILED.

nibanks avatar Jun 04 '22 14:06 nibanks

Really weird. When we build on Windows-2022 images, we can't actually run on Windows-2022 images. The driver fails to start. It does successfully run on our "latest" images.

And it seems out tests don't grab logs if we fail to start the driver.

nibanks avatar Oct 13 '22 14:10 nibanks

It's claiming a service dependency failed?

[Microsoft-Quic][ lib] ERROR, 1068, StartService failed.

Which is ERROR_SERVICE_DEPENDENCY_FAIL.

nibanks avatar Oct 13 '22 16:10 nibanks

Fixing with #3699.

nibanks avatar Jun 14 '23 14:06 nibanks