[GH-ISSUE #13436] /lib/ollama/libggml-base.so.SOVERSION seems to be installed incorrectly #8869

Closed
opened 2026-04-12 21:40:31 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @vt-alt on GitHub (Dec 12, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/13436

What is the issue?

libggml-base.so seems to be installed incorrectly with SOVERSION suffix not expanded.
We noticed this for 0.13.3, and thsi is true even for binary release ollama-linux-amd64.tgz on Release page.

Relevant log output

less ollama-linux-amd64.tgz
-rwxr-xr-x root/root  35341984 2025-12-12 00:20 bin/ollama
drwxr-xr-x root/root         0 2025-12-12 00:36 lib/ollama/cuda_v12/
-rwxr-xr-x root/root    728800 2015-07-08 00:00 lib/ollama/cuda_v12/libcudart.so.12.8.90
lrwxrwxrwx root/root         0 2025-12-12 00:36 lib/ollama/cuda_v12/libcublasLt.so.12 -> libcublasLt.so.12.8.4.1
-rwxr-xr-x root/root 116388640 2015-07-08 00:00 lib/ollama/cuda_v12/libcublas.so.12.8.4.1
lrwxrwxrwx root/root         0 2025-12-12 00:36 lib/ollama/cuda_v12/libcublas.so.12 -> libcublas.so.12.8.4.1
-rwxr-xr-x root/root 751771728 2015-07-08 00:00 lib/ollama/cuda_v12/libcublasLt.so.12.8.4.1
-rwxr-xr-x root/root 1656587504 2025-12-12 00:36 lib/ollama/cuda_v12/libggml-cuda.so
lrwxrwxrwx root/root          0 2025-12-12 00:36 lib/ollama/cuda_v12/libcudart.so.12 -> libcudart.so.12.8.90
drwxr-xr-x root/root          0 2025-12-12 00:33 lib/ollama/cuda_v13/
lrwxrwxrwx root/root          0 2025-12-12 00:33 lib/ollama/cuda_v13/libcublas.so.13 -> libcublas.so.13.1.0.3
-rwxr-xr-x root/root   54177976 2015-07-08 00:00 lib/ollama/cuda_v13/libcublas.so.13.1.0.3
-rwxr-xr-x root/root  541595600 2015-07-08 00:00 lib/ollama/cuda_v13/libcublasLt.so.13.1.0.3
lrwxrwxrwx root/root          0 2025-12-12 00:33 lib/ollama/cuda_v13/libcublasLt.so.13 -> libcublasLt.so.13.1.0.3
lrwxrwxrwx root/root          0 2025-12-12 00:33 lib/ollama/cuda_v13/libcudart.so.13 -> libcudart.so.13.0.96
-rwxr-xr-x root/root  375002384 2025-12-12 00:33 lib/ollama/cuda_v13/libggml-cuda.so
-rwxr-xr-x root/root     704288 2015-07-08 00:00 lib/ollama/cuda_v13/libcudart.so.13.0.96
lrwxrwxrwx root/root          0 2025-12-12 00:19 lib/ollama/libggml-base.so -> libggml-base.so.SOVERSION
-rwxr-xr-x root/root     739960 2025-12-12 00:19 lib/ollama/libggml-base.so.SOVERSION
-rwxr-xr-x root/root     873880 2025-12-12 00:19 lib/ollama/libggml-cpu-alderlake.so
-rwxr-xr-x root/root     873880 2025-12-12 00:19 lib/ollama/libggml-cpu-haswell.so
-rwxr-xr-x root/root    1004952 2025-12-12 00:19 lib/ollama/libggml-cpu-icelake.so
-rwxr-xr-x root/root     820728 2025-12-12 00:19 lib/ollama/libggml-cpu-sandybridge.so
-rwxr-xr-x root/root    1009048 2025-12-12 00:19 lib/ollama/libggml-cpu-skylakex.so
-rwxr-xr-x root/root     636536 2025-12-12 00:19 lib/ollama/libggml-cpu-sse42.so
-rwxr-xr-x root/root     632472 2025-12-12 00:19 lib/ollama/libggml-cpu-x64.so
drwxr-xr-x root/root          0 2025-12-12 00:19 lib/ollama/vulkan/
lrwxrwxrwx root/root          0 2025-12-12 00:19 lib/ollama/vulkan/libvulkan.so.1 -> libvulkan.so.1.4.321
-rwxr-xr-x root/root    4466776 2025-12-12 00:18 lib/ollama/vulkan/libvulkan.so.1.4.321
-rwxr-xr-x root/root   52175144 2025-12-12 00:19 lib/ollama/vulkan/libggml-vulkan.so

OS

Linux

Ollama version

0.13.3

Originally created by @vt-alt on GitHub (Dec 12, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/13436 ### What is the issue? `libggml-base.so` seems to be installed incorrectly with `SOVERSION` suffix not expanded. We noticed this for 0.13.3, and thsi is true even for binary release `ollama-linux-amd64.tgz` on Release page. ### Relevant log output ```shell less ollama-linux-amd64.tgz -rwxr-xr-x root/root 35341984 2025-12-12 00:20 bin/ollama drwxr-xr-x root/root 0 2025-12-12 00:36 lib/ollama/cuda_v12/ -rwxr-xr-x root/root 728800 2015-07-08 00:00 lib/ollama/cuda_v12/libcudart.so.12.8.90 lrwxrwxrwx root/root 0 2025-12-12 00:36 lib/ollama/cuda_v12/libcublasLt.so.12 -> libcublasLt.so.12.8.4.1 -rwxr-xr-x root/root 116388640 2015-07-08 00:00 lib/ollama/cuda_v12/libcublas.so.12.8.4.1 lrwxrwxrwx root/root 0 2025-12-12 00:36 lib/ollama/cuda_v12/libcublas.so.12 -> libcublas.so.12.8.4.1 -rwxr-xr-x root/root 751771728 2015-07-08 00:00 lib/ollama/cuda_v12/libcublasLt.so.12.8.4.1 -rwxr-xr-x root/root 1656587504 2025-12-12 00:36 lib/ollama/cuda_v12/libggml-cuda.so lrwxrwxrwx root/root 0 2025-12-12 00:36 lib/ollama/cuda_v12/libcudart.so.12 -> libcudart.so.12.8.90 drwxr-xr-x root/root 0 2025-12-12 00:33 lib/ollama/cuda_v13/ lrwxrwxrwx root/root 0 2025-12-12 00:33 lib/ollama/cuda_v13/libcublas.so.13 -> libcublas.so.13.1.0.3 -rwxr-xr-x root/root 54177976 2015-07-08 00:00 lib/ollama/cuda_v13/libcublas.so.13.1.0.3 -rwxr-xr-x root/root 541595600 2015-07-08 00:00 lib/ollama/cuda_v13/libcublasLt.so.13.1.0.3 lrwxrwxrwx root/root 0 2025-12-12 00:33 lib/ollama/cuda_v13/libcublasLt.so.13 -> libcublasLt.so.13.1.0.3 lrwxrwxrwx root/root 0 2025-12-12 00:33 lib/ollama/cuda_v13/libcudart.so.13 -> libcudart.so.13.0.96 -rwxr-xr-x root/root 375002384 2025-12-12 00:33 lib/ollama/cuda_v13/libggml-cuda.so -rwxr-xr-x root/root 704288 2015-07-08 00:00 lib/ollama/cuda_v13/libcudart.so.13.0.96 lrwxrwxrwx root/root 0 2025-12-12 00:19 lib/ollama/libggml-base.so -> libggml-base.so.SOVERSION -rwxr-xr-x root/root 739960 2025-12-12 00:19 lib/ollama/libggml-base.so.SOVERSION -rwxr-xr-x root/root 873880 2025-12-12 00:19 lib/ollama/libggml-cpu-alderlake.so -rwxr-xr-x root/root 873880 2025-12-12 00:19 lib/ollama/libggml-cpu-haswell.so -rwxr-xr-x root/root 1004952 2025-12-12 00:19 lib/ollama/libggml-cpu-icelake.so -rwxr-xr-x root/root 820728 2025-12-12 00:19 lib/ollama/libggml-cpu-sandybridge.so -rwxr-xr-x root/root 1009048 2025-12-12 00:19 lib/ollama/libggml-cpu-skylakex.so -rwxr-xr-x root/root 636536 2025-12-12 00:19 lib/ollama/libggml-cpu-sse42.so -rwxr-xr-x root/root 632472 2025-12-12 00:19 lib/ollama/libggml-cpu-x64.so drwxr-xr-x root/root 0 2025-12-12 00:19 lib/ollama/vulkan/ lrwxrwxrwx root/root 0 2025-12-12 00:19 lib/ollama/vulkan/libvulkan.so.1 -> libvulkan.so.1.4.321 -rwxr-xr-x root/root 4466776 2025-12-12 00:18 lib/ollama/vulkan/libvulkan.so.1.4.321 -rwxr-xr-x root/root 52175144 2025-12-12 00:19 lib/ollama/vulkan/libggml-vulkan.so ``` ### OS Linux ### Ollama version 0.13.3
GiteaMirror added the bug label 2026-04-12 21:40:31 -05:00
Author
Owner

@du291 commented on GitHub (Dec 14, 2025):

It looks like dlopen() errors are not properly handled by ollama. Could you also include that in the fix, so that future errors like this are more visible? It took me quite a while to debug why my GPU is mysteriously not detected.

<!-- gh-comment-id:3651522427 --> @du291 commented on GitHub (Dec 14, 2025): It looks like dlopen() errors are not properly handled by ollama. Could you also include that in the fix, so that future errors like this are more visible? It took me quite a while to debug why my GPU is mysteriously not detected.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#8869