Skip to content

Runtime-extra-platforms failing in DNNE compilation #127414

Closed

Description

@MichalStrehovsky
Building native export: "C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Tools\MSVC\14.51.36014\bin\HostArm64\arm64\cl.exe" /O2 /LD /TC /MT /GS /Zi /D DNNE_ASSEMBLY_NAME=Microsoft.Interop.Tests.NativeExports /D DNNE_COMPILE_AS_SOURCE /I "C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Tools\MSVC\14.51.36014\include" /I "D:\a\_work\1\s\.packages\dnne\2.1.1\tools\platform" /I "D:\a\_work\1\s\.packages\microsoft.netcore.app.host.win-arm64\11.0.0-preview.3.26170.106\runtimes\win-arm64\native" /I "C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\shared" /I "C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um" /I "C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt"  "D:\a\_work\1\s\artifacts\obj\NativeExports\Release\net11.0\win-arm64\dnne\Microsoft.Interop.Tests.NativeExports.g.c" "D:\a\_work\1\s\.packages\dnne\2.1.1\tools\platform\platform.c" /link /DLL /LIBPATH:"C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Tools\MSVC\14.51.36014\lib\arm64" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\um\arm64" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\ucrt\arm64" "D:\a\_work\1\s\.packages\microsoft.netcore.app.host.win-arm64\11.0.0-preview.3.26170.106\runtimes\win-arm64\native\libnethost.lib" Advapi32.lib /IGNORE:4099 /IMPLIB:"D:\a\_work\1\s\artifacts\obj\NativeExports\Release\net11.0\win-arm64\dnne\bin\Microsoft.Interop.Tests.NativeExportsNE.lib" /OUT:"D:\a\_work\1\s\artifacts\obj\NativeExports\Release\net11.0\win-arm64\dnne\bin\Microsoft.Interop.Tests.NativeExportsNE.dll" 
  '"C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Tools\MSVC\14.51.36014\bin\HostArm64\arm64\cl.exe"' is not recognized as an internal or external command,
  operable program or batch file.
##[error].packages\dnne\2.1.1\build\DNNE.targets(257,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Tools\MSVC\14.51.36014\bin\HostArm64\arm64\cl.exe" /O2 /LD /TC /MT /GS /Zi /D DNNE_ASSEMBLY_NAME=Microsoft.Interop.Tests.NativeExports /D DNNE_COMPILE_AS_SOURCE /I "C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Tools\MSVC\14.51.36014\include" /I "D:\a\_work\1\s\.packages\dnne\2.1.1\tools\platform" /I "D:\a\_work\1\s\.packages\microsoft.netcore.app.host.win-arm64\11.0.0-preview.3.26170.106\runtimes\win-arm64\native" /I "C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\shared" /I "C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um" /I "C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt"  "D:\a\_work\1\s\artifacts\obj\NativeExports\Release\net11.0\win-arm64\dnne\Microsoft.Interop.Tests.NativeExports.g.c" "D:\a\_work\1\s\.packages\dnne\2.1.1\tools\platform\platform.c" /link /DLL /LIBPATH:"C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Tools\MSVC\14.51.36014\lib\arm64" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\um\arm64" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\ucrt\arm64" "D:\a\_work\1\s\.packages\microsoft.netcore.app.host.win-arm64\11.0.0-preview.3.26170.106\runtimes\win-arm64\native\libnethost.lib" Advapi32.lib /IGNORE:4099 /IMPLIB:"D:\a\_work\1\s\artifacts\obj\NativeExports\Release\net11.0\win-arm64\dnne\bin\Microsoft.Interop.Tests.NativeExportsNE.lib" /OUT:"D:\a\_work\1\s\artifacts\obj\NativeExports\Release\net11.0\win-arm64\dnne\bin\Microsoft.Interop.Tests.NativeExportsNE.dll" " exited with code 9009.
D:\a\_work\1\s\.packages\dnne\2.1.1\build\DNNE.targets(257,5): error MSB3073: The command ""C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Tools\MSVC\14.51.36014\bin\HostArm64\arm64\cl.exe" /O2 /LD /TC /MT /GS /Zi /D DNNE_ASSEMBLY_NAME=Microsoft.Interop.Tests.NativeExports /D DNNE_COMPILE_AS_SOURCE /I "C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Tools\MSVC\14.51.36014\include" /I "D:\a\_work\1\s\.packages\dnne\2.1.1\tools\platform" /I "D:\a\_work\1\s\.packages\microsoft.netcore.app.host.win-arm64\11.0.0-preview.3.26170.106\runtimes\win-arm64\native" /I "C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\shared" /I "C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um" /I "C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt"  "D:\a\_work\1\s\artifacts\obj\NativeExports\Release\net11.0\win-arm64\dnne\Microsoft.Interop.Tests.NativeExports.g.c" "D:\a\_work\1\s\.packages\dnne\2.1.1\tools\platform\platform.c" /link /DLL /LIBPATH:"C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Tools\MSVC\14.51.36014\lib\arm64" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\um\arm64" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\ucrt\arm64" "D:\a\_work\1\s\.packages\microsoft.netcore.app.host.win-arm64\11.0.0-preview.3.26170.106\runtimes\win-arm64\native\libnethost.lib" Advapi32.lib /IGNORE:4099 /IMPLIB:"D:\a\_work\1\s\artifacts\obj\NativeExports\Release\net11.0\win-arm64\dnne\bin\Microsoft.Interop.Tests.NativeExportsNE.lib" /OUT:"D:\a\_work\1\s\artifacts\obj\NativeExports\Release\net11.0\win-arm64\dnne\bin\Microsoft.Interop.Tests.NativeExportsNE.dll" " exited with code 9009. [D:\a\_work\1\s\src\libraries\System.Runtime.InteropServices\tests\TestAssets\NativeExports\NativeExports.csproj]
  baseline ready
  got a change

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1395131&view=logs&j=542c931e-8293-51c7-dbad-a0a58a58ddc4
Build error leg or test failing: Build / windows-arm64 Release Libraries_Release_CoreCLR / Build product
Pull request: #127387

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "",
  "ErrorPattern": "HostArm64.*cl.exe.*is not recognized as an",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1395131
