From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E98ED48AE3; Wed, 12 Nov 2025 22:31:53 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C07CB402F0; Wed, 12 Nov 2025 22:31:53 +0100 (CET) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mails.dpdk.org (Postfix) with ESMTP id 5B12740151 for ; Wed, 12 Nov 2025 22:31:52 +0100 (CET) Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-2956d816c10so1074135ad.1 for ; Wed, 12 Nov 2025 13:31:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1762983111; x=1763587911; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=lSnsrzi5lkXH5y5xzx8+RktO5H+hgExN31uWyVEomWw=; b=XleUyqLegGg42gmf1j8h0OsNf7J5TnSEHjPuam2u8Jw4ls/UNscITi/KU4gPNHuLvA vp7o0zFgKPlseSu4eafwgOkOQ082SRK/cgu9pEnQtDAcEYEw10/W9mjkZ27csoU+YSG6 S1kuMW8To5U1iVqBAxsrGnTQrULWj6qFklj1o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762983111; x=1763587911; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lSnsrzi5lkXH5y5xzx8+RktO5H+hgExN31uWyVEomWw=; b=Casv6e9dVeJxegRO14043IKeN9arlMtIgew+RjH9++fojbmjvjmfWz+qMKegi+ubmm YSbp1XeX7/CCdjILGdHvlcthMzIHvosk0Q0LbfsWPOvT8Zgr5rIF2KMOr3NR35vO8VHJ OgXh1MnPhqIZ5vVzwX/DoOV2MyfaFkB86izo8PdB7xxoefViAyp2Smyrc/4uoc8OrYra wK4fpS6W8Hg2vKuwaHm+7OhEJJoO985hSIRRQFbolu4A7xilJeEa4RUQ9cMVf+KTnoWw THbwLlQaPkLqDosxKkbdUe32gxMcebXb8ka9qS+SjcBcxuv4oRZlxNjOoV6TdZcpk0YD whjw== X-Forwarded-Encrypted: i=1; AJvYcCUf9NMeJ6SDXKGvHNrOmZrwWxoFKRetsjGPkar2UZ3NrHa+G1nu/CcDUUHbVrau5I9CAA==@dpdk.org X-Gm-Message-State: AOJu0Yyse6dvDGK48NPh95R7Z31ROieheXs4RwcJ7Ab7wV3kYguZ+ccs Oa12GGwKR2UNC6Yd6WRW1+KIQ9e6D+aMJRBh+bPATQRA+y+KNigmAn7nmw1rkicUNlPxRkMOfDn HYYTNGz3mibZ8BMb9bdXMJnCNd4LGjLSETdTrCtc7oQv71Oda7x6h9ig= X-Gm-Gg: ASbGncvdjMo/eZWUXghI07CA//6j7KzhqR4KAc7aBCjqEWBiTlWnzpiLPURocmWOfnf qfuISsFgZBds1UZdqVH+raDUqiNN+yixeQaVHOddDpomJIaHFACTdEaodtOmr2UKaUesiS/PSYd MbS0uqGYq2Kse6UsRUTtDJdAQrnt5vK5FRIL4KRtuhdHrOaDJ2ZSpg5/QO1GL3pS1O6DfxxeQDR s14JKmRyAq6GV3XUQsCFLRurvCSpi0X/pFsT/7moO/I3p3hNl6p+aUI2n2BzCZSqQrlKPjsdGs= X-Google-Smtp-Source: AGHT+IF6es+pG8R67t8RN5c3Oow8ajFL2AwoXAeLzQPtPmIkCa8zZwMc9krHHnOGB0bGRK1oClaU8T3rvofjIK3F93Q= X-Received: by 2002:a17:903:11c4:b0:298:90f:5b01 with SMTP id d9443c01a7336-2984ee21128mr49636445ad.52.1762983111322; Wed, 12 Nov 2025 13:31:51 -0800 (PST) MIME-Version: 1.0 References: <20251112011352.GA5495@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> In-Reply-To: <20251112011352.GA5495@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> From: Patrick Robb Date: Wed, 12 Nov 2025 16:30:37 -0500 X-Gm-Features: AWmQ_bni8iZ8w3FA4kWRq5X0-haronzvA8hIcPTdETlKH1PoUOCxo3-s2jqpXvo Message-ID: Subject: Re: [*SPAM*] Windows DPDK Build Help To: Andre Muezerie Cc: Andrew Bailey , ci@dpdk.org Content-Type: multipart/alternative; boundary="000000000000187b3306436c7e68" X-BeenThere: ci@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK CI discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ci-bounces@dpdk.org --000000000000187b3306436c7e68 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks, I'll try these new steps and check what the default compiler is (according to meson). 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. Thanks. On Tue, Nov 11, 2025 at 8:13=E2=80=AFPM Andre Muezerie wrote: > On Mon, Nov 10, 2025 at 03:14:54PM -0800, Patrick Robb wrote: > > Hi Andre, > > > > At the DPDK Community Lab we are setting up a new windows build machine= , > > which is a windows server 2025 VM. When this is ready we will retire ou= r > > windows server 2022 VM which is running in CI currently. > > > > We also want to ensure that the new machine is picking up devx in the > build > > per https://doc.dpdk.org/guides/platform/mlx5.html > > > > And we want to support the 3 compiler toolchains explained here: > > https://doc.dpdk.org/guides/windows_gsg/ > > > > First, I'll note that we are able to build DPDK, including mlnx devx in= c > > and lib successfully with Clang. So, that toolchain is all set. > > > > However, we also want to do a native build on Windows using MSVC. Per t= he > > instructions from the page above, we are following this procedure: > > > > 1. Open Powershell > > 2. Launch VsDevCmd.bat > > 3. meson setup with -Dstd_atomic=3Dtrue > > 4. Build DPDK > > > > However, when I run meson setup, it indicates that Clang is the compile= r. > > This is incorrect, right? Do I need to modify an env variable to set th= e > > compiler to MSVC? Here is the start of the meson setup if that helps > > clarify the situation: > > > > PS C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tool= s> > > ./VsDevCmd.bat -arch=3Damd64 > > ********************************************************************** > > ** Visual Studio 2022 Developer Command Prompt v17.14.17 > > ** Copyright (c) 2025 Microsoft Corporation > > ********************************************************************** > > PS C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tool= s> > > cd / > > PS C:\> cd .\Users\ > > PS C:\Users> cd .\Administrator\ > > PS C:\Users\Administrator> cd .\Documents\ > > PS C:\Users\Administrator\Documents> cd .\dpdk-new\ > > PS C:\Users\Administrator\Documents\dpdk-new> meson setup > > -Denable_stdatomic=3Dtrue build38 > > The Meson build system > > Version: 1.9.1 > > Source dir: C:\Users\Administrator\Documents\dpdk-new > > Build dir: C:\Users\Administrator\Documents\dpdk-new\build38 > > Build type: native build > > Project name: DPDK > > Project version: 25.11.0-rc1 > > C compiler for the host machine: clang (clang 17.0.1 "clang version > 17.0.1") > > C linker for the host machine: clang link 14.44.35217.0 > > Host machine cpu family: x86_64 > > > > > > > > Do you see any errors in my setup? Thanks Andre. > > > > -- > > > > Patrick Robb > > > > Open Source Labs Manager > > > > UNH Interoperability Labs > > > > 21 Madbury Rd, Suite 100, Durham, NH 03824 > > > > www.iol.unh.edu > > > Hi Patrick, > > I'm glad to hear that a Windows Server 2025 VM will be used to build DPDK > using > the 3 compilers. > > Good catch in finding that issue with the build. I never hit that because > I always > use CMD instead of Powershell, but I see that the link mentioned in the > documentation might induce people to run the .bat script from PS. I'll fi= x > that. > > To get things working, this is my recommendation: just replace step (1) > with: > > 1. Open cmd > > Alternatively, if you really want to use Powershell you can call a PS > flavor of > that script: > > 1. Open Powershell > 2. & "C:\Program Files\Microsoft Visual > Studio\2022\Enterprise\Common7\Tools\Launch-VsDevShell.ps1" -HostArch amd= 64 > -Arch amd64 > > You might have to fix the location where the script is stored. It's store= d > in > the same location as VsDevCmd.bat. > > After making this change please confirm the correct compiler is called, > like you did before. > > Thanks, > > Andre Muezerie > --000000000000187b3306436c7e68 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, I'll try these new steps=C2=A0and check w= hat the default compiler is (according to meson).=C2=A0

