uv-managed Python binaries fail to run on NixOS (stub-ld blocks dynamically linked executables) #11
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Running
just fediverse-postin the cang project fails with exit status 127:uv downloads python-build-standalone (gnu) builds, which are dynamically linked against glibc. On this box
/lib64/ld-linux-x86-64.so.2is the NixOS stub-ld placeholder, which refuses such binaries with exactly this error. Any project relying on uv-managed Pythons (or other prebuilt glibc binaries) is blocked on this station.Findings from diagnosis on the box:
/lib64/ld-linux-x86-64.so.2exists but is a symlink to NixOSstub-ld, the placeholder that emits the reported error —programs.nix-ldis not enabled anywhere in the repo config./lib64/ld-linux-x86-64.so.2, and its NEEDED libs are all plain glibc (libc,libm,libpthread,libdl,librt,libutil)./nix/store/…-glibc-2.42…/lib/ld-linux-x86-64.so.2 <python3.14> --version) printsPython 3.14.6.Plan of attack:
programs.nix-ld.enable = true;inhosts/ai-coding-box/default.nix(single line; the nix-ld base provides the glibc loader + glibc libs, which is all this binary needs — noprograms.nix-ld.librariesentries required).sudo nixos-rebuild switch --flake .#ai-coding-box) and verifyuv pythonqueries andjust fediverse-postin cang succeed.