[GH-ISSUE #8081] android new go toolchain not avail #5165

Closed
opened 2026-04-12 16:16:54 -05:00 by GiteaMirror · 10 comments
Owner

Originally created by @fxmbsw7 on GitHub (Dec 13, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/8081

What is the issue?

maybe new version comes soon

go: downloading go1.23.4 (android/arm64)
go: download go1.23.4 for android/arm64: toolchain not available

OS

Linux

GPU

Other

CPU

Other

Ollama version

0 git today

Originally created by @fxmbsw7 on GitHub (Dec 13, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/8081 ### What is the issue? maybe new version comes soon go: downloading go1.23.4 (android/arm64) go: download go1.23.4 for android/arm64: toolchain not available ### OS Linux ### GPU Other ### CPU Other ### Ollama version 0 git today
GiteaMirror added the bug label 2026-04-12 16:16:54 -05:00
Author
Owner

@johnghoward commented on GitHub (Dec 14, 2024):

Same issue started with me with ollama since yesterday.

<!-- gh-comment-id:2542836858 --> @johnghoward commented on GitHub (Dec 14, 2024): Same issue started with me with ollama since yesterday.
Author
Owner

@fxmbsw7 commented on GitHub (Dec 15, 2024):

i got good news
the fix seems simple

edit line 3 i ./go.mod from 1.23.4 to 1.23.2
then try go build .

it may say u need two libs
it will say .. run cmds ..

go mod download golang.org/x/net
go mod download gioui.org/cpu

then it compiles ./ollama

<!-- gh-comment-id:2543401548 --> @fxmbsw7 commented on GitHub (Dec 15, 2024): i got good news the fix seems simple edit line 3 i ./go.mod from 1.23.4 to 1.23.2 then try go build . it may say u need two libs it will say .. run cmds .. go mod download golang.org/x/net go mod download gioui.org/cpu then it compiles ./ollama
Author
Owner

@johnghoward commented on GitHub (Dec 18, 2024):

Fails to compile. Gives the following error: make: *** No targets specified and no makefile found. Stop.
llama/llama.go:3: running "make": exit status 2

<!-- gh-comment-id:2550754435 --> @johnghoward commented on GitHub (Dec 18, 2024): Fails to compile. Gives the following error: make: *** No targets specified and no makefile found. Stop. llama/llama.go:3: running "make": exit status 2
Author
Owner

@fxmbsw7 commented on GitHub (Dec 18, 2024):

dont run go generate .. do go build

alternatively , try running my compile script
i just ran it and it ran well ..

http://0x0.st/XCTv.sh

<!-- gh-comment-id:2550995971 --> @fxmbsw7 commented on GitHub (Dec 18, 2024): dont run go generate .. do go build alternatively , try running my compile script i just ran it and it ran well .. http://0x0.st/XCTv.sh
Author
Owner

@pdevine commented on GitHub (Dec 20, 2024):

Just run go build and it should work. I'll close out the issue. cc @dhiltgen

<!-- gh-comment-id:2557778215 --> @pdevine commented on GitHub (Dec 20, 2024): Just run `go build` and it should work. I'll close out the issue. cc @dhiltgen
Author
Owner

@fxmbsw7 commented on GitHub (Dec 20, 2024):

Just run go build and it should work. I'll close out the issue. cc @dhiltgen

please its not finished
the issue is
go 1.23.4 is on android not available
only 1.23.2
and i gitted and its -not- fixed

<!-- gh-comment-id:2557782217 --> @fxmbsw7 commented on GitHub (Dec 20, 2024): > Just run `go build` and it should work. I'll close out the issue. cc @dhiltgen please its not finished the issue is go 1.23.4 is on android not available only 1.23.2 and i gitted and its -not- fixed
Author
Owner

@fxmbsw7 commented on GitHub (Dec 20, 2024):

( i dont know the github issues complete system )
but when ollama compiles then its closed fixed
yet nothing was done ..

<!-- gh-comment-id:2557792445 --> @fxmbsw7 commented on GitHub (Dec 20, 2024): ( i dont know the github issues complete system ) but when ollama compiles then its closed fixed yet nothing was done ..
Author
Owner

@dhiltgen commented on GitHub (Jan 6, 2025):

@fxmbsw7 until the new version of Go is released for Andriod, you can temporarily change the go.mod in your local repo to use a version that is available.

<!-- gh-comment-id:2573689697 --> @dhiltgen commented on GitHub (Jan 6, 2025): @fxmbsw7 until the new version of Go is released for Andriod, you can temporarily change the go.mod in your local repo to use a version that is available.
Author
Owner

@LTS-VVE commented on GitHub (Jan 9, 2025):

Here's a temporary fix:

pkg update && pkg upgrade -y
pkg install git make clang golang -y

export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export CGO_ENABLED=1
export GOOS=android
export GOARCH=arm64

git clone https://github.com/ollama/ollama.git
cd ollama
sed -i 's/1.23.4/1.23.2/g' go.mod
go mod tidy
go build .

Then simply run ollama to start up the local server or run a model. (ex. ./ollama pull gemma:2b)
(Note this worked for me and may not work for you, as it did take longer than a previosly working version)

<!-- gh-comment-id:2581087194 --> @LTS-VVE commented on GitHub (Jan 9, 2025): Here's a temporary fix: ``` pkg update && pkg upgrade -y pkg install git make clang golang -y export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin export CGO_ENABLED=1 export GOOS=android export GOARCH=arm64 git clone https://github.com/ollama/ollama.git cd ollama sed -i 's/1.23.4/1.23.2/g' go.mod go mod tidy go build . ``` Then simply run ollama to start up the local server or run a model. (ex. ```./ollama pull gemma:2b```) (Note this worked for me and may not work for you, as it did take longer than a previosly working version)
Author
Owner

@fxmbsw7 commented on GitHub (Jan 17, 2025):

hello
termux updated go to .4
peace ..

<!-- gh-comment-id:2599241935 --> @fxmbsw7 commented on GitHub (Jan 17, 2025): hello termux updated go to .4 peace ..
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#5165