What should the name of the msvc=C2=A0compiler be (in meson)? I'm= guessing it's not Clang, hah. Anyhow, I recall we can override this wi= th environment variables if we need to.=C2=A0

Than= ks.

On Tue, Nov 11, 2025 at 8:13=E2=80=AFPM Andre Muez= erie <andremue@linux.mic= rosoft.com> wrote:
On Mon, Nov 10, 2025 at 03:14:54PM -0800, Patrick Robb wrote: > Hi Andre,
>
> At the DPDK Community Lab we are setting up a new windows build machin= e,
> which is a windows server 2025 VM. When this is ready we will retire o= ur
> windows server 2022 VM which is running in CI currently.
>
> We also want to ensure that the new machine is picking up devx in the = build
> per https://doc.dpdk.org/guides/platform/mlx5.htm= l
>
> And we want to support the 3 compiler toolchains explained here:
> https://doc.dpdk.org/guides/windows_gsg/
>
> First, I'll note that we are able to build DPDK, including mlnx de= vx inc
> and lib successfully with Clang. So, that toolchain is all set.
>
> However, we also want to do a native build on Windows using MSVC. Per = the
> instructions from the page above, we are following this procedure:
>
> 1. Open Powershell
> 2. Launch VsDevCmd.bat
> 3. meson setup with -Dstd_atomic=3Dtrue
> 4. Build DPDK
>
> However, when I run meson setup, it indicates that Clang is the compil= er.
> This is incorrect, right? Do I need to modify an env variable to set t= he
> compiler to MSVC? Here is the start of the meson setup if that helps > clarify the situation:
>
> PS C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Too= ls>
> ./VsDevCmd.bat -arch=3Damd64
> **********************************************************************=
> ** Visual Studio 2022 Developer Command Prompt v17.14.17
> ** Copyright (c) 2025 Microsoft Corporation
> **********************************************************************=
> PS C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Too= ls>
> cd /
> PS C:\> cd .\Users\
> PS C:\Users> cd .\Administrator\
> PS C:\Users\Administrator> cd .\Documents\
> PS C:\Users\Administrator\Documents> cd .\dpdk-new\
> PS C:\Users\Administrator\Documents\dpdk-new> meson setup
> -Denable_stdatomic=3Dtrue build38
> The Meson build system
> Version: 1.9.1
> Source dir: C:\Users\Administrator\Documents\dpdk-new
> Build dir: C:\Users\Administrator\Documents\dpdk-new\build38
> Build type: native build
> Project name: DPDK
> Project version: 25.11.0-rc1
> C compiler for the host machine: clang (clang 17.0.1 "clang versi= on 17.0.1")
> C linker for the host machine: clang link 14.44.35217.0
> Host machine cpu family: x86_64
>
>
>
> Do you see any errors in my setup? Thanks Andre.
>
> --
>
> Patrick Robb
>
> Open Source Labs Manager
>
> UNH Interoperability Labs
>
> 21 Madbury Rd, Suite 100, Durham, NH 03824
>
> www.iol.unh.edu


Hi Patrick,

I'm glad to hear that a Windows Server 2025 VM will be used to build DP= DK using
the 3 compilers.

Good catch in finding that issue with the build. I never hit that because I= always
use CMD instead of Powershell, but I see that the link mentioned in the
documentation might induce people to run the .bat script from PS. I'll = fix that.

To get things working, this is my recommendation: just replace step (1) wit= h:

1. Open cmd

Alternatively, if you really want to use Powershell you can call a PS flavo= r of
that script:

1. Open Powershell
2. & "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Com= mon7\Tools\Launch-VsDevShell.ps1" -HostArch amd64 -Arch amd64

You might have to fix the location where the script is stored. It's sto= red in
the same location as VsDevCmd.bat.

After making this change please confirm the correct compiler is called, lik= e you did before.

Thanks,

Andre Muezerie
--000000000000187b3306436c7e68--