I recently updated my nixos channel to a newer commit and now java cannot find the correct glibc version.
/nix/store/fq78qsw0gg4frrmxpy40kacm2cxnz34c-jetbrains-jdk-11.0.10-b1427/lib/openjdk/bin/java: /nix/store/ikl21vjfq900ccbqg1xasp83kadw6q8y-glibc-2.32-46/lib/libc.so.6: version `GLIBC_2.33' not found (required by /nix/store/lg104nh0szci8slz5z6494m457jm5y3p-gcc-10.3.0-lib/lib/libstdc++.so.6)
For some reason it sees the previous version instead.
However, the correct version is actually installed on my system, which can be seen when running
$ ldd --version
ldd (GNU libc) 2.33
What can I do to fix it? I had the same problem when running the rust compiler, but I was able to fix that by installing the glibc
package gobally.