rust-fuzz / afl.rs

🐇 Fuzzing Rust code with American Fuzzy Lop
https://rust-fuzz.github.io/book/afl.html
Apache License 2.0
1.65k stars 107 forks source link

afl fails to install due `BaseDirectories` not being found in crate `xdg` #186

Open seamasteruwu opened 3 years ago

seamasteruwu commented 3 years ago
    Updating crates.io index
  Installing afl v0.10.1
   Compiling ucd-trie v0.1.3
   Compiling winapi v0.3.9
   Compiling bitflags v1.2.1
   Compiling xdg v2.2.0
   Compiling libc v0.2.97
   Compiling unicode-width v0.1.8
   Compiling vec_map v0.8.2
     Running `rustc --crate-name ucd_trie --edition=2018 C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\ucd-trie-0.1.3\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --cfg "feature=\"default\"" --cfg "feature=\"std\"" -C metadata=2d6116fa26803733 -C extra-filename=-2d6116fa26803733 --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --cap-lints allow`
     Running `rustc --crate-name ucd_trie --edition=2018 C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\ucd-trie-0.1.3\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg "feature=\"default\"" --cfg "feature=\"std\"" -C metadata=59772ec6642a91e4 -C extra-filename=-59772ec6642a91e4 --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --cap-lints allow`
     Running `rustc --crate-name build_script_build C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\winapi-0.3.9\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg "feature=\"consoleapi\"" --cfg "feature=\"errhandlingapi\"" --cfg "feature=\"minwinbase\"" --cfg "feature=\"minwindef\"" --cfg "feature=\"processenv\"" --cfg "feature=\"winbase\"" -C metadata=2f79b901a9636038 -C extra-filename=-2f79b901a9636038 --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\build\winapi-2f79b901a9636038 -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --cap-lints allow`
     Running `rustc --crate-name build_script_build C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\bitflags-1.2.1\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg "feature=\"default\"" -C metadata=f3b09980381d827d -C extra-filename=-f3b09980381d827d --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\build\bitflags-f3b09980381d827d -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --cap-lints allow`
     Running `rustc --crate-name xdg C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\xdg-2.2.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off -C metadata=4e8612d6069db9b1 -C extra-filename=-4e8612d6069db9b1 --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --cap-lints allow`
     Running `rustc --crate-name build_script_build C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\libc-0.2.97\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg "feature=\"default\"" --cfg "feature=\"std\"" -C metadata=4b69527820836e70 -C extra-filename=-4b69527820836e70 --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\build\libc-4b69527820836e70 -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --cap-lints allow`
     Running `rustc --crate-name unicode_width C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\unicode-width-0.1.8\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg "feature=\"default\"" -C metadata=4542681bc6457481 -C extra-filename=-4542681bc6457481 --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --cap-lints allow`
     Running `rustc --crate-name vec_map C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\vec_map-0.8.2\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=6efe25319bc8653e -C extra-filename=-6efe25319bc8653e --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --cap-lints allow`
   Compiling strsim v0.8.0
     Running `rustc --crate-name strsim C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\strsim-0.8.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=9c3f9caeb3aa7c0c -C extra-filename=-9c3f9caeb3aa7c0c --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --cap-lints allow`
   Compiling cc v1.0.68
     Running `rustc --crate-name cc --edition=2018 C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\cc-1.0.68\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=6081fe299e243c2b -C extra-filename=-6081fe299e243c2b --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --cap-lints allow`
     Running `rustc --crate-name xdg C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\xdg-2.2.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=289cce03dea6f087 -C extra-filename=-289cce03dea6f087 --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --cap-lints allow`
   Compiling textwrap v0.11.0
     Running `rustc --crate-name textwrap C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\textwrap-0.11.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=3bbc40b3cf214dae -C extra-filename=-3bbc40b3cf214dae --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --extern unicode_width=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps\libunicode_width-4542681bc6457481.rmeta --cap-lints allow`
   Compiling pest v2.1.3
     Running `rustc --crate-name pest C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\pest-2.1.3\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=d6278dfb6873f23f -C extra-filename=-d6278dfb6873f23f --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --extern ucd_trie=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps\libucd_trie-59772ec6642a91e4.rmeta --cap-lints allow`
     Running `rustc --crate-name pest C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\pest-2.1.3\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off -C metadata=3dff206527d18f5a -C extra-filename=-3dff206527d18f5a --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --extern ucd_trie=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps\libucd_trie-2d6116fa26803733.rmeta --cap-lints allow`
     Running `C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\build\bitflags-f3b09980381d827d\build-script-build`
     Running `C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\build\libc-4b69527820836e70\build-script-build`
     Running `rustc --crate-name bitflags C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\bitflags-1.2.1\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg "feature=\"default\"" -C metadata=4ff6e880827cc096 -C extra-filename=-4ff6e880827cc096 --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --cap-lints allow --cfg bitflags_const_fn`
     Running `C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\build\winapi-2f79b901a9636038\build-script-build`
     Running `rustc --crate-name libc C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\libc-0.2.97\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg "feature=\"default\"" --cfg "feature=\"std\"" -C metadata=7e8f57972f1b10b4 -C extra-filename=-7e8f57972f1b10b4 --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --cap-lints allow --cfg freebsd11 --cfg libc_priv_mod_use --cfg libc_union --cfg libc_const_size_of --cfg libc_align --cfg libc_core_cvoid --cfg libc_packedN --cfg libc_cfg_target_vendor`
     Running `rustc --crate-name winapi C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\winapi-0.3.9\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg "feature=\"consoleapi\"" --cfg "feature=\"errhandlingapi\"" --cfg "feature=\"minwinbase\"" --cfg "feature=\"minwindef\"" --cfg "feature=\"processenv\"" --cfg "feature=\"winbase\"" -C metadata=4ebbff36e3c15448 -C extra-filename=-4ebbff36e3c15448 --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --cap-lints allow --cfg "feature=\"wincon\"" --cfg "feature=\"reason\"" --cfg "feature=\"winnt\"" --cfg "feature=\"winreg\"" --cfg "feature=\"wingdi\"" --cfg "feature=\"windef\"" --cfg "feature=\"devpropdef\"" --cfg "feature=\"libloaderapi\"" --cfg "feature=\"ntdef\"" --cfg "feature=\"vadefs\"" --cfg "feature=\"vcruntime\"" --cfg "feature=\"processthreadsapi\"" --cfg "feature=\"cfg\"" --cfg "feature=\"guiddef\"" --cfg "feature=\"fileapi\"" --cfg "feature=\"excpt\"" --cfg "feature=\"basetsd\"" --cfg "feature=\"cfgmgr32\"" --cfg "feature=\"ntstatus\"" --cfg "feature=\"wincontypes\"" --cfg "feature=\"ktmtypes\"" -l dylib=advapi32 -l dylib=cfgmgr32 -l dylib=gdi32 -l dylib=kernel32 -l dylib=msimg32 -l dylib=opengl32 -l dylib=user32 -l dylib=winspool`
   Compiling semver-parser v0.10.2
     Running `rustc --crate-name semver_parser --edition=2018 C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\semver-parser-0.10.2\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=80d3d4cc85535988 -C extra-filename=-80d3d4cc85535988 --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --extern pest=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps\libpest-d6278dfb6873f23f.rmeta --cap-lints allow`
     Running `rustc --crate-name semver_parser --edition=2018 C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\semver-parser-0.10.2\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off -C metadata=5543592145f8abc0 -C extra-filename=-5543592145f8abc0 --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --extern pest=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps\libpest-3dff206527d18f5a.rmeta --cap-lints allow`
   Compiling semver v0.11.0
     Running `rustc --crate-name semver C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\semver-0.11.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg "feature=\"default\"" -C metadata=a8ee68b0d79ff3e7 -C extra-filename=-a8ee68b0d79ff3e7 --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --extern semver_parser=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps\libsemver_parser-80d3d4cc85535988.rmeta --cap-lints allow`
   Compiling rustc_version v0.3.3
     Running `rustc --crate-name semver C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\semver-0.11.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --cfg "feature=\"default\"" -C metadata=5c40e61da941f920 -C extra-filename=-5c40e61da941f920 --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --extern semver_parser=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps\libsemver_parser-5543592145f8abc0.rmeta --cap-lints allow`
     Running `rustc --crate-name rustc_version --edition=2018 C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\rustc_version-0.3.3\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=62d174e8b0bfa0ea -C extra-filename=-62d174e8b0bfa0ea --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --extern semver=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps\libsemver-a8ee68b0d79ff3e7.rmeta --cap-lints allow`
   Compiling atty v0.2.14
     Running `rustc --crate-name atty C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\atty-0.2.14\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=f1ffb2a77d30c96a -C extra-filename=-f1ffb2a77d30c96a --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --extern winapi=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps\libwinapi-4ebbff36e3c15448.rmeta --cap-lints allow`
   Compiling clap v2.33.3
     Running `rustc --crate-name clap C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\clap-2.33.3\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg "feature=\"ansi_term\"" --cfg "feature=\"atty\"" --cfg "feature=\"color\"" --cfg "feature=\"default\"" --cfg "feature=\"strsim\"" --cfg "feature=\"suggestions\"" --cfg "feature=\"vec_map\"" -C metadata=530b062f835621e4 -C extra-filename=-530b062f835621e4 --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --extern atty=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps\libatty-f1ffb2a77d30c96a.rmeta --extern bitflags=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps\libbitflags-4ff6e880827cc096.rmeta --extern strsim=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps\libstrsim-9c3f9caeb3aa7c0c.rmeta --extern textwrap=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps\libtextwrap-3bbc40b3cf214dae.rmeta --extern unicode_width=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps\libunicode_width-4542681bc6457481.rmeta --extern vec_map=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps\libvec_map-6efe25319bc8653e.rmeta --cap-lints allow`
     Running `rustc --crate-name rustc_version --edition=2018 C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\rustc_version-0.3.3\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off -C metadata=54d622c48f1654fb -C extra-filename=-54d622c48f1654fb --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --extern semver=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps\libsemver-5c40e61da941f920.rmeta --cap-lints allow`
   Compiling afl v0.10.1
     Running `rustc --crate-name build_script_build --edition=2018 C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\afl-0.10.1\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off -C metadata=f5ea4ef171d0b20a -C extra-filename=-f5ea4ef171d0b20a --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\build\afl-f5ea4ef171d0b20a -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --extern rustc_version=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps\librustc_version-54d622c48f1654fb.rlib --extern xdg=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps\libxdg-4e8612d6069db9b1.rlib --cap-lints allow`