Error message validated: [HostArm64 cl.exe is not recognized as an]
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 4/24/2026 11:14:25 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1395131
Error message validated: [HostArm64.*cl.exe.*is not recognized as an]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 4/26/2026 11:34:11 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Report

Build Definition Step Name Console log Pull Request
1404470 dotnet/runtime Build product Log #127613
1404374 dotnet/runtime Build product Log
1403445 dotnet/runtime Build product Log #127498
1403305 dotnet/runtime Build product Log
1403076 dotnet/runtime Build product Log
1402716 dotnet/runtime Build product Log
1402544 dotnet/runtime Build product Log #127578
1401195 dotnet/runtime Build product Log
1401527 dotnet/runtime Build product Log
1400782 dotnet/runtime Build product Log
1400780 dotnet/runtime Build product Log
1400724 dotnet/runtime Build product Log
2962350 dotnet-runtime Build product Log
1399604 dotnet/runtime Build product Log #127498
2962114 dotnet-runtime Build product Log
1399510 dotnet/runtime Build product Log
1399212 dotnet/runtime Build product Log
1398754 dotnet/runtime Build product Log
1398689 dotnet/runtime Build product Log #127465
1397706 dotnet/runtime Build product Log
1397424 dotnet/runtime Build product Log
2960695 dotnet-runtime Build product Log
1397304 dotnet/runtime Build product Log
1395131 dotnet/runtime Build product Log #127387
1394339 dotnet/runtime Build product Log

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
4 24 25

