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
Nix package missing libstdc++ runtime dependency on Linux #18447
The Nix package (nix/opencode.nix) fails at runtime on Linux with libstdc++.so.6: cannot open shared object file after recent changes that introduced native dependencies into the node_modules tree.
The package uses stdenvNoCC and wrapProgram only adds ripgrep and sysctl to PATH. There is no LD_LIBRARY_PATH or rpath setup for libstdc++.
Recent commits likely introduced the native dependency:
37b8662 — "abstract SQLite behind runtime-conditional #db import" added drizzle-orm/node-sqlite path and bumped drizzle-orm to 1.0.0-beta.19 (which has better-sqlite3 as optional peer dep — a native C++ module)
@typescript/native-preview (Go/C++ binary) was already in the dependency tree
The fix would be to either:
Add stdenv.cc.cc.lib to the wrapper's LD_LIBRARY_PATH in nix/opencode.nix
Or ensure native modules are excluded from the Bun build path since the Nix package runs under Bun (which uses bun:sqlite, not node:sqlite)
Steps to reproduce
nix build the opencode package from current dev on x86_64-linux
Activity
fix(opencode): symlink-to-copy activation, npm guard, libstdc++ watch…
behrangsa commentedon May 29, 2026
@thdxr isn't it possible to use Node's built-in file watching APIs?
github-actions commentedon Jul 29, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.