AngoraFuzzer / Angora

Angora is a mutation-based fuzzer. The main goal of Angora is to increase branch coverage by solving path constraints without symbolic execution.
Apache License 2.0
919 stars 168 forks source link

Error in running ./build/build.sh #118

Closed wen-yuan-zhang closed 2 years ago

wen-yuan-zhang commented 2 years ago

Thanks for your excellent work! When I run ./build/build.sh, I met the following error. Are there any ideas about how to solve this problems? Thanks a lot!

++ command -v llvm-config
+ '[' -x /usr/bin/llvm-config ']'
+ PREFIX=/home/wenyuan/Documents/homework/rjdl/Angora/bin/
+ cargo build
    Updating crates.io index
  Downloaded ansi_term v0.12.1
  Downloaded atty v0.2.14
  Downloaded autocfg v1.1.0
  Downloaded aho-corasick v0.7.18
  Downloaded bincode v1.3.3
  Downloaded bitflags v1.3.2
  Downloaded byteorder v1.4.3
  Downloaded cc v1.0.73
  Downloaded cfg-if v1.0.0
  Downloaded chrono v0.4.19
  Downloaded colored v2.0.0
  Downloaded clap v2.34.0
  Downloaded ctor v0.1.22
  Downloaded convert_case v0.4.0
  Downloaded ctrlc v3.2.2
  Downloaded derive_more v0.99.17
  Downloaded env_logger v0.7.1
  Downloaded getrandom v0.1.16
  Downloaded hashbrown v0.11.2
  Downloaded indexmap v1.8.2
  Downloaded humantime v1.3.0
  Downloaded itoa v1.0.2
  Downloaded lazy_static v1.4.0
  Downloaded log v0.4.17
  Downloaded libc v0.2.126
  Downloaded memchr v2.5.0
  Downloaded memmap v0.7.0
  Downloaded nix v0.24.1
  Downloaded num-integer v0.1.45
  Downloaded num-traits v0.2.15
  Downloaded num_cpus v1.13.1
  Downloaded ppv-lite86 v0.2.16
  Downloaded pretty_env_logger v0.4.0
  Downloaded priority-queue v1.2.2
  Downloaded proc-macro2 v1.0.39
  Downloaded quick-error v1.2.3
  Downloaded quote v1.0.18
  Downloaded rand v0.7.3
  Downloaded rand_chacha v0.2.2
  Downloaded rand_core v0.5.1
  Downloaded regex v1.5.6
  Downloaded regex-syntax v0.6.26
  Downloaded rustc_version v0.4.0
  Downloaded ryu v1.0.10
  Downloaded serde v1.0.137
  Downloaded semver v1.0.9
  Downloaded serde_derive v1.0.137
  Downloaded serde_json v1.0.81
  Downloaded strsim v0.8.0
  Downloaded syn v1.0.96
  Downloaded termcolor v1.1.3
  Downloaded textwrap v0.11.0
  Downloaded time v0.1.44
  Downloaded twoway v0.2.2
  Downloaded unchecked-index v0.2.2
  Downloaded unicode-ident v1.0.0
  Downloaded unicode-width v0.1.9
  Downloaded vec_map v0.8.2
  Downloaded wait-timeout v0.2.0
  Downloaded 59 crates (3.7 MB) in 9.69s
   Compiling libc v0.2.126
   Compiling autocfg v1.1.0
   Compiling proc-macro2 v1.0.39
   Compiling cfg-if v1.0.0
   Compiling unicode-ident v1.0.0
   Compiling syn v1.0.96
   Compiling memchr v2.5.0
   Compiling serde v1.0.137
   Compiling serde_derive v1.0.137
   Compiling getrandom v0.1.16
   Compiling log v0.4.17
   Compiling regex-syntax v0.6.26
   Compiling quick-error v1.2.3
   Compiling bitflags v1.3.2
   Compiling lazy_static v1.4.0
   Compiling ppv-lite86 v0.2.16
   Compiling termcolor v1.1.3
   Compiling hashbrown v0.11.2
   Compiling unicode-width v0.1.9
   Compiling serde_json v1.0.81
   Compiling unchecked-index v0.2.2
   Compiling convert_case v0.4.0
   Compiling ansi_term v0.12.1
   Compiling ryu v1.0.10
   Compiling byteorder v1.4.3
   Compiling itoa v1.0.2
   Compiling vec_map v0.8.2
   Compiling strsim v0.8.0
   Compiling cc v1.0.73
   Compiling num-traits v0.2.15
   Compiling indexmap v1.8.2
   Compiling num-integer v0.1.45
   Compiling priority-queue v1.2.2
   Compiling humantime v1.3.0
   Compiling textwrap v0.11.0
   Compiling runtime_fast v1.3.0 (/home/wenyuan/Documents/homework/rjdl/Angora/runtime_fast)
   Compiling quote v1.0.18
   Compiling atty v0.2.14
   Compiling time v0.1.44
   Compiling nix v0.24.1
   Compiling wait-timeout v0.2.0
   Compiling memmap v0.7.0
   Compiling num_cpus v1.13.1
   Compiling aho-corasick v0.7.18
   Compiling twoway v0.2.2
error[E0599]: no associated item named `BITS` found for type `usize` in the current scope
   --> /home/wenyuan/.cargo/registry/src/github.com-1ecc6299db9ec823/priority-queue-1.2.2/src/double_priority_queue/mod.rs:971:17
    |
971 |     (8 * usize::BITS - x.leading_zeros() - 1) as usize
    |                 ^^^^ associated item not found in `usize`

error[E0599]: no associated item named `BITS` found for type `usize` in the current scope
   --> /home/wenyuan/.cargo/registry/src/github.com-1ecc6299db9ec823/priority-queue-1.2.2/src/priority_queue/mod.rs:766:17
    |
766 |     (8 * usize::BITS - x.leading_zeros() - 1) as usize
    |                 ^^^^ associated item not found in `usize`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0599`.
error: could not compile `priority-queue`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

My cargo version is 1.46.0 and rustc version is 1.47.0.

wen-yuan-zhang commented 2 years ago

I think I've found that this problem is because I didn't install rust correctly. After using

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

to correctly install rust, this problem was solved.