error[E0433]: failed to resolve: could not find `BaseDirectories` in `xdg`
 --> C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\afl-0.10.1\src\common.rs:9:10
  |
9 |     xdg::BaseDirectories::with_prefix(prefix).unwrap()
  |          ^^^^^^^^^^^^^^^ could not find `BaseDirectories` in `xdg`

error[E0412]: cannot find type `BaseDirectories` in crate `xdg`
 --> C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\afl-0.10.1\src\common.rs:5:22
  |
5 | fn xdg_dir() -> xdg::BaseDirectories {
  |                      ^^^^^^^^^^^^^^^ not found in `xdg`

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0412, E0433.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `afl`

Caused by:
  process didn't exit successfully: `rustc --crate-name build_script_build --edition=2018 C:\Users\Juan\.cargo\registry\src\github.com-1ecc6299db9ec823\afl-0.10.1\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off -C metadata=f5ea4ef171d0b20a -C extra-filename=-f5ea4ef171d0b20a --out-dir C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\build\afl-f5ea4ef171d0b20a -L dependency=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps --extern rustc_version=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps\librustc_version-54d622c48f1654fb.rlib --extern xdg=C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI\release\deps\libxdg-4e8612d6069db9b1.rlib --cap-lints allow` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
error: failed to compile `afl v0.10.1`, intermediate artifacts can be found at `C:\Users\Juan\AppData\Local\Temp\cargo-installnumozI`

Caused by:
  build failed

That is the output of cargo install afl --verbose Im in windows 10 pro version 202H

Lucretiel commented 1 year ago

It appears that xdg is linux-only (which makes sense); recommend switching to directories, which does the same thing but on all common platforms (including xdg on linux.

smoelius commented 1 year ago

Thanks for the pointer, @Lucretiel.