[GH-ISSUE #12731] "Access is denied" on Windows when built with Go 1.25.3 #8447

Open
opened 2026-04-12 21:07:46 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @rillomas on GitHub (Oct 22, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/12731

Originally assigned to: @dhiltgen on GitHub.

What is the issue?

When building ollama 5fe7ba1b with Go v1.25.3 on Windows 11 23H2 (10.0.22631.6060), we get a peculiar error showing the attached error dialog with ollama serve with "Access is denied" log following. This does not happen when built with Go v1.24.9.

Image

Relevant log output

λ ollama.exe serve
Access is denied.

OS

Windows

GPU

Intel

CPU

Intel

Ollama version

5fe7ba1b

Originally created by @rillomas on GitHub (Oct 22, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/12731 Originally assigned to: @dhiltgen on GitHub. ### What is the issue? When building ollama 5fe7ba1b with Go v1.25.3 on Windows 11 23H2 (10.0.22631.6060), we get a peculiar error showing the attached error dialog with `ollama serve` with "Access is denied" log following. This does not happen when built with Go v1.24.9. <img width="683" height="166" alt="Image" src="https://github.com/user-attachments/assets/3726c265-7702-4814-81f9-0a6ca08485c2" /> ### Relevant log output ```shell λ ollama.exe serve Access is denied. ``` ### OS Windows ### GPU Intel ### CPU Intel ### Ollama version 5fe7ba1b
GiteaMirror added the buildbugwindows labels 2026-04-12 21:07:46 -05:00
Author
Owner

@virajwad commented on GitHub (Oct 22, 2025):

Seeing the same issue!

<!-- gh-comment-id:3432981862 --> @virajwad commented on GitHub (Oct 22, 2025): Seeing the same issue!
Author
Owner

@dhiltgen commented on GitHub (Oct 22, 2025):

It looks like this is likely https://github.com/golang/go/issues/75077 given we use CGO.

Can you try to update your native toolchain and see if that resolves the problem?

https://github.com/ollama/ollama/blob/main/docs/development.md

Update: I just noticed we're recommending a native compiler that hasn't been updated in quite a long time, so our developer guide is going to need updating to recommend something else on Windows x64.

<!-- gh-comment-id:3434152385 --> @dhiltgen commented on GitHub (Oct 22, 2025): It looks like this is likely https://github.com/golang/go/issues/75077 given we use CGO. Can you try to update your native toolchain and see if that resolves the problem? https://github.com/ollama/ollama/blob/main/docs/development.md **Update:** I just noticed we're recommending a native compiler that hasn't been updated in quite a long time, so our developer guide is going to need updating to recommend something else on Windows x64.
Author
Owner

@dhiltgen commented on GitHub (Oct 22, 2025):

We'll need to do some research to figure out the best recommendation, but in the interim, you can try https://www.msys2.org/ and install clang with gcc compat via pacman -S mingw-w64-clang-x86_64-gcc-compat mingw-w64-clang-x86_64-clang The GCC C++ library has unicode bugs that cause problems on utf16 characters, so we've found clang works better, but Go requires a gcc compatible CLI interface to the compiler used by CGO.

<!-- gh-comment-id:3434214712 --> @dhiltgen commented on GitHub (Oct 22, 2025): We'll need to do some research to figure out the best recommendation, but in the interim, you can try https://www.msys2.org/ and install clang with gcc compat via `pacman -S mingw-w64-clang-x86_64-gcc-compat mingw-w64-clang-x86_64-clang` The GCC C++ library has unicode bugs that cause problems on utf16 characters, so we've found clang works better, but Go requires a `gcc` compatible CLI interface to the compiler used by CGO.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#8447