[GH-ISSUE #14187] Homebrew ollama 0.15.5 on Apple Silicon prints MLX: Failed to load symbol: mlx_metal_device_info with mlx-c 0.5.0 (stale generated MLX wrappers) #9246

Closed
opened 2026-04-12 22:07:16 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @ohzls on GitHub (Feb 10, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/14187

What is the issue?

Homebrew로 설치한 ollama 0.15.5(Apple Silicon, -tags=mlx 빌드) 실행 시 아래 경고가 출력됩니다:

MLX: Failed to load symbol: mlx_metal_device_info

조사해보니 Homebrew mlx-c 0.5.0의 libmlxc.dylib에는 해당 심볼이 없고, Ollama 쪽 x/imagegen/mlx의 “생성된 래퍼 코드”가 구버전 심볼을 기대하는 상태로 패키징된 것으로 보입니다.

Homebrew formula는 go build에만 -tags=mlx를 전달하고 go generate는 태그 없이 실행합니다. 그런데 doc.go는 //go:build mlx 뒤에 //go:generate ...가 있어서, 태그 없이 go generate ./...를 돌리면 래퍼 재생성이 스킵되고(구버전 생성물 유지) 심볼 미스매치가 발생합니다.

관련: Homebrew/homebrew-core 이슈: https://github.com/Homebrew/homebrew-core/issues/266704

Relevant log output

$ /opt/homebrew/bin/ollama -h
MLX: Failed to load symbol: mlx_metal_device_info

$ OLLAMA_FLASH_ATTENTION=1 OLLAMA_KV_CACHE_TYPE=q8_0 /opt/homebrew/bin/ollama serve
MLX: Failed to load symbol: mlx_metal_device_info
...
Listening on 127.0.0.1:11434 (version 0.15.5)

$ nm -gU /opt/homebrew/Cellar/mlx-c/0.5.0/lib/libmlxc.dylib | rg "mlx_metal_device_info"
(no output)

$ nm -gU /opt/homebrew/Cellar/mlx-c/0.5.0/lib/libmlxc.dylib | rg "mlx_device_info_new" | head -n 1
0000000000013e4c T _mlx_device_info_new

OS

macOS

GPU

Apple

CPU

Apple

Ollama version

0.15.5 (Homebrew ollama 0.15.5)

Originally created by @ohzls on GitHub (Feb 10, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/14187 ### What is the issue? Homebrew로 설치한 ollama 0.15.5(Apple Silicon, -tags=mlx 빌드) 실행 시 아래 경고가 출력됩니다: MLX: Failed to load symbol: mlx_metal_device_info 조사해보니 Homebrew mlx-c 0.5.0의 libmlxc.dylib에는 해당 심볼이 없고, Ollama 쪽 x/imagegen/mlx의 “생성된 래퍼 코드”가 구버전 심볼을 기대하는 상태로 패키징된 것으로 보입니다. Homebrew formula는 go build에만 -tags=mlx를 전달하고 go generate는 태그 없이 실행합니다. 그런데 [doc.go](app://-/index.html#)는 //go:build mlx 뒤에 //go:generate ...가 있어서, 태그 없이 go generate ./...를 돌리면 래퍼 재생성이 스킵되고(구버전 생성물 유지) 심볼 미스매치가 발생합니다. 관련: Homebrew/homebrew-core 이슈: [https://github.com/Homebrew/homebrew-core/issues/266704](https://github.com/Homebrew/homebrew-core/issues/266704) ### Relevant log output ```shell $ /opt/homebrew/bin/ollama -h MLX: Failed to load symbol: mlx_metal_device_info $ OLLAMA_FLASH_ATTENTION=1 OLLAMA_KV_CACHE_TYPE=q8_0 /opt/homebrew/bin/ollama serve MLX: Failed to load symbol: mlx_metal_device_info ... Listening on 127.0.0.1:11434 (version 0.15.5) $ nm -gU /opt/homebrew/Cellar/mlx-c/0.5.0/lib/libmlxc.dylib | rg "mlx_metal_device_info" (no output) $ nm -gU /opt/homebrew/Cellar/mlx-c/0.5.0/lib/libmlxc.dylib | rg "mlx_device_info_new" | head -n 1 0000000000013e4c T _mlx_device_info_new ``` ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version 0.15.5 (Homebrew ollama 0.15.5)
GiteaMirror added the bug label 2026-04-12 22:07:16 -05:00
Author
Owner

@rick-github commented on GitHub (Feb 10, 2026):

This looks like a homebrew build issue, not an ollama issue.

<!-- gh-comment-id:3876890777 --> @rick-github commented on GitHub (Feb 10, 2026): This looks like a homebrew build issue, not an ollama issue.
Author
Owner

@ohzls commented on GitHub (Feb 10, 2026):

Opened by mistake. Closing.

<!-- gh-comment-id:3877353439 --> @ohzls commented on GitHub (Feb 10, 2026): Opened by mistake. Closing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#9246