Trying to compile serde with the derive
feature enabled results in the following error:
Compiling proc-macro2 v1.0.94
Compiling unicode-ident v1.0.0
Compiling ryu v1.0.0
Compiling serde v1.0.199
Compiling memchr v2.0.0
Compiling anyhow v1.0.97
Compiling csv-core v0.1.11
Compiling itoa v1.0.0
Compiling quote v1.0.40
Compiling syn v2.0.100
Compiling serde_derive v1.0.199
error: $HOME/src/rs/REDACTED/target/debug/deps/libserde_derive-1b53e5e9a46ff80e.so: /nix/store/p9ysh5rk109gyjj3cn6jr54znvvlahfl-glibc-2.38-66/lib/libc.so.6: version `GLIBC_2.39' not found (required by $HOME/src/rs/REDACTED/target/debug/deps/libserde_derive-1b53e5e9a46ff80e.so)
--> $HOME/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.199/src/lib.rs:329:1
|
329 | extern crate serde_derive;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: could not compile `serde` (lib) due to 1 previous error
The weird part is that neither rolling back serde or rustc's version fixes this, and the only thing I can think of is me clearing cargo's cache, or that I didn't roll back far enough.
Also, I didn't see an announcment that glibc 3.38 is no longer supported, and it's really not that old, so I'm not sure if this is intentional.
In any case, I'll be doing a system update to glibc 3.40, which hopefully will fix this.