[LLVMdev] Building the fuzzer library
Kostya Serebryany
kcc at google.com
Thu May 21 14:02:12 PDT 2015
[sorry, missed the message]
You need both -DLLVM_USE_SANITIZE_COVERAGE=ON and
-DLLVM_USE_SANITIZER=Address.
http://llvm.org/docs/LibFuzzer.html should be up-to-date.
http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fuzzer is running
it 24/7 and is green.
--kcc
On Sat, May 16, 2015 at 5:43 PM, Justin Bogner <mail at justinbogner.com>
wrote:
> 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?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150521/348a9f10/attachment.html>
More information about the llvm-dev
mailing list