<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div style="line-height:1.6;font-family:'苹方','微软雅黑','sans-serif';">Hello, I have a question now, according to the official llvm documentation, if you want to build fuzzers, you need to add following compile options as shown below.<br>>>>-DLLVM_USE_SANITIZER=Address -DLLVM_USE_SANITIZE_COVERAGE=On<br>>>>-DLLVM_BUILD_RUNTIME=Off<br>Use the following cmake command "cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Release -DLLVM_USE_SANITIZER=Address -DLLVM_USE_SANITIZE_COVERAGE=On -DLLVM_BUILD_RUNTIME=Off -DLLVM_TARGET_TO_BUILD=X86 ../LLVM-8.0.0" but when you make. you will be prompted the following error message:<br>>>>"c++: error: unrecognized argument to -fsanitize= option: 'fuzzer-no-link'.<br>This is because the c++ do not have no value named 'fuzzer-no-link'. So i want to know what cmake command should I use to build a compiler that can use the fuzzer tools.<br>In addition, I am a person who has just joined the community. How can I find the solution to my problem?Please let me know, thanks you.<br>Best wishes.<br><font style="color:rgb(0,0,0);">----------------------------------------------------------------------</font><br><br></div><div class="ne-quoted"><blockquote id="ntes-andriodmail-quote" style="margin:0px !important;padding:0px !important;border: none !important;"><div class="J-reply" style="background-color:#f2f2f2;color:black;padding-top:6px;padding-bottom:6px;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;margin-top:45px;margin-bottom:20px;">
    <div style="font-size:14px;line-height:1.5;word-break:break-all;margin-left:10px;margin-right:10px">On <span class="mail-date">05/06/2019 01:19</span>, <a class="mail-to" style="text-decoration:none;color:#2a97ff;" href="mailto:llvm-dev@lists.llvm.org">via llvm-dev</a> wrote:</div>
</div>Send llvm-dev mailing list submissions to<br>     llvm-dev@lists.llvm.org<br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>     <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>or, via email, send a message with subject or body 'help' to<br>     llvm-dev-request@lists.llvm.org<br><br>You can reach the person managing the list at<br>     llvm-dev-owner@lists.llvm.org<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of llvm-dev digest..."<br><br><br>Today's Topics:<br><br>   1. how to use llvm fuzzer tools (18204310677 via llvm-dev)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Sun, 5 May 2019 09:45:32 +0800 (GMT+08:00)<br>From: 18204310677 via llvm-dev <llvm-dev@lists.llvm.org><br>To: "via llvm-dev" <llvm-dev@lists.llvm.org><br>Subject: [llvm-dev] how to use llvm fuzzer tools<br>Message-ID: <1f25ad35.3304.16a85aaeb32.Coremail.18204310677@163.com><br>Content-Type: text/plain; charset="gbk"<br><br><br><br>Hello, I am a user of llvm, now I am learning to use the fuzzer tool provided by llvm, but now I have a problem.<br>According to the official llvm documentation, the fuzzer tool will automatically link to Libfuzzer, but when I use it, I will prompt the following message "This tool was not linked to libFuzzer".<br><br>When building the compiler, I used the following cmake command, "cmake -G "Unix Makefiles" -DLLVM_BUILD_TYPE=release -DLLVM_USE_SANITIZER=Address -DLLVM_USE_SANITIZER_COVERAGE=On -DLLVM_BUILD_RUNTIME=Off -DCMAKE_ASM_COMPILER=/home/nopea/LLVM/llvm_build/bin /clang -DCMAKE_CXX_COMPILER=/home/nopea/LLVM/llvm_build/bin/clang++ -DLLVM_TARGETS_TO_BUILD=X86 ../llvm-8.0.0/", I hope you can help me solve this problem, thank you.<br>Best wishes<br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://lists.llvm.org/pipermail/llvm-dev/attachments/20190505/ff2d482c/attachment.html&gt">http://lists.llvm.org/pipermail/llvm-dev/attachments/20190505/ff2d482c/attachment.html&gt</a>;<br>-------------- next part --------------<br>A non-text attachment was scrubbed...<br>Name: c3c22d2e-6602-4b95-8a0b-901e7b666131.jpg<br>Type: image/jpeg<br>Size: 82153 bytes<br>Desc: not available<br>URL: <<a href="http://lists.llvm.org/pipermail/llvm-dev/attachments/20190505/ff2d482c/attachment.jpg&gt">http://lists.llvm.org/pipermail/llvm-dev/attachments/20190505/ff2d482c/attachment.jpg&gt</a>;<br><br>------------------------------<br><br>Subject: Digest Footer<br><br>_______________________________________________<br>llvm-dev mailing list<br>llvm-dev@lists.llvm.org<br><a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br><br><br>------------------------------<br><br>End of llvm-dev Digest, Vol 179, Issue 18<br>*****************************************<br></blockquote></div>
</body>
</html>