Try with zig cc -target x86_64-linux
by default zig applies host specific optimizations so the blas headers might look for different symbols that were compiled in. Nixpkgs are always packaged with -mcpu=baseline
to have reproducible output. -target
and -Dtarget
(for zig build) always use the baseline for that target similar to -mcpu=baseline
Exe files not interchangeable among identical Linux systems - #6 by andrewrk