Repository navigation
Prebuilds: pick the newest VS redist libomp for the Windows CPU bundle - #31
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Windows CPU bundles (x64 and arm64) ship a llama.cpp that fails to start on any machine with STATUS_ENTRYPOINT_NOT_FOUND (0xC0000139). This is the blocker on unslothai/unsloth#6311.
Problem
The packaging step picks libomp140 from the VS redist with
Get-ChildItem ...\MSVC\*\... | Select-Object -First 1, which grabs the oldest toolset dir (14.29, VS2019-era).That libomp predates
__kmpc_dispatch_deinit, which the image's current clang makes ggml-base.dll import, so nothing in the bundle loads.Fix
Sort the candidates newest-first before picking (this resolves to the same file upstream ggml-org hardcodes). Also add a
llama-server --versionsmoke on the x64 bundle so a bad pick fails the build instead of shipping.Verification
Verified on a live windows-2025-vs2026 runner (https://github.com/oobabooga/llama.cpp/actions/runs/28893502532): the bundle as shipped fails with 0xC0000139, and passes once the newest libomp is used.