Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Build fails with system MLX 0.32.3: gather_qmm global_scale argument

Open Beginner friendly
#136 0 comments 0 reactions 0 assignees View on GitHub

@chenrui333 is already working on this.

Since Oct 3, 2026.

  • #137 by @chenrui333 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
85/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
cpp
Domain
api, build-system

Research direction

Start in mlx/c/ops.cpp around line 1711 and inspect the gather_qmm wrapper call alongside MLX_VERSION_NUMERIC handling. Build with MLX_C_USE_SYSTEM_MLX=ON against MLX 0.32.3, then verify compatibility with the bundled MLX 0.32.2 and preservation of the existing C API.

Written by the indexing model from the issue text.

Description

MLX-C v0.7.0 fails to build against system MLX v0.32.3. The mlx::core::gather_qmm overload now takes const std::optional<array>& global_scale immediately before sorted_indices, but the C wrapper still passes its boolean in that position:

mlx/c/ops.cpp:1711:13: error: reference to type 'const std::optional<array>' could not bind to an lvalue of type 'bool'

Reproduced on macOS 26 ARM64 with MLX_C_USE_SYSTEM_MLX=ON and MLX 0.32.3 built from source. The same wrapper call remains on main, while the bundled dependency is still pinned to v0.32.2.

Passing std::nullopt for the new argument only when MLX_VERSION_NUMERIC >= 32003 should preserve the existing C API and compatibility with the bundled version.

Dominant language
C++
Stars
249
Forks
96
Avg merge
8m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ml-explore/mlx-c

All issues in ml-explore/mlx-c

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.