This doesn't work because musl-g++ is not installed.
Using cargo fuzz run --target x86_64-unknown-linux-gnu ... works.
I'm using Arch Linux and have the following targets installed:
$ rustup target list --installed
aarch64-linux-android
aarch64-unknown-linux-gnu
armv7-linux-androideabi
armv7-unknown-linux-gnueabihf
i686-linux-android
i686-pc-windows-gnu
i686-unknown-linux-gnu
thumbv7neon-linux-androideabi
x86_64-linux-android
x86_64-pc-windows-gnu
x86_64-unknown-linux-gnu
x86_64-unknown-linux-musl
Version of cargo-fuzz and rustc:
$ cargo +nightly fuzz --version
cargo-fuzz 0.12.0
$ rustc +nightly -vV
rustc 1.86.0-nightly (a567209da 2025-02-13)
binary: rustc
commit-hash: a567209daab72b7ea59eac533278064396bb0534
commit-date: 2025-02-13
host: x86_64-unknown-linux-gnu
release: 1.86.0-nightly
LLVM version: 19.1.7