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
When using the overlay to compile a dynamically linked binary, the host's linker is used.
zig-out/bin/rs-zig: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.10.0, with debug_info, not stripped
This leads to GLIBC version mismatch when running the binary
/home/sga/code/rs-zig/zig-out/bin/rs-zig: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/yazs3bdl481s2kyffgsa825ihy1adn8f-gcc-12.2.0-lib/lib/libstdc++.so.6)
/home/sga/code/rs-zig/zig-out/bin/rs-zig: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_RELR' not found (required by /nix/store/yaz7pyf0ah88g2v505l38n0f3wg2vzdj-glibc-2.37-8/lib/libm.so.6)
/home/sga/code/rs-zig/zig-out/bin/rs-zig: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_RELR' not found (required by /nix/store/yaz7pyf0ah88g2v505l38n0f3wg2vzdj-glibc-2.37-8/lib/libpthread.so.0)
Oof. Yeah I can't do anything about this, but if there isn't an issue open I bet you the Zig folks might be interested in hearing about this, there are a decent number of Nix users over there.
EDIT: This explains a ton of things to me since I've experienced this before.
When using the overlay to compile a dynamically linked binary, the host's linker is used.
This leads to GLIBC version mismatch when running the binary
According to this answer, the unstable channel fixes this by applying a patch.
But as this overlay does not build from source, it may not work here.
The text was updated successfully, but these errors were encountered: