[PR #1999] [MERGED] Fix CPU-only build under Android Termux enviornment. #73048

Closed
opened 2026-05-05 04:41:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1999
Author: @ghost
Created: 1/15/2024
Status: Merged
Merged: 1/19/2024
Merged by: @dhiltgen

Base: mainHead: termux_android_cpu_only


📝 Commits (2)

  • eb76f3e Fix CPU-only build under Android Termux enviornment.
  • 344342a Restore dyn_ext_server.c since RTLD_DEEPBIND has been removed

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 gpu/gpu.go (+1 -1)

📄 Description

Update gpu.go initGPUHandles() to declare gpuHandles variable before reading it. This resolves an "invalid memory address or nil pointer dereference" error.

Update dyn_ext_server.c to avoid setting the RTLD_DEEPBIND flag under TERMUX (Android).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/1999 **Author:** [@ghost](https://github.com/ghost) **Created:** 1/15/2024 **Status:** ✅ Merged **Merged:** 1/19/2024 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `termux_android_cpu_only` --- ### 📝 Commits (2) - [`eb76f3e`](https://github.com/ollama/ollama/commit/eb76f3e37993ab0c7d1c0d1c361245e1597690aa) Fix CPU-only build under Android Termux enviornment. - [`344342a`](https://github.com/ollama/ollama/commit/344342abdf41c97ddcf3ace2d562e2ff0a5af1f3) Restore dyn_ext_server.c since RTLD_DEEPBIND has been removed ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `gpu/gpu.go` (+1 -1) </details> ### 📄 Description Update gpu.go initGPUHandles() to declare gpuHandles variable before reading it. This resolves an "invalid memory address or nil pointer dereference" error. Update dyn_ext_server.c to avoid setting the RTLD_DEEPBIND flag under __TERMUX__ (Android). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-05 04:41:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#73048