Skip to content

Build GUFI on macOS, test the Studio there, and correct the README - #335

Merged
mattshax merged 1 commit into
mainfrom
macos-support
Sep 10, 2026
Merged

mattshax merged 1 commit into
mainfrom
macos-support

Conversation

@mattshax

Copy link
Copy Markdown
Member

The README said GUFI does not build on macOS. It does: upstream runs a macos-15 job in its own CI with -DDEP_AI=On, and the difficulty is the toolchain rather than the platform, since libomp is not wired into Apple's clang and GUFI's scripts expect GNU utilities.

indexer/setup_gufi.sh now handles macOS the way that CI does: Homebrew's LLVM as CC/CXX, libomp passed through the OpenMP variables, and coreutils/findutils/gnu-sed/grep/diffutils placed ahead on PATH for the build only. It also accepts GUFI_AI=0, which skips sqlite-vec and sqlite-lembed (the hard part, since lembed carries llama.cpp) for a fast build that keeps metadata, filename, and full-text search and loses only the semantic blend. DEP_AI defaults to On upstream, so a plain cmake attempts them; this makes the choice explicit. Installing to a prefix the user owns no longer calls sudo.

CI gains a macOS job that installs Node, pnpm, tesseract and poppler, then builds and runs the suite. It deliberately does not build GUFI: that takes far longer than the tests and has upstream coverage. What this job catches is a Linux-only assumption in the server or a tool that only exists under apt. The repo is public, so macOS runner time is free.

README now describes both build paths instead of claiming the platform is unsupported.

The README said GUFI does not build on macOS. It does: upstream runs a
macOS job in its own CI with the AI dependencies enabled, and the
difficulty is not the platform but the toolchain, since libomp is not
wired into Apple's clang and the build scripts expect GNU utilities.

setup_gufi.sh now handles macOS the way that CI does, with Homebrew's
LLVM, libomp, and GNU tools placed ahead on PATH for the build only. It
also takes GUFI_AI=0 for a quick build without sqlite-vec and
sqlite-lembed, which is the hard part: that build keeps metadata,
filename, and full-text search and loses only the semantic blend. On a
prefix the user owns it installs without sudo, which is the laptop case.

CI gains a macOS job that builds and runs the suite there. It does not
build GUFI, which takes far longer than the tests and has its own
upstream coverage; what it catches is a Linux-only assumption in the
server or a tool that exists only under apt.
@mattshax
mattshax merged commit f848716 into main Sep 10, 2026
2 checks passed
@mattshax
mattshax deleted the macos-support branch September 10, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant