[GH-ISSUE #873] Submodule llm/llama.cpp/ggml did not contain 9e232f0234073358e7031c1b8d7aa45020469a3b. #46931

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

Originally created by @randywreed on GitHub (Oct 21, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/873

Hi,
I've got an older linux server I'm working on and I need to build ollama from scratch in a docker (since I don't have sudo access). The ollama docker build dies with the invalid instruction which I believe is probably fixed in #871. So I've created a docker that downloads the repo and the pr and then builds. But during the build I get.

 > [stage-0 13/13] RUN /usr/local/go/bin/go generate ./...     && /usr/local/go/bin/go build .:
0.514 go: downloading github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58
0.516 go: downloading github.com/dustin/go-humanize v1.0.1
0.517 go: downloading github.com/pdevine/readline v1.5.2
0.517 go: downloading github.com/spf13/cobra v1.7.0
0.517 go: downloading github.com/olekukonko/tablewriter v0.0.5
0.517 go: downloading golang.org/x/sys v0.11.0
0.520 go: downloading golang.org/x/crypto v0.10.0
0.521 go: downloading golang.org/x/term v0.10.0
0.532 go: downloading github.com/gin-contrib/cors v1.4.0
0.532 go: downloading github.com/gin-gonic/gin v1.9.1
0.533 go: downloading golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63
0.534 go: downloading golang.org/x/sync v0.3.0
0.540 go: downloading github.com/mattn/go-runewidth v0.0.14
0.543 go: downloading github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db
0.818 go: downloading github.com/rivo/uniseg v0.2.0
0.866 go: downloading github.com/spf13/pflag v1.0.5
0.903 go: downloading golang.org/x/net v0.10.0
0.903 go: downloading github.com/gin-contrib/sse v0.1.0
0.903 go: downloading github.com/ugorji/go/codec v1.2.11
0.903 go: downloading github.com/pelletier/go-toml/v2 v2.0.8
0.903 go: downloading google.golang.org/protobuf v1.30.0
0.903 go: downloading github.com/mattn/go-isatty v0.0.19
0.904 go: downloading github.com/go-playground/validator/v10 v10.14.0
0.904 go: downloading gopkg.in/yaml.v3 v3.0.1
1.028 go: downloading golang.org/x/text v0.10.0
1.028 go: downloading github.com/leodido/go-urn v1.2.4
1.028 go: downloading github.com/go-playground/universal-translator v0.18.1
1.029 go: downloading github.com/gabriel-vasile/mimetype v1.4.2
1.111 go: downloading github.com/go-playground/locales v0.14.1
2.685 Submodule 'llm/llama.cpp/ggml' (https://github.com/ggerganov/llama.cpp.git) registered for path 'ggml'
2.686 Submodule 'llm/llama.cpp/gguf' (https://github.com/ggerganov/llama.cpp.git) registered for path 'gguf'
2.726 Cloning into '/go/src/github.com/jmorganca/ollama/llm/llama.cpp/ggml'...
4.131 fatal: remote error: upload-pack: not our ref 9e232f0234073358e7031c1b8d7aa45020469a3b
4.131 fatal: Fetched in submodule path 'ggml', but it did not contain 9e232f0234073358e7031c1b8d7aa45020469a3b. Direct fetching of that commit failed.
4.132 fatal: 
4.133 llm/llama.cpp/generate_linux.go:5: running "git": exit status 128

Following the discussion in #495 I ran the following:

root@acb15d98c3de:/go/src/github.com/jmorganca/ollama# git submodule init
Submodule 'llm/llama.cpp/ggml' (https://github.com/ggerganov/llama.cpp.git) registered for path 'llm/llama.cpp/ggml'
Submodule 'llm/llama.cpp/gguf' (https://github.com/ggerganov/llama.cpp.git) registered for path 'llm/llama.cpp/gguf'
root@acb15d98c3de:/go/src/github.com/jmorganca/ollama# git submodule update --force
Cloning into '/go/src/github.com/jmorganca/ollama/llm/llama.cpp/ggml'...
Cloning into '/go/src/github.com/jmorganca/ollama/llm/llama.cpp/gguf'...
fatal: remote error: upload-pack: not our ref 9e232f0234073358e7031c1b8d7aa45020469a3b
fatal: Fetched in submodule path 'llm/llama.cpp/ggml', but it did not contain 9e232f0234073358e7031c1b8d7aa45020469a3b. Direct fetching of that commit failed.
fatal: 

I'm assuming this commit is no longer available, though I'm not sure how to check. Any suggestions?

Originally created by @randywreed on GitHub (Oct 21, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/873 Hi, I've got an older linux server I'm working on and I need to build ollama from scratch in a docker (since I don't have sudo access). The ollama docker build dies with the invalid instruction which I believe is probably fixed in #871. So I've created a docker that downloads the repo and the pr and then builds. But during the build I get. ``` > [stage-0 13/13] RUN /usr/local/go/bin/go generate ./... && /usr/local/go/bin/go build .: 0.514 go: downloading github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 0.516 go: downloading github.com/dustin/go-humanize v1.0.1 0.517 go: downloading github.com/pdevine/readline v1.5.2 0.517 go: downloading github.com/spf13/cobra v1.7.0 0.517 go: downloading github.com/olekukonko/tablewriter v0.0.5 0.517 go: downloading golang.org/x/sys v0.11.0 0.520 go: downloading golang.org/x/crypto v0.10.0 0.521 go: downloading golang.org/x/term v0.10.0 0.532 go: downloading github.com/gin-contrib/cors v1.4.0 0.532 go: downloading github.com/gin-gonic/gin v1.9.1 0.533 go: downloading golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 0.534 go: downloading golang.org/x/sync v0.3.0 0.540 go: downloading github.com/mattn/go-runewidth v0.0.14 0.543 go: downloading github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db 0.818 go: downloading github.com/rivo/uniseg v0.2.0 0.866 go: downloading github.com/spf13/pflag v1.0.5 0.903 go: downloading golang.org/x/net v0.10.0 0.903 go: downloading github.com/gin-contrib/sse v0.1.0 0.903 go: downloading github.com/ugorji/go/codec v1.2.11 0.903 go: downloading github.com/pelletier/go-toml/v2 v2.0.8 0.903 go: downloading google.golang.org/protobuf v1.30.0 0.903 go: downloading github.com/mattn/go-isatty v0.0.19 0.904 go: downloading github.com/go-playground/validator/v10 v10.14.0 0.904 go: downloading gopkg.in/yaml.v3 v3.0.1 1.028 go: downloading golang.org/x/text v0.10.0 1.028 go: downloading github.com/leodido/go-urn v1.2.4 1.028 go: downloading github.com/go-playground/universal-translator v0.18.1 1.029 go: downloading github.com/gabriel-vasile/mimetype v1.4.2 1.111 go: downloading github.com/go-playground/locales v0.14.1 2.685 Submodule 'llm/llama.cpp/ggml' (https://github.com/ggerganov/llama.cpp.git) registered for path 'ggml' 2.686 Submodule 'llm/llama.cpp/gguf' (https://github.com/ggerganov/llama.cpp.git) registered for path 'gguf' 2.726 Cloning into '/go/src/github.com/jmorganca/ollama/llm/llama.cpp/ggml'... 4.131 fatal: remote error: upload-pack: not our ref 9e232f0234073358e7031c1b8d7aa45020469a3b 4.131 fatal: Fetched in submodule path 'ggml', but it did not contain 9e232f0234073358e7031c1b8d7aa45020469a3b. Direct fetching of that commit failed. 4.132 fatal: 4.133 llm/llama.cpp/generate_linux.go:5: running "git": exit status 128 ``` Following the discussion in #495 I ran the following: ``` root@acb15d98c3de:/go/src/github.com/jmorganca/ollama# git submodule init Submodule 'llm/llama.cpp/ggml' (https://github.com/ggerganov/llama.cpp.git) registered for path 'llm/llama.cpp/ggml' Submodule 'llm/llama.cpp/gguf' (https://github.com/ggerganov/llama.cpp.git) registered for path 'llm/llama.cpp/gguf' root@acb15d98c3de:/go/src/github.com/jmorganca/ollama# git submodule update --force Cloning into '/go/src/github.com/jmorganca/ollama/llm/llama.cpp/ggml'... Cloning into '/go/src/github.com/jmorganca/ollama/llm/llama.cpp/gguf'... fatal: remote error: upload-pack: not our ref 9e232f0234073358e7031c1b8d7aa45020469a3b fatal: Fetched in submodule path 'llm/llama.cpp/ggml', but it did not contain 9e232f0234073358e7031c1b8d7aa45020469a3b. Direct fetching of that commit failed. fatal: ``` I'm assuming this commit is no longer available, though I'm not sure how to check. Any suggestions?
Author
Owner

@randywreed commented on GitHub (Oct 21, 2023):

Oh bitten by the submodule recursive error.
For anyone who comes upon this in the future, The docker RUN that clones the github needs to have --recursive-submodules flag.

RUN gh repo clone jmorganca/ollama /go/src/github.com/jmorganca/ollama -- --recurse-submodules
<!-- gh-comment-id:1773936788 --> @randywreed commented on GitHub (Oct 21, 2023): Oh bitten by the submodule recursive error. For anyone who comes upon this in the future, The docker RUN that clones the github needs to have --recursive-submodules flag. ``` RUN gh repo clone jmorganca/ollama /go/src/github.com/jmorganca/ollama -- --recurse-submodules ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#46931