[PR #5555] [MERGED] Bundle missing CRT libraries #37698

Closed
opened 2026-04-22 22:22:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5555
Author: @dhiltgen
Created: 7/9/2024
Status: Merged
Merged: 7/10/2024
Merged by: @dhiltgen

Base: mainHead: msvc_deps


📝 Commits (1)

  • b44320d Bundle missing CRT libraries

📊 Changes

1 file changed (+4 additions, -1 deletions)

View changed files

📝 scripts/build_windows.ps1 (+4 -1)

📄 Description

Some users are experienging runner startup errors due to not having these msvc redist libraries on their host

Fixes #4657

> dumpbin /dependents .\llm\build\windows\amd64\cpu\bin\ollama_llama_server.exe
Microsoft (R) COFF/PE Dumper Version 14.29.30154.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file .\llm\build\windows\amd64\cpu\bin\ollama_llama_server.exe

File Type: EXECUTABLE IMAGE

  Image has the following dependencies:

    WS2_32.dll
    llama.dll
    ggml.dll
    KERNEL32.dll
    MSVCP140.dll
    VCRUNTIME140.dll
    VCRUNTIME140_1.dll
    api-ms-win-crt-runtime-l1-1-0.dll
    api-ms-win-crt-stdio-l1-1-0.dll
    api-ms-win-crt-filesystem-l1-1-0.dll
    api-ms-win-crt-math-l1-1-0.dll
    api-ms-win-crt-convert-l1-1-0.dll
    api-ms-win-crt-heap-l1-1-0.dll
    api-ms-win-crt-string-l1-1-0.dll
    api-ms-win-crt-time-l1-1-0.dll
    api-ms-win-crt-locale-l1-1-0.dll
> dir .\dist\windows-amd64\ollama_runners\


    Directory: C:\Users\danie\code\ollama\dist\windows-amd64\ollama_runners


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----          7/8/2024   4:14 PM                cpu
d-----          7/8/2024   4:16 PM                cpu_avx
d-----          7/8/2024   4:19 PM                cpu_avx2
d-----          7/8/2024   4:40 PM                cuda_v11.3
d-----          7/8/2024   5:46 PM                rocm_v5.7
-a----          2/6/2024   8:14 PM          33752 api-ms-win-crt-convert-l1-1-0.dll
-a----          2/6/2024   8:14 PM          30168 api-ms-win-crt-environment-l1-1-0.dll
-a----          2/6/2024   8:14 PM          31672 api-ms-win-crt-filesystem-l1-1-0.dll
-a----          2/6/2024   8:14 PM          30680 api-ms-win-crt-heap-l1-1-0.dll
-a----          2/6/2024   8:14 PM          30168 api-ms-win-crt-locale-l1-1-0.dll
-a----          2/6/2024   8:14 PM          38632 api-ms-win-crt-math-l1-1-0.dll
-a----          2/6/2024   8:14 PM          34264 api-ms-win-crt-runtime-l1-1-0.dll
-a----          2/6/2024   8:14 PM          35776 api-ms-win-crt-stdio-l1-1-0.dll
-a----          2/6/2024   8:14 PM          35800 api-ms-win-crt-string-l1-1-0.dll
-a----          2/6/2024   8:14 PM          32192 api-ms-win-crt-time-l1-1-0.dll
-a----          2/6/2024   8:14 PM         567328 msvcp140.dll
-a----          2/6/2024   8:14 PM          25016 msvcp140_1.dll
-a----          2/6/2024   8:14 PM         186928 msvcp140_2.dll
-a----          2/6/2024   8:14 PM          57392 msvcp140_atomic_wait.dll
-a----          2/6/2024   8:14 PM          21536 msvcp140_codecvt_ids.dll
-a----          2/6/2024   8:14 PM          98336 vcruntime140.dll
-a----          2/6/2024   8:14 PM          38448 vcruntime140_1.dll

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/5555 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 7/9/2024 **Status:** ✅ Merged **Merged:** 7/10/2024 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `msvc_deps` --- ### 📝 Commits (1) - [`b44320d`](https://github.com/ollama/ollama/commit/b44320db1302baea88e2f318d984218c68faa5f1) Bundle missing CRT libraries ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `scripts/build_windows.ps1` (+4 -1) </details> ### 📄 Description Some users are experienging runner startup errors due to not having these msvc redist libraries on their host Fixes #4657 ``` > dumpbin /dependents .\llm\build\windows\amd64\cpu\bin\ollama_llama_server.exe Microsoft (R) COFF/PE Dumper Version 14.29.30154.0 Copyright (C) Microsoft Corporation. All rights reserved. Dump of file .\llm\build\windows\amd64\cpu\bin\ollama_llama_server.exe File Type: EXECUTABLE IMAGE Image has the following dependencies: WS2_32.dll llama.dll ggml.dll KERNEL32.dll MSVCP140.dll VCRUNTIME140.dll VCRUNTIME140_1.dll api-ms-win-crt-runtime-l1-1-0.dll api-ms-win-crt-stdio-l1-1-0.dll api-ms-win-crt-filesystem-l1-1-0.dll api-ms-win-crt-math-l1-1-0.dll api-ms-win-crt-convert-l1-1-0.dll api-ms-win-crt-heap-l1-1-0.dll api-ms-win-crt-string-l1-1-0.dll api-ms-win-crt-time-l1-1-0.dll api-ms-win-crt-locale-l1-1-0.dll ``` ``` > dir .\dist\windows-amd64\ollama_runners\ Directory: C:\Users\danie\code\ollama\dist\windows-amd64\ollama_runners Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 7/8/2024 4:14 PM cpu d----- 7/8/2024 4:16 PM cpu_avx d----- 7/8/2024 4:19 PM cpu_avx2 d----- 7/8/2024 4:40 PM cuda_v11.3 d----- 7/8/2024 5:46 PM rocm_v5.7 -a---- 2/6/2024 8:14 PM 33752 api-ms-win-crt-convert-l1-1-0.dll -a---- 2/6/2024 8:14 PM 30168 api-ms-win-crt-environment-l1-1-0.dll -a---- 2/6/2024 8:14 PM 31672 api-ms-win-crt-filesystem-l1-1-0.dll -a---- 2/6/2024 8:14 PM 30680 api-ms-win-crt-heap-l1-1-0.dll -a---- 2/6/2024 8:14 PM 30168 api-ms-win-crt-locale-l1-1-0.dll -a---- 2/6/2024 8:14 PM 38632 api-ms-win-crt-math-l1-1-0.dll -a---- 2/6/2024 8:14 PM 34264 api-ms-win-crt-runtime-l1-1-0.dll -a---- 2/6/2024 8:14 PM 35776 api-ms-win-crt-stdio-l1-1-0.dll -a---- 2/6/2024 8:14 PM 35800 api-ms-win-crt-string-l1-1-0.dll -a---- 2/6/2024 8:14 PM 32192 api-ms-win-crt-time-l1-1-0.dll -a---- 2/6/2024 8:14 PM 567328 msvcp140.dll -a---- 2/6/2024 8:14 PM 25016 msvcp140_1.dll -a---- 2/6/2024 8:14 PM 186928 msvcp140_2.dll -a---- 2/6/2024 8:14 PM 57392 msvcp140_atomic_wait.dll -a---- 2/6/2024 8:14 PM 21536 msvcp140_codecvt_ids.dll -a---- 2/6/2024 8:14 PM 98336 vcruntime140.dll -a---- 2/6/2024 8:14 PM 38448 vcruntime140_1.dll ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-22 22:22:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#37698