<div dir="ltr">[sorry, missed the message]<div><br></div><div>You need both -DLLVM_USE_SANITIZE_COVERAGE=ON and -DLLVM_USE_SANITIZER=Address. <br></div><div><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_docs_LibFuzzer.html&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=fBQRDtPg2NAGOV3ybsKuodKCY6OFCLuAuEv1Qpe-GGo&s=4C3enaY-wVzzC8rfy4uhBtx3MTa322g5SdJYOK_j4Q0&e=">http://llvm.org/docs/LibFuzzer.html</a> should be up-to-date. <br></div><div><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lab.llvm.org-3A8011_builders_sanitizer-2Dx86-5F64-2Dlinux-2Dfuzzer&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=fBQRDtPg2NAGOV3ybsKuodKCY6OFCLuAuEv1Qpe-GGo&s=AuASyy3ssToNCPksz15IF9_OdEGFMNZRG5Wzywu0WBs&e=">http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fuzzer</a> is running it 24/7 and is green. <br></div><div><br></div><div><br></div><div>--kcc</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 16, 2015 at 5:43 PM, Justin Bogner <span dir="ltr"><<a href="mailto:mail@justinbogner.com" target="_blank">mail@justinbogner.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I decided to try out the fuzzer library and clang-fuzzer, but it doesn't<br>
seem to build for me. From the cmake files, I was pretty sure all I need<br>
to do is set -DLLVM_USE_SANITIZE_COVERAGE=ON, but with this I get a<br>
number of link errors for "lib/Fuzzer/test/LLVMFuzzer-CounterTest", for<br>
example:<br>
<br>
  lib/libLLVMFuzzer.a(FuzzerLoop.cpp.o): In function `SetDeathCallback':<br>
  /home/bogner/code/llvm/lib/Fuzzer/FuzzerLoop.cpp:31: undefined reference to `__sanitizer_set_death_callback'<br>
  lib/libLLVMFuzzer.a(FuzzerLoop.cpp.o): In function `fuzzer::Fuzzer::SetDeathCallback()':<br>
  /home/bogner/code/llvm/lib/Fuzzer/FuzzerLoop.cpp:31: undefined reference to `__sanitizer_set_death_callback'<br>
  lib/libLLVMFuzzer.a(FuzzerLoop.cpp.o): In function `RunOneMaximizeFullCoverageSet':<br>
  /home/bogner/code/llvm/lib/Fuzzer/FuzzerLoop.cpp:236: undefined reference to `__sanitizer_reset_coverage'<br>
  /home/bogner/code/llvm/lib/Fuzzer/FuzzerLoop.cpp:239: undefined reference to `__sanitizer_get_coverage_guards'<br>
<br>
Is there something I'm missing? Has this broken recently? Is there<br>
something wrong with my system?<br>
</blockquote></div><br></div>