<div dir="ltr"><div>Ahem. Turns out it was pilot error: I was placing clang-tools-extra into llvm/tools/extra not llvm/tools/clang/tools/extra. Thanks, Daniel, your script pointed me to the error which I would have never otherwise figured out.</div><div><br></div><div>-- David</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 2, 2015 at 2:22 PM, Daniel Dilts <span dir="ltr"><<a href="mailto:diltsman@gmail.com" target="_blank">diltsman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>From my script (variables substituted), this is the set of commands that I use (current directory is d:\llvm):</div><div><br></div><div>svn checkout <a href="http://llvm.org/svn/llvm-project/llvm/trunk" target="_blank">http://llvm.org/svn/llvm-project/llvm/trunk</a> d:/llvm/llvm</div><div>svn checkout <a href="http://llvm.org/svn/llvm-project/cfe/trunk" target="_blank">http://llvm.org/svn/llvm-project/cfe/trunk</a> d:/llvm/llvm/tools/clang</div><div>svn checkout <a href="http://llvm.org/svn/llvm-project/clang-tools-extra/trunk" target="_blank">http://llvm.org/svn/llvm-project/clang-tools-extra/trunk</a> d:/llvm/llvm/tools/clang/tools/extra</div><div>mkdir d:\llvm\build</div><div>cd d:/llvm/build</div><div>cmake -G "Visual Studio 12" d:/llvm/llvm</div><div><br></div><div>I then open LLVM.sln with VS2013 and build all. Building with revision 233933 I get error LNK1104: cannot open file 'LLVMFuzzer.lib', but that is new (I didn't see that error yesterday).</div><div><br></div><div>Replacing trunk with branches/release_36 compiles with no errors or warnings.</div><div><br></div><div>Note that I am building Win32/Debug.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 2, 2015 at 12:47 AM, David Bakin <span dir="ltr"><<a href="mailto:davidbak@gmail.com" target="_blank">davidbak@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><div>Well, that's interesting. I did clone the extra tools into llvm\tools\clang\tools\extra. The problem was that all of the vcxprojs for the projects in extra were missing "additional include directories" for the source tree's tools\clang\include and also the binary tree's tools\clang\include. But all other necessary include directories were there. </div><div><br></div><div>The installed CMake is 3.2.1, the compiler is VS 2013 Win64, the config was Debug, and the llvm/clang/extras are all sync'd to release_36. LLVM and Clang build fine (and pass unit tests). And whatever was causing it, it was repeatable (blowing away the build output tree, rerunning cmake-gui with the same settings, and doing another build gave the same result.)</div><div><br></div><div>I guess I'll have to try again. Are there any special cmake configuration variables you set? Here's my full list:</div><div><br></div><div><li><font color="#000000">LLVM_TARGETS_TO_BUILD</font><font color="#000000">=X86</font></li><li><font color="#000000">LLVM_ENABLE_ASSERTIONS</font><font color="#000000">=On</font></li><li><font color="#000000">CLANG_BUILD_EXAMPLES</font><font color="#000000">=On</font></li><li><font color="#000000">LLVM_COMPILER_JOBS</font><font color="#000000">=2</font></li></div><div><font color="#000000"><br></font></div><div><font color="#000000">Thanks!</font></div><div><font color="#000000"><br></font></div><div><font color="#000000">(P.S. is there a way using cmake-gui to save/write the configuration variable settings so you can restore them the next time you want to generate VS sln/project files instead of typing them in again? Or, alternatively, getting cmake-gui to emit somewhere the actual cmake command line given the entire configuration you define with it?)</font></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 1, 2015 at 10:02 PM, Daniel Dilts <span dir="ltr"><<a href="mailto:diltsman@gmail.com" target="_blank">diltsman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><div>I have successfully built 3.5 release, 3.5.1 release, 3.6 release, and trunk (today) including LLVM, Clang, and clang extra tools on Windows with CMake 3.2 and Visual Studio 2013. I have never had any issue getting them to work.</div><div><br></div><div>I checked out llvm to d:\llvm\llvm</div><div>clang to d:\llvm\llvm\tools\clang</div><div>extra tools to d:\llvm\llvm\tools\clang\tools\extra</div><div><br></div><div><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 1, 2015 at 9:27 PM, Manuel Klimek <span dir="ltr"><<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr">Here's the original line of patches upstream in which I added the feature:<br><a href="http://www.cmake.org/pipermail/cmake-developers/2011-April/013194.html" target="_blank">http://www.cmake.org/pipermail/cmake-developers/2011-April/013194.html</a><br><div><br></div><div>Cheers,</div><div>/Manuel</div></div><div><div><br><div class="gmail_quote">On Wed, Apr 1, 2015 at 9:21 PM David Bakin <<a href="mailto:davidbak@gmail.com" target="_blank">davidbak@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr">Well, I'd be willing to do that if I knew how to do it. I've patched up my vcxproj files by hand but have no idea how to get CMake to do it. Or possibly it is the module system (module.modulemap)? If you can point me at documentation for what's needed I'll get it done.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 1, 2015 at 9:12 PM, Manuel Klimek <span dir="ltr"><<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr">I don't think anybody has put in the work yet to make the CMake compile-commands work seamlessly on Windows yet. I'd certainly welcome any patches thrown my way to help with that ... <br></div><br><div class="gmail_quote"><div><div>On Wed, Apr 1, 2015 at 7:24 PM David Bakin <<a href="mailto:davidbak@gmail.com" target="_blank">davidbak@gmail.com</a>> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div><div><div dir="ltr"><div>Building llvm+clang+clang-tools-extra at branch release_36 using CMake generated sln/project files for "Visual Studio 12 Win64" I got a bunch of compile errors in various clang-tools-extra projects due to the fact that ...\tools\clang\include isn't one of the "additional include directories" in the vcxproj files for projects in extra.</div><div><br></div><div>(A quick glance at the commit history since release_36 doesn't show any commit (to my eyes) that would have fixed this (I looked only at the commit message).)</div><div><br></div><div>So:</div><div><br></div><div>a) I'd like to report this problem.</div><div><br></div><div>and</div><div><br></div><div>b) Is there something simple I can fix in my local working directory so that I can regenerate the sln/project files using CMake and continue?</div><div><br></div><div>(I would do it myself and submit a fix but unfortunately I have no knowledge as to how CMake is configured.)</div><div><br></div><div>Thanks! -- David Bakin</div></div></div></div>
______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-dev</a><br>
</blockquote></div>
</blockquote></div><br></div>
</blockquote></div>
</div></div><br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>