[GH-ISSUE #7577] Build fails and wipes parent folder if the path to the source contains a directory name with a space #30590

Closed
opened 2026-04-22 10:23:28 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @gautamz on GitHub (Nov 8, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7577

Originally assigned to: @dhiltgen on GitHub.

What is the issue?

I cloned the repo and tried to build ollama on my device running Linux with Intel cpu, Nvidia GPU and CUDA installed.

The path to source was - /home/user/workspace/sourcebuild/ollama stuff/ollama

When I ran make, the "clean payload" target from the Makefile in sub-directory "llama" wiped out /home/user/workspace
The build failed.

I then tried this with path to source as - /home/user/workspace/sourcebuild/ollama_stuff/ollama
The build succeeded.

Either the path identification should be fixed, or user should be notified and allowed to decide to proceed with rm -rf ...

Please test this cautiously. I had an older backup so recovered most of my wiped files, but did lose a few recent projects.

OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

master

Originally created by @gautamz on GitHub (Nov 8, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7577 Originally assigned to: @dhiltgen on GitHub. ### What is the issue? I cloned the repo and tried to build ollama on my device running Linux with Intel cpu, Nvidia GPU and CUDA installed. The path to source was - /home/user/workspace/sourcebuild/ollama stuff/ollama When I ran make, the "clean payload" target from the Makefile in sub-directory "llama" wiped out /home/user/workspace The build failed. I then tried this with path to source as - /home/user/workspace/sourcebuild/ollama_stuff/ollama The build succeeded. Either the path identification should be fixed, or user should be notified and allowed to decide to proceed with rm -rf ... Please test this cautiously. I had an older backup so recovered most of my wiped files, but did lose a few recent projects. ### OS Linux ### GPU Nvidia ### CPU Intel ### Ollama version master
GiteaMirror added the buildbug labels 2026-04-22 10:23:28 -05:00
Author
Owner

@igorschlum commented on GitHub (Nov 8, 2024):

hi @dhiltgen do you reproduce the issue?

<!-- gh-comment-id:2465665674 --> @igorschlum commented on GitHub (Nov 8, 2024): hi @dhiltgen do you reproduce the issue?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#30590