Skip to content

Fix ARM64 intrinsics error due outdated toolset - #531

Merged
cnihelton merged 3 commits into
mainfrom
upgrade-platform-toolset
Aug 19, 2026
Merged

Fix ARM64 intrinsics error due outdated toolset#531
cnihelton merged 3 commits into
mainfrom
upgrade-platform-toolset

Conversation

@cnihelton

@cnihelton cnihelton commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

The Windows SDK version installed in CI calls intrinsics not supported in the v142 toolset, thus we need to upgrade:

ClCompile target) ->
C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um\winnt.h(6343,12): error C3861: '_CountOneBits64': identifier not found [C:\Temp\builddir\DistroLauncher\DistroLauncher.vcxproj]

Here's a failed CI build attempt: https://github.com/ubuntu/WSL/actions/runs/32178337610

Alternatively we could change the GH runner to windows-2022and hardcode one of the older SDK versions for the time they remain available:

Installed Windows SDKs

  • 10.0.17763.0
  • 10.0.19041.0
  • 10.0.22621.0

Keeping the project buildable on the latest seems more sustainable.

@cnihelton
cnihelton requested a review from a team as a code owner August 18, 2026 20:17
The Windows SDK version installed in CI imposes intrinsics not supported
in the v142 toolset, thus we need to upgrade:

ClCompile target) ->
         C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um\winnt.h(6343,12): error C3861: '_CountOneBits64': identifier not found [C:\Temp\builddir\DistroLauncher\DistroLauncher.vcxproj]
@cnihelton
cnihelton force-pushed the upgrade-platform-toolset branch from 4d38bd0 to 0d03713 Compare August 18, 2026 20:28
@cnihelton

Copy link
Copy Markdown
Collaborator Author

Tested the sideload version from the build https://github.com/ubuntu/WSL/actions/runs/32261101807 on a Windows 10 VM running the build number 10.0.19045.6456. All looking good.

@cnihelton
cnihelton requested a review from hk21702 August 19, 2026 18:02

@hk21702 hk21702 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I wouldn't say no to pinning the Windows runner version we use to prevent this, but it also acts as a good warning that it's time to bump things, so it's probably also fine to keep it as is.

@cnihelton
cnihelton merged commit e2114d0 into main Aug 19, 2026
2 checks passed
@cnihelton
cnihelton deleted the upgrade-platform-toolset branch August 19, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants