evanmak / savior-source

source code for savior fuzzer
Apache License 2.0
126 stars 27 forks source link

AFL Compile Error : error: no matching constructor for initialization of 'llvm::DILocation' #5

Open cryptomadco opened 4 years ago

cryptomadco commented 4 years ago

Hi there .

I just got this error while compiling and building savior .

It's not able to build AFL.

error: no matching constructor for initialization of 'llvm::DILocation'

I am looking for a workaround for this, getting it to work .

Thanks!

evanmak commented 4 years ago

Hi,

this error is likely due to LLVM version mismatch, based on https://github.com/evanmak/savior-source/issues/4 if you are manually following the installation script you need to ensure that you point to the correct llvm headers. To do that you may use llvm-config.

Another workaround is to comment out the DILocation related code in AFL, they were added to aid debugging.