This error happens in rust:1.90.1 but not in rust:1.90.0:
/usr/local/rustup/toolchains/1.91.1-x86_64-unknown-linux-gnu/bin/rustc: error while loading shared libraries: /usr/local/rustup/toolchains/1.91.1-x86_64-unknown-linux-gnu/lib/librustc_driver-39b12c59623303e4.so: invalid ELF header
I don't know it it matters but I am cross-compiling from x86_64 to aarch64.