Activity

  1. added
    blocking-clean-ci
    Known Build Error
    on Apr 24, 2026
  2. added
    untriaged
    on Apr 24, 2026
  3. am11 commented on Apr 26, 2026

    @am11
    Member

    I think we can simplify this by using the helper script from NativeAOT in DNNE:
    AaronRobinsonMSFT/DNNE@master...am11:chore/use-nativeaot-helper-for-msvc. It basically uses vswhere to locate a working toolchain and has been working for 8+ years (dotnet/corert@9e2f015)

    @AaronRobinsonMSFT, @jkoritzinsky wdyt? We can probably drop the ISetup fallback. If that script is good enough for NativeAOT publishing, it should be good enough for DNNE too. 👀

  4. AaronRobinsonMSFT commented on Apr 26, 2026

    @AaronRobinsonMSFT
    Member

    We can probably drop the ISetup fallback. If that script is good enough for NativeAOT publishing, it should be good enough for DNNE too. 👀

    I'm not a fan of these kinds of scripts. DNNE is using the same API as vswhere (that is, SetupConfiguration) and I'd like to continue if possible. I'm very unclear what I'm missing on the ARM machines though. I'll see if I can get an image and figure out the real problem.

  5. MichalStrehovsky commented on Apr 26, 2026

    @MichalStrehovsky
    MemberAuthor

    I don't think any of our build machines are arm64. This one downloaded x64 .NET SDK to do the build so it doesn't sound ARM64 either.

  6. am11 commented on Apr 26, 2026

    @am11
    Member

    I'm not a fan of these kinds of scripts. DNNE is using the same API as vswhere (that is, SetupConfiguration) and I'd like to continue if possible. I'm very unclear what I'm missing on the ARM machines though. I'll see if I can get an image and figure out the real problem.

    I remembered VS guys recommending using vswhere to locate VS installations. I think it's better to use the utility (unless we are building VS shell extension for some advanced use-cases or extending functionality etc.).

  7. AaronRobinsonMSFT commented on Apr 27, 2026

    @AaronRobinsonMSFT
    Member

    I don't think any of our build machines are arm64. This one downloaded x64 .NET SDK to do the build so it doesn't sound ARM64 either.

    So then I don't understand what is different here or the underlying problem. The above issues clearly states "windows-arm64" am I misinterpreting that? This look up logic hasn't changed since I wrote it in 2020 and it hasn't had any issues until now. The ARM64 aspect seems to be the new factor. The only platform I never actually did any work on with DNNE was arm64, so I'm assuming I missed some subtlty in the look-up.

  8. MichalStrehovsky commented on Apr 27, 2026

    @MichalStrehovsky
    MemberAuthor

    So then I don't understand what is different here or the underlying problem. The above issues clearly states "windows-arm64" am I misinterpreting that? This look up logic hasn't changed since I wrote it in 2020 and it hasn't had any issues until now. The ARM64 aspect seems to be the new factor. The only platform I never actually did any work on with DNNE was arm64, so I'm assuming I missed some subtlty in the look-up.

    Our ARM64 have always been cross builds. I think this is a x64 to arm64 crossbuild as usual, I don't see facts to the contrary.

    To compile C code, one needs to locate VS and then configure paths to compilers, libs, etc. For native AOT that @am11 is pointing to, we do that with vswhere, followed by vcvarsall. Both are documented interfaces to VS. DNNE uses some other interface to find VS (that one is likely not the problem) and then some filesystem probing logic to figure out what else to use. On the surface it looks like that one is wrong. If these filesystem locations are contractual, that sounds like a bug in VS. If they are not contractual, it would be a bug in DNNE.

  9. AaronRobinsonMSFT commented on Apr 27, 2026

    @AaronRobinsonMSFT
    Member

    Our ARM64 have always been cross builds. I think this is a x64 to arm64 crossbuild as usual, I don't see facts to the contrary.

    Okay. The "windows-arm64" confused me. I should be able to repro this locally then.

  10. AaronRobinsonMSFT commented on Apr 27, 2026

    @AaronRobinsonMSFT
    Member

    I'm fighting the wrong battle. Sorry all. @am11 please submit a PR to DNNE.

  11. am11 commented on Apr 27, 2026

    @am11
    Member

    Opened AaronRobinsonMSFT/DNNE#218. I haven't tested it end to end, but I think we can carry out the testing in the CI?

  12. am11 commented on Apr 28, 2026

    @am11
    Member

    Thanks. We will need the package version in dceng or similar feed (where previous version was published).

  13. added this to the 11.0.0 milestone on Apr 29, 2026
  14. removed
    untriaged
    on Apr 29, 2026
  15. added a commit that references this issue on May 1, 2026
  16. locked and limited conversation to collaborators on May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build Errorarea-System.Runtime.InteropServicesblocking-clean-ci

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions