[LLVMdev] Building the fuzzer library
Justin Bogner
mail at justinbogner.com
Sat May 16 17:43:10 PDT 2015
I decided to try out the fuzzer library and clang-fuzzer, but it doesn't
seem to build for me. From the cmake files, I was pretty sure all I need
to do is set -DLLVM_USE_SANITIZE_COVERAGE=ON, but with this I get a
number of link errors for "lib/Fuzzer/test/LLVMFuzzer-CounterTest", for
example:
lib/libLLVMFuzzer.a(FuzzerLoop.cpp.o): In function `SetDeathCallback':
/home/bogner/code/llvm/lib/Fuzzer/FuzzerLoop.cpp:31: undefined reference to `__sanitizer_set_death_callback'
lib/libLLVMFuzzer.a(FuzzerLoop.cpp.o): In function `fuzzer::Fuzzer::SetDeathCallback()':
/home/bogner/code/llvm/lib/Fuzzer/FuzzerLoop.cpp:31: undefined reference to `__sanitizer_set_death_callback'
lib/libLLVMFuzzer.a(FuzzerLoop.cpp.o): In function `RunOneMaximizeFullCoverageSet':
/home/bogner/code/llvm/lib/Fuzzer/FuzzerLoop.cpp:236: undefined reference to `__sanitizer_reset_coverage'
/home/bogner/code/llvm/lib/Fuzzer/FuzzerLoop.cpp:239: undefined reference to `__sanitizer_get_coverage_guards'
Is there something I'm missing? Has this broken recently? Is there
something wrong with my system?
More information about the llvm-dev
mailing list