You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows support: CGO/tree-sitter build fails — WSL2 workaround included #1
# github.com/tree-sitter/tree-sitter-python/bindings/go
cgo: cannot parse $WORK\b165\_cgo_.o as ELF, Mach-O, PE or XCOFF
This happens with both Go 1.23 and Go 1.25 on Windows (amd64). The README correctly states "Windows: Not currently supported", but there is a straightforward workaround.
Environment
Windows 11 (MINGW64_NT-10.0-26100)
Go 1.25.7 windows/amd64 (also tested with Go 1.23.0 via GOTOOLCHAIN)
Go's CGO toolchain cannot parse the COFF object files produced by MinGW-w64 gcc on Windows. It expects ELF, Mach-O, PE, or XCOFF but gets raw COFF from the tree-sitter C compilation step.
WSL2 Workaround (confirmed working)
Build the Linux binary inside WSL2 and run it via wsl.exe:
# 1. Install Ubuntu in WSL2
wsl --install -d Ubuntu
# 2. Install build tools (inside WSL Ubuntu)
sudo apt install build-essential
# Install Go 1.23+ (apt default may be too old)
curl -sL https://go.dev/dl/go1.23.6.linux-amd64.tar.gz | sudo tar -C /usr/local -xzf -
export PATH=/usr/local/go/bin:$PATH# 3. Build (from WSL, accessing Windows filesystem)cd /mnt/c/path/to/codebase-memory-mcp
CGO_ENABLED=1 go build -buildvcs=false -o codebase-memory-mcp ./cmd/codebase-memory-mcp/
# 4. Copy binary to WSL PATH
sudo cp codebase-memory-mcp /usr/local/bin/
Note: -buildvcs=false is needed because git status doesn't work correctly across the WSL/Windows filesystem boundary.
Activity
Rewrite installation docs for binary-first onboarding
Rewrite installation docs for binary-first onboarding
fix(metrics): address QA round 1 findings
feat(py_lsp): Round 1 parity push (parent-modules, cast, Self, fwd-refs)
feat(py_lsp): Round 1 parity push (parent-modules, cast, Self, fwd-refs)
Rewrite installation docs for binary-first onboarding
feat(py_lsp): Round 1 parity push (parent-modules, cast, Self, fwd-refs)
feat(py_lsp): Round 1 parity push (parent-modules, cast, Self, fwd-refs)
perf/fix: fix 6 arch issues found by static analysis
test(repro): deep invariant dives — enclosing-func drift, LSP rescue,…
fix(discover): skip .claude-worktrees during indexing
test(discovery): flip .claude-worktrees skip-dir reproduction to a gr…
nix: update nixpkgs-unstable lock
nix: update nixpkgs-unstable lock
UX: the interface speaks outcomes, not git (live-review fixes, 6 stor…
feat(perl): merge wave-3 — CROSS-FILE LSP (the DeusData#1 gap), Moose…
Merge pull request #1 from vitalNohj/cloud/cbm-worktree-ignore-rework…