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

Compilation Error. #8

Closed
r00tb33 opened this issue Jul 13, 2023 · 5 comments
Closed

Compilation Error. #8

r00tb33 opened this issue Jul 13, 2023 · 5 comments

Comments

@r00tb33
Copy link

r00tb33 commented Jul 13, 2023

I ran as stated in the README and in the video, stuck at the following error...

$ cargo build --release

....

   Compiling damn_vulnerable_c_program v0.1.0 (/home/xyz/fuzzing/LibAFL/fuzzers/Damn_Vulnerable_C_Program/libAFL/damn_vulnerable_c_program_git)
error: failed to run custom build command for `damn_vulnerable_c_program v0.1.0 (/home/xyz/fuzzing/LibAFL/fuzzers/Damn_Vulnerable_C_Program/libAFL/damn_vulnerable_c_program_git)`

Caused by:
  process didn't exit successfully: `/home/xyz/fuzzing/LibAFL/fuzzers/Damn_Vulnerable_C_Program/libAFL/damn_vulnerable_c_program_git/target/release/build/damn_vulnerable_c_program-2b86d6dad358ec2a/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=build.rs
  cargo:rerun-if-changed=src/main.rs

  --- stderr
  thread 'main' panicked at 'Couldn't clean program directory: Os { code: 2, kind: NotFound, message: "No such file or directory" }', build.rs:19:10
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

Awaiting for response!!

Thanks!!

@hardik05
Copy link
Owner

.expect("Couldn't clean program directory");

Need to change dir here.

@r00tb33
Copy link
Author

r00tb33 commented Jul 13, 2023

.expect("Couldn't clean program directory");

Need to change dir here.

To what exactly?

I am unable to figure out!!

@hardik05
Copy link
Owner

if you check the code, it looks for a dir inside release, just change it. this error is coming because that directory is not present on your system.

@r00tb33
Copy link
Author

r00tb33 commented Jul 14, 2023

if you check the code, it looks for a dir inside release, just change it. this error is coming because that directory is not present on your system.

Hi,

I've been through the code it looks for a binary in the (./target/release/) which is already present.

Talking about the directory which it looks for is "xpdf_dir" which is nothing but the current working directory which is valid.

I think the issue is something else.

Can you point out the line in the code whose location is causing probelms? as all the locations I see pointing to in build.rs seem valid.

@hardik05
Copy link
Owner

I just tried it on couple of vms at my sytem in hope to reproduce, but I am not able to replicate this issue.

@r00tb33 r00tb33 closed this as completed Aug 23, 2023
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