<div dir="ltr"><div>Thanks, I'll try these new steps and check what the default compiler is (according to meson). </div><div><br></div><div>What should the name of the msvc compiler be (in meson)? I'm guessing it's not Clang, hah. Anyhow, I recall we can override this with environment variables if we need to. </div><div><br></div><div>Thanks.</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Nov 11, 2025 at 8:13 PM Andre Muezerie <<a href="mailto:andremue@linux.microsoft.com">andremue@linux.microsoft.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Nov 10, 2025 at 03:14:54PM -0800, Patrick Robb wrote:<br>
> Hi Andre,<br>
> <br>
> At the DPDK Community Lab we are setting up a new windows build machine,<br>
> which is a windows server 2025 VM. When this is ready we will retire our<br>
> windows server 2022 VM which is running in CI currently.<br>
> <br>
> We also want to ensure that the new machine is picking up devx in the build<br>
> per <a href="https://doc.dpdk.org/guides/platform/mlx5.html" rel="noreferrer" target="_blank">https://doc.dpdk.org/guides/platform/mlx5.html</a><br>
> <br>
> And we want to support the 3 compiler toolchains explained here:<br>
> <a href="https://doc.dpdk.org/guides/windows_gsg/" rel="noreferrer" target="_blank">https://doc.dpdk.org/guides/windows_gsg/</a><br>
> <br>
> First, I'll note that we are able to build DPDK, including mlnx devx inc<br>
> and lib successfully with Clang. So, that toolchain is all set.<br>
> <br>
> However, we also want to do a native build on Windows using MSVC. Per the<br>
> instructions from the page above, we are following this procedure:<br>
> <br>
> 1. Open Powershell<br>
> 2. Launch VsDevCmd.bat<br>
> 3. meson setup with -Dstd_atomic=true<br>
> 4. Build DPDK<br>
> <br>
> However, when I run meson setup, it indicates that Clang is the compiler.<br>
> This is incorrect, right? Do I need to modify an env variable to set the<br>
> compiler to MSVC? Here is the start of the meson setup if that helps<br>
> clarify the situation:<br>
> <br>
> PS C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools><br>
> ./VsDevCmd.bat -arch=amd64<br>
> **********************************************************************<br>
> ** Visual Studio 2022 Developer Command Prompt v17.14.17<br>
> ** Copyright (c) 2025 Microsoft Corporation<br>
> **********************************************************************<br>
> PS C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools><br>
> cd /<br>
> PS C:\> cd .\Users\<br>
> PS C:\Users> cd .\Administrator\<br>
> PS C:\Users\Administrator> cd .\Documents\<br>
> PS C:\Users\Administrator\Documents> cd .\dpdk-new\<br>
> PS C:\Users\Administrator\Documents\dpdk-new> meson setup<br>
> -Denable_stdatomic=true build38<br>
> The Meson build system<br>
> Version: 1.9.1<br>
> Source dir: C:\Users\Administrator\Documents\dpdk-new<br>
> Build dir: C:\Users\Administrator\Documents\dpdk-new\build38<br>
> Build type: native build<br>
> Project name: DPDK<br>
> Project version: 25.11.0-rc1<br>
> C compiler for the host machine: clang (clang 17.0.1 "clang version 17.0.1")<br>
> C linker for the host machine: clang link 14.44.35217.0<br>
> Host machine cpu family: x86_64<br>
> <br>
> <br>
> <br>
> Do you see any errors in my setup? Thanks Andre.<br>
> <br>
> -- <br>
> <br>
> Patrick Robb<br>
> <br>
> Open Source Labs Manager<br>
> <br>
> UNH Interoperability Labs<br>
> <br>
> 21 Madbury Rd, Suite 100, Durham, NH 03824<br>
> <br>
> <a href="http://www.iol.unh.edu" rel="noreferrer" target="_blank">www.iol.unh.edu</a><br>
<br>
<br>
Hi Patrick,<br>
<br>
I'm glad to hear that a Windows Server 2025 VM will be used to build DPDK using<br>
the 3 compilers.<br>
<br>
Good catch in finding that issue with the build. I never hit that because I always<br>
use CMD instead of Powershell, but I see that the link mentioned in the<br>
documentation might induce people to run the .bat script from PS. I'll fix that.<br>
<br>
To get things working, this is my recommendation: just replace step (1) with:<br>
<br>
1. Open cmd<br>
<br>
Alternatively, if you really want to use Powershell you can call a PS flavor of<br>
that script:<br>
<br>
1. Open Powershell<br>
2. & "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\Launch-VsDevShell.ps1" -HostArch amd64 -Arch amd64<br>
<br>
You might have to fix the location where the script is stored. It's stored in<br>
the same location as VsDevCmd.bat.<br>
<br>
After making this change please confirm the correct compiler is called, like you did before.<br>
<br>
Thanks,<br>
<br>
Andre Muezerie<br>
</blockquote></div></div>