-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x86_64-unknown-linux-musl
is the default target used by cargo fuzz run
on my x86_64-unknown-linux-gnu
host
#398
Comments
It sounds like you have a
Set in one of the locations you can put a Cargo config: https://doc.rust-lang.org/cargo/reference/config.html#hierarchical-structure For sure on my x86_64-unknown-linux-gnu setups, the musl target is not used. Even if it is installed. |
I don't which is the weird thing. Furthermore I can see that the built binary for my library links to
|
I think I found the cause of the problem. If I install However, I had installed I still think that in this case that |
The relevant code is here: Lines 1 to 4 in 95f7737
The documentation seems pretty confused about whether it is for the target you're running on vs the target that the code was compiled for. Based on the implementation, it's quite clearly the target that the code was compiled for. You are expecting cargo-fuzz to be using the approach in https://crates.io/crates/rustc-host. But I can't tell if cargo-fuzz switching to using the local rustc toolchain host instead of the target cargo-fuzz was built for will just result in someone filing the inverse ticket that you are. |
If you don't want to change the default target to the host target, then I think either of these should be done:
If we don't provide the |
Oh jeez I didn't realize this project was uploading musl releases 🤦 |
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:
Version of
cargo-fuzz
andrustc
:The text was updated successfully, but these errors were encountered: