[GH-ISSUE #7638] I built from source a while back and everything worked ok, the current code is dumping core, bus error. #66930

Closed
opened 2026-05-04 08:52:46 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @phalexo on GitHub (Nov 13, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7638

Originally assigned to: @dhiltgen on GitHub.

What is the issue?

I used to build it with
go generate ./...
go build .

Is it different now? Does it detect automatically CUDA at /usr/local/cuda?

OS

Linux, Docker

GPU

Nvidia

CPU

Intel

Ollama version

cloned github latest

Originally created by @phalexo on GitHub (Nov 13, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7638 Originally assigned to: @dhiltgen on GitHub. ### What is the issue? I used to build it with go generate ./... go build . Is it different now? Does it detect automatically CUDA at /usr/local/cuda? ### OS Linux, Docker ### GPU Nvidia ### CPU Intel ### Ollama version cloned github latest
GiteaMirror added the buildbugneeds more info labels 2026-05-04 08:52:46 -05:00
Author
Owner

@agreppin commented on GitHub (Nov 13, 2024):

idem here with ROCm on Ubuntu 24.04, v0.4.1 log attached, same result with commit 65973ceb

ollama-v0.4.1-rocm-v6.2.4.log

PS: please can you provide some tips on how to debug the server/runner in the developers docs

<!-- gh-comment-id:2472053740 --> @agreppin commented on GitHub (Nov 13, 2024): idem here with ROCm on Ubuntu 24.04, v0.4.1 log attached, same result with commit 65973ceb [ollama-v0.4.1-rocm-v6.2.4.log](https://github.com/user-attachments/files/17724535/ollama-v0.4.1-rocm-v6.2.4.log) PS: please can you provide some tips on how to debug the server/runner in the developers docs
Author
Owner

@phalexo commented on GitHub (Nov 13, 2024):

idem here with ROCm on Ubuntu 24.04, v0.4.1 log attached, same result with commit 65973ce

ollama-v0.4.1-rocm-v6.2.4.log

PS: please can you provide some tips on how to debug the server/runner in the developers docs

I cannot be sure what your problem, but I think I figured what mine is. Ollama people decided to get "clever" how they identify a CUDA installation, and they just ignore variables like CUDA_ROOT, CUDA_HOME and instead look at symbolic links like /usr/local/cuda-11, which was the OLDER version. From that point different things did not match.

<!-- gh-comment-id:2472215353 --> @phalexo commented on GitHub (Nov 13, 2024): > idem here with ROCm on Ubuntu 24.04, v0.4.1 log attached, same result with commit [65973ce](https://github.com/ollama/ollama/commit/65973ceb6417c2e2796fa59bd3225bc7bd79b403) > > [ollama-v0.4.1-rocm-v6.2.4.log](https://github.com/user-attachments/files/17724535/ollama-v0.4.1-rocm-v6.2.4.log) > > PS: please can you provide some tips on how to debug the server/runner in the developers docs I cannot be sure what your problem, but I think I figured what mine is. Ollama people decided to get "clever" how they identify a CUDA installation, and they just ignore variables like CUDA_ROOT, CUDA_HOME and instead look at symbolic links like /usr/local/cuda-11, which was the OLDER version. From that point different things did not match.
Author
Owner

@dhiltgen commented on GitHub (Nov 13, 2024):

We're working to improve the new build in PR #7499

<!-- gh-comment-id:2474449115 --> @dhiltgen commented on GitHub (Nov 13, 2024): We're working to improve the new build in PR #7499
Author
Owner

@dhiltgen commented on GitHub (Nov 13, 2024):

@phalexo please give the change above a try and let us know if it clears up your build glitch, or if there's still more work to do.

The docs/development.md has been updated in that PR to provide additional guidance on building.

<!-- gh-comment-id:2474611352 --> @dhiltgen commented on GitHub (Nov 13, 2024): @phalexo please give the change above a try and let us know if it clears up your build glitch, or if there's still more work to do. The docs/development.md has been updated in that PR to provide additional guidance on building.
Author
Owner

@phalexo commented on GitHub (Nov 13, 2024):

I addressed the core dump problem by deleting old CUDA distribution. The
second problem that caused the runner to die, I had to drop the version
to V0.3.11. So at least you know that v0.3.11 works with
Qwen2.5-32b-instruct-Q8_0

On Wed, Nov 13, 2024 at 2:48 PM Daniel Hiltgen @.***>
wrote:

@phalexo https://github.com/phalexo please give the change above a try
and let us know if it clears up your build glitch, or if there's still more
work to do.

The docs/development.md has been updated in that PR to provide additional
guidance on building.


Reply to this email directly, view it on GitHub
https://github.com/ollama/ollama/issues/7638#issuecomment-2474611352,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABDD3ZIIJDJLJYOB2GUZNZ32AOUIFAVCNFSM6AAAAABRVHSHSOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZUGYYTCMZVGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

<!-- gh-comment-id:2474934565 --> @phalexo commented on GitHub (Nov 13, 2024): I addressed the core dump problem by deleting old CUDA distribution. The second problem that caused the runner to die, I had to drop the version to V0.3.11. So at least you know that v0.3.11 works with Qwen2.5-32b-instruct-Q8_0 On Wed, Nov 13, 2024 at 2:48 PM Daniel Hiltgen ***@***.***> wrote: > @phalexo <https://github.com/phalexo> please give the change above a try > and let us know if it clears up your build glitch, or if there's still more > work to do. > > The docs/development.md has been updated in that PR to provide additional > guidance on building. > > — > Reply to this email directly, view it on GitHub > <https://github.com/ollama/ollama/issues/7638#issuecomment-2474611352>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABDD3ZIIJDJLJYOB2GUZNZ32AOUIFAVCNFSM6AAAAABRVHSHSOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZUGYYTCMZVGI> > . > You are receiving this because you were mentioned.Message ID: > ***@***.***> >
Author
Owner

@dhiltgen commented on GitHub (Dec 10, 2024):

@phalexo PR #7499 is now merged. Please give the new build a try and if it resolves your problem, go ahead and close the issue. If not, please share updated details so I can take another look.

<!-- gh-comment-id:2532713713 --> @dhiltgen commented on GitHub (Dec 10, 2024): @phalexo PR #7499 is now merged. Please give the new build a try and if it resolves your problem, go ahead and close the issue. If not, please share updated details so I can take another look.
Author
Owner

@phalexo commented on GitHub (Dec 10, 2024):

Go ahead and close it, as I don't quite remember the details now.

On Tue, Dec 10, 2024, 2:45 PM Daniel Hiltgen @.***>
wrote:

@phalexo https://github.com/phalexo PR #7499
https://github.com/ollama/ollama/pull/7499 is now merged. Please give
the new build a try and if it resolves your problem, go ahead and close the
issue. If not, please share updated details so I can take another look.


Reply to this email directly, view it on GitHub
https://github.com/ollama/ollama/issues/7638#issuecomment-2532713713,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABDD3ZK3TO6ID4E2KZVNSJD2E5AD3AVCNFSM6AAAAABRVHSHSOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMZSG4YTGNZRGM
.
You are receiving this because you were mentioned.Message ID:
@.***>

<!-- gh-comment-id:2532721426 --> @phalexo commented on GitHub (Dec 10, 2024): Go ahead and close it, as I don't quite remember the details now. On Tue, Dec 10, 2024, 2:45 PM Daniel Hiltgen ***@***.***> wrote: > @phalexo <https://github.com/phalexo> PR #7499 > <https://github.com/ollama/ollama/pull/7499> is now merged. Please give > the new build a try and if it resolves your problem, go ahead and close the > issue. If not, please share updated details so I can take another look. > > — > Reply to this email directly, view it on GitHub > <https://github.com/ollama/ollama/issues/7638#issuecomment-2532713713>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABDD3ZK3TO6ID4E2KZVNSJD2E5AD3AVCNFSM6AAAAABRVHSHSOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMZSG4YTGNZRGM> > . > You are receiving this because you were mentioned.Message ID: > ***@***.***> >
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#66930