My NixOS is on unstable channel and auto update is on. A few days ago, I noticed nix-shell is broken. Also is nix-build, but not everything of nix package.
NixOS conf:
system = {
stateVersion = "unstable";
autoUpgrade.enable = true;
};
Error:
$ nix-shell
nix-shell: /nix/store/ybjcla5bhj8g1y84998pn4a2drfxybkv-gcc-13.3.0-lib/lib/libstdc++.so.6: version `CXXABI_1.3.15' not found (required by nix-shell)
nix-shell: /nix/store/ybjcla5bhj8g1y84998pn4a2drfxybkv-gcc-13.3.0-lib/lib/libstdc++.so.6: version `CXXABI_1.3.15' not found (required by /nix/store/w6wybyfakrgnp1rb0mrj66xlj8118z8c-nix-2.24.11/lib/libnixexpr.so)
nix-shell: /nix/store/ybjcla5bhj8g1y84998pn4a2drfxybkv-gcc-13.3.0-lib/lib/libstdc++.so.6: version `CXXABI_1.3.15' not found (required by /nix/store/w6wybyfakrgnp1rb0mrj66xlj8118z8c-nix-2.24.11/lib/libnixmain.so)
nix-shell: /nix/store/ybjcla5bhj8g1y84998pn4a2drfxybkv-gcc-13.3.0-lib/lib/libstdc++.so.6: version `CXXABI_1.3.15' not found (required by /nix/store/w6wybyfakrgnp1rb0mrj66xlj8118z8c-nix-2.24.11/lib/libnixfetchers.so)
nix-shell: /nix/store/ybjcla5bhj8g1y84998pn4a2drfxybkv-gcc-13.3.0-lib/lib/libstdc++.so.6: version `CXXABI_1.3.15' not found (required by /nix/store/w6wybyfakrgnp1rb0mrj66xlj8118z8c-nix-2.24.11/lib/libnixstore.so)
nix-shell: /nix/store/ybjcla5bhj8g1y84998pn4a2drfxybkv-gcc-13.3.0-lib/lib/libstdc++.so.6: version `CXXABI_1.3.15' not found (required by /nix/store/w6wybyfakrgnp1rb0mrj66xlj8118z8c-nix-2.24.11/lib/libnixutil.so)
nix-shell: /nix/store/ybjcla5bhj8g1y84998pn4a2drfxybkv-gcc-13.3.0-lib/lib/libstdc++.so.6: version `CXXABI_1.3.15' not found (required by /nix/store/w6wybyfakrgnp1rb0mrj66xlj8118z8c-nix-2.24.11/lib/libnixcmd.so)
nix-shell: /nix/store/ybjcla5bhj8g1y84998pn4a2drfxybkv-gcc-13.3.0-lib/lib/libstdc++.so.6: version `CXXABI_1.3.15' not found (required by /nix/store/2b13vwslx0bmnb41mn5xvn5zcj4fw0ww-aws-crt-cpp-0.29.4/lib/libaws-crt-cpp.so)
I tried to upgrade nixos and nixpkgs, nothing seems help. How to fix it?
(This is not your problem, but this is super wrong. Please read the thing. "unstable" is not a valid value for this option; it should be set to the version of nixos that was originally installed, not the name of the channel you’re trying to use.)
Anyway, the actual issue looks like it might be related to the recent update to GCC 14. No idea how that would cause this, but it just seems related given the error message.