<div dir="ltr">I generally find that the most useful thing to debug cmake failures is the stdout/stderr output from cmake and the options passed to the cmake invocation itself.<div><br></div><div>For example:</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>cmake -G Ninja -DLLVM_ENABLE_PROJECTS="clang;lld;compiler-rt" 2>&1 | tee output.log</div></blockquote><div><br></div><div>... note that this works on bash and bash-like shells but will not work on the CMD shell.  I don't know an equivalent for that shell, either.  Maybe `cmake ... > out.log 2>&1` will work there.</div><div><br></div><div>In general, the most common things to fail in my experience are the feature tests for the host compiler+toolchain.  CMake usually emits a reasonably clear failure message.  You may need to scroll back to see it because sometimes it emits so much after the critical failure that you miss it.  That's also why those redirects are handy.  If that message from cmake is not explicit enough about the failure, only then do I resort to digging through the CMakeError.log / CMakeOutput.log.  Without knowing which tests "should" fail, it's not obvious which parts of CMakeError.log to care about.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Nov 24, 2018 at 4:45 PM Osman Zakir via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<span>Hi.</span></div>
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<span><br>
</span></div>
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<span>Sorry to be sending another email about the same thing, but I really need some help on this.  I tried to use CMake 3.13.0 to generate VS2017 project files for LLVM, after checking out what I wanted to build from the trunk using SVN, but I couldn't generate
 any project files.  I'm attaching CMakeError.log and CMakeOutput.log to this message.  </span></div>
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<span><br>
</span></div>
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<span>I checked out LLVM, Clang, Extra Clang Tools, LLD, Polly Loop Optimizer, Compiler-RT, Libomp, libcxx and libcxxabi.  </span></div>
</div>

_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">-Brian</div>