Afl-clang-fast (based on clang-6.0 ) can't be used to compile target v8 engine
qiaoguanli opened this issue · comments
I didn't see this problem when I did the experiment. It seems v8's compiling toolchain or compiling option is different from what I did. So, I updated compilation script for v8 and checked it's working with the latest v8 (which uses clang-12). Thanks for reporting!
Thanks for your reply, there are still same problem on my environment with your new commit. Is that your afl-clang-fast compiled based on clang-6.0?
Yes. It compiled based on clang-6.0. Did you use build-v8-cov.sh
script correctly? It's necessary to execute this script as it hooks the compiler with proxy.py
which patches compiling option while compiling.
❯ ./afl-clang-fast++ --version
afl-clang-fast 2.52b by <lszekeres@google.com>
clang version 6.0.0 (tags/RELEASE_600/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
Okey, I found it. It works after adding remove(cmdline, "-Wunknown-warning-option")
in the proxy.py
. Many thanks for your share.