Skip to content
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

An error in compiling Angora #76

Open
MoonLight-SteinsGate opened this issue Sep 10, 2019 · 2 comments
Open

An error in compiling Angora #76

MoonLight-SteinsGate opened this issue Sep 10, 2019 · 2 comments

Comments

@MoonLight-SteinsGate
Copy link

When I compile Angora with running build.sh, there is an error about mismatched types which is shown below. But I've never seen anything like this before. And I didn't make changes on the source code.


moonlight@ubuntu:~/Downloads/Angora-master$ ./build/build.sh 
++ command -v llvm-config
+ '[' -x /home/moonlight/clang+llvm/bin/llvm-config ']'
+ PREFIX=/home/moonlight/Downloads/Angora-master/bin/
+ cargo build
   Compiling angora v1.2.2 (/home/moonlight/Downloads/Angora-master/fuzzer)
error[E0308]: mismatched types
  --> fuzzer/src/executor/limit.rs:23:43
   |
23 |             let mem_limit: libc::rlim_t = size;
   |                                           ^^^^ expected u32, found u64
help: you can convert an `u64` to `u32` and panic if the converted value wouldn't fit
   |
23 |             let mem_limit: libc::rlim_t = size.try_into().unwrap();
   |                                           ^^^^^^^^^^^^^^^^^^^^^^^^

warning: use of deprecated item 'std::os::unix::process::CommandExt::before_exec': should be unsafe, use `pre_exec` instead
  --> fuzzer/src/executor/limit.rs:43:14
   |
43 |         self.before_exec(func)
   |              ^^^^^^^^^^^
   |
   = note: #[warn(deprecated)] on by default

warning: use of deprecated item 'std::os::unix::process::CommandExt::before_exec': should be unsafe, use `pre_exec` instead
  --> fuzzer/src/executor/limit.rs:53:14
   |
53 |         self.before_exec(func)
   |              ^^^^^^^^^^^

warning: use of deprecated item 'std::os::unix::process::CommandExt::before_exec': should be unsafe, use `pre_exec` instead
  --> fuzzer/src/executor/limit.rs:68:18
   |
68 |             self.before_exec(func)
   |                  ^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
error: Could not compile `angora`.

To learn more, run the command again with --verbose.

@spinpx
Copy link
Member

spinpx commented Dec 15, 2019

Could you provide me your rust version?

@MoonLight-SteinsGate
Copy link
Author

MoonLight-SteinsGate commented Dec 16, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants