Skip to content

Prebuilds: pick the newest VS redist libomp for the Windows CPU bundle - #31

Merged
oobabooga merged 1 commit into
unslothai:masterfrom
oobabooga:fix-win-cpu-libomp-pick
Jul 7, 2026
Merged

oobabooga merged 1 commit into
unslothai:masterfrom
oobabooga:fix-win-cpu-libomp-pick

Conversation

@oobabooga

Copy link
Copy Markdown
Member

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 --version smoke 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.

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.

1 participant