<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Don't pass LLVM_ENABLE_PROJECTS if your clang and lld are under llvm/tools.<div class=""><br class=""></div><div class="">-Chris<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 29, 2018, at 10:21 AM, Osman Zakir via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="caret-color: rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><span class="">Got this error when I ran CMake on the command line:</span></div><div style="caret-color: rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><span class="">"</span></div><div style="caret-color: rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><span class=""><span class="">cmake -G "Visual Studio 15 2017" -Thost=x64 -DLLVM_ENABLE_PROJECTS=clang;lld -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly -DLLVM_TARGETS_TO_BUILD=X86 .<br class=""></span><div class="">-- The C compiler identification is MSVC 19.16.27024.1​</div><div class="">-- The CXX compiler identification is MSVC 19.16.27024.1​</div><div class="">-- The ASM compiler identification is MSVC​</div><div class="">-- Found assembler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x86/cl.exe​</div><div class="">-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x86/cl.exe​</div><div class="">-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x86/cl.exe -- works​</div><div class="">-- Detecting C compiler ABI info​</div><div class="">-- Detecting C compiler ABI info - done​</div><div class="">-- Detecting C compile features​</div><div class="">-- Detecting C compile features - done​</div><div class="">-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x86/cl.exe​</div><div class="">-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x86/cl.exe -- works​</div><div class="">-- Detecting CXX compiler ABI info​</div><div class="">-- Detecting CXX compiler ABI info - done​</div><div class="">-- Detecting CXX compile features​</div><div class="">-- Detecting CXX compile features - done​</div><div class="">CMake Error at CMakeLists.txt:116 (message):​</div><div class="">  LLVM_ENABLE_PROJECTS requests clang but directory not found:​</div><div class="">  C:/llvm/../clang​</div><div class="">​</div><div class="">​</div><div class="">-- Configuring incomplete, errors occurred!​</div><div class="">See also "C:/llvm/CMakeFiles/CMakeOutput.log".​</div><div class=""><span class="">See also "C:/llvm/CMakeFiles/CMakeError.log".</span></div><div class="">"</div><div class=""><br class=""></div><div class="">The command I used is </div><div class="">"</div><div class=""><span style="font-family: Calibri, Helvetica, sans-serif; font-stretch: normal; display: inline !important;" class="">cmake -G "Visual Studio 15 2017" -Thost=x64 -DLLVM_ENABLE_PROJECTS=clang;lld -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly -DLLVM_TARGETS_TO_BUILD=X86 .</span></div><div class="">"</div><div class=""><br class=""></div><div class="">The source directory is C:/llvm in this case, which was the directory I executed the command from.</div><div class=""><br class=""></div><div class="">Is there a command I can use to set the path to clang and lld?  They're C:/llvm/tools/clang and C:/llvm/tools/lld, respectively, which is where it should look but I don't know why it isn't.  </div><div class=""><br class=""></div><div class="">Anyway, yeah, I'll delete the current LLVM checkout and get a new one from the Git checkout you talked about. Thanks for the tip.</div></span></div><hr tabindex="-1" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline-block; width: 643.859375px;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=""></span><div id="divRplyFwdMsg" dir="ltr" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Osman Zakir <<a href="mailto:osmanzakir90@hotmail.com" class="">osmanzakir90@hotmail.com</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Thursday, November 29, 2018 11:08 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>; Zachary Turner<br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [llvm-dev] Errors in configuration for LLVM with CMake GUI</font><div class=""> </div></div><div dir="ltr" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><span class="">I don't know what executable to point it to for SVN because, like I said before, I just right click where I want to check something out and click what I need in the context menu.  So I need to know what executable to point it to.  </span></div><hr tabindex="-1" style="display: inline-block; width: 643.859375px;" class=""><div id="x_divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Osman Zakir <<a href="mailto:osmanzakir90@hotmail.com" class="">osmanzakir90@hotmail.com</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Thursday, November 29, 2018 11:06 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Zachary Turner; <a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [llvm-dev] Errors in configuration for LLVM with CMake GUI</font><div class=""> </div></div><div dir="ltr" class=""><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">I also checked out compiler-rt and openmp.  Would it be okay to just delete those and try again, or should I try checking out from scratch and this time not also check out compiler-rt and openmp?  I also have libcxx and libcxxabi by the way.  </div><hr tabindex="-1" style="display: inline-block; width: 643.859375px;" class=""><div id="x_x_divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Zachary Turner <<a href="mailto:zturner@google.com" class="">zturner@google.com</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Thursday, November 29, 2018 10:59 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Osman Zakir<br class=""><b class="">Cc:</b><span class="Apple-converted-space"> </span><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [llvm-dev] Errors in configuration for LLVM with CMake GUI</font><div class=""> </div></div><div class=""><div dir="ltr" class="">This output is much more interesting.  Can you show the full cmake command line or set of variables that you configured?<div class=""><br class=""></div><div class="">1. I don't know why it's saying it requires Perl.  Perl is absolutely not a requirement</div><div class="">2. I don't know why it's trying to build openmp or compiler-rt.  I guess it depends on how you configured CMake.  openmp I don't think is well supported (perhaps not even supported at all) on Windows</div><div class="">3. I also don't know why it would be trying to find subversion.  However, even if it is trying to find subversion, "<span style="color: rgb(255, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 16px;" class="">C:/Program Files/TortoiseSVN/bin/ info C:/llvm" </span>is a meaningless command line, because there is no executable there.  It looks like it is trying to "run" a directory.</div><div class=""><br class=""></div><div class="">So these are the problems you should be looking at I think.  Can you try it from a command line, and not the cmake gui?  For example, you might start by trying the exact command line I posted earlier.  Even if it's not suitable for your needs, I know for certain that command line works for me, so see if it works for you.  If it does not work, there's a problem with your installation, system, cmake version, etc.  If it does work, then it's more likely a problem with the cmake command line you're running.</div></div><br class=""><div class="x_x_x_gmail_quote"><div dir="ltr" class="">On Thu, Nov 29, 2018 at 9:45 AM Osman Zakir <<a href="mailto:osmanzakir90@hotmail.com" class="">osmanzakir90@hotmail.com</a>> wrote:<br class=""></div><blockquote class="x_x_x_gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr" class=""><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><span class="">I opened up an elevated Developer Command Prompt for VS2017, ran vcvarsall with argument amd64, and then ran the command "cmake-gui" in that command prompt.  Then in that gui window, I clicked on "Configure" without doing anything else.  At the end, I got an error window saying that there were errors, and that project files may be invalid.  </span></div><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><span class=""><br class=""></span></div><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><span class="">Here's the output from CMake:</span></div><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><span class="">"</span></div><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><span class=""><div style="margin-top: 0px; margin-bottom: 0px;" class="">Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Native target architecture is X86</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Threads enabled.</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Doxygen disabled.</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Go bindings disabled.</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">OCaml bindings disabled.</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Could NOT find Python module pygments</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Could NOT find Python module pygments.lexers.c_cpp</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Could NOT find Python module yaml</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">LLVM host triple: x86_64-pc-windows-msvc</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">LLVM default target triple: x86_64-pc-windows-msvc</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Using Debug VC++ CRT: MDd</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Using Release VC++ CRT: MD</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Using MinSizeRel VC++ CRT: MD</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Using RelWithDebInfo VC++ CRT: MD</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Constructing LLVMBuild project information</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="color: rgb(255, 0, 0);" class="">CMake Error at C:/Program Files/CMake/share/cmake-3.13/Modules/FindSubversion.cmake:123 (message):<br class="">Command "C:/Program Files/TortoiseSVN/bin/ info C:/llvm" failed with<br class="">output:<br class=""><br class="">Call Stack (most recent call first):<br class="">cmake/modules/VersionFromVCS.cmake:19 (subversion_wc_info)<br class="">CMakeLists.txt:757 (add_version_info_from_vcs)<br class=""><br class=""></span></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">LLVMHello ignored -- Loadable modules not supported on this platform.</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Targeting AArch64</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Targeting AMDGPU</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Targeting ARM</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Targeting BPF</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Targeting Hexagon</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Targeting Lanai</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Targeting Mips</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Targeting MSP430</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Targeting NVPTX</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Targeting PowerPC</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Targeting Sparc</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Targeting SystemZ</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Targeting WebAssembly</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Targeting X86</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Targeting XCore</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Compiler-RT supported architectures: x86_64</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Builtin supported architectures: x86_64</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Builtin supported architectures: x86_64</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="color: rgb(255, 0, 0);" class="">CMake Error at C:/Program Files/CMake/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):<br class="">Could NOT find Perl (missing: PERL_EXECUTABLE)<br class="">Call Stack (most recent call first):<br class="">C:/Program Files/CMake/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)<br class="">C:/Program Files/CMake/share/cmake-3.13/Modules/FindPerl.cmake:75 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)<br class="">projects/openmp/runtime/cmake/config-ix.cmake:147 (find_package)<br class="">projects/openmp/runtime/CMakeLists.txt:234 (include)<br class=""><br class=""></span></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Configuring incomplete, errors occurred!</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">See also "C:/llvm/build/CMakeFiles/CMakeOutput.log".</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">See also "C:/llvm/build/CMakeFiles/CMakeError.log".</div><div class="">"</div><div class=""><br class=""></div><div class="">If I want Clang to use its own C++ standard libraries, with LLD as the linker, instead of MSVC's variants, what should I do?  Tell me that too please.  Thanks.</div></span></div><hr style="display: inline-block; width: 631.8125px;" class=""></div><div dir="ltr" class=""><div id="x_x_x_m_-8879995706098138034divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Osman Zakir <<a href="mailto:osmanzakir90@hotmail.com" target="_blank" class="">osmanzakir90@hotmail.com</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Thursday, November 29, 2018 10:33 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Zachary Turner</font></div></div><div dir="ltr" class=""><div id="x_x_x_m_-8879995706098138034divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [llvm-dev] Errors in configuration for LLVM with CMake GUI</font></div></div><div dir="ltr" class=""><div dir="ltr" class=""><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">After it finishes trying to configure, it says that there were errors with the configure step and that program files may be invalid.  And I also don't know what executable to point it to for SVN.  </div><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">What should I put for CLANG_DEFAULT_CXX_STDLIB, CLANG_DEFAULT_LINKER, CLANG_DEFAULT_RTLIB, CLANG_DEFAULT_STD_C and CLANG_DEFAULT_STD_CXX?  Would it be okay to provide the path to the MSVC include directory for the CLANG_DEFAULT_CXX_STDLIB, or should I provide the path to the include directory in the libcxx folder in the LLVM source tree?  For the Linker I think I'll just put llvm_root/tools/lld, if that's good enough.  </div><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">As for pthread, shouldn't I have that?  I mean, it's the standard threads library, isn't it?  And CMake also can't find the header that malloc is in, among some other headers.  </div><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">And what is the CLANG_VENDOR setting asking for?  The vendor that I got Clang from?  And what about CLANG_VENDOR_UTI?  </div><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">CMAKE_INSTALL_OLDINCLUDEDIR is set to the Linux-specific /usr/local for some reason.  What should I set it to?  </div><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">Note:<span class="Apple-converted-space"> </span><a class="x_x_x_m_-8879995706098138034x_mention x_x_x_m_-8879995706098138034x_fbmgFYeENi2_gph5O8mp8 x_x_x_m_-8879995706098138034x_ms-fcl-b x_x_x_m_-8879995706098138034x_ms-bgc-nlr" id="x_x_x_m_-8879995706098138034OWAAM356255" href="mailto:zturner@google.com" target="_blank">@Zachary Turner</a><span class="Apple-converted-space"> </span>I wrote this before I saw your latest message.  I'll try that now.  Thanks.</div><hr style="display: inline-block; width: 631.8125px;" class=""><div id="x_x_x_m_-8879995706098138034x_divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Zachary Turner <<a href="mailto:zturner@google.com" target="_blank" class="">zturner@google.com</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Thursday, November 29, 2018 9:49 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Osman Zakir<br class=""><b class="">Cc:</b><span class="Apple-converted-space"> </span><a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [llvm-dev] Errors in configuration for LLVM with CMake GUI</font><div class=""> </div></div><div class="">I think you are heading down the wrong path. All of those error messages are normal. That’s just cmake doing feature detection, for example it will test whether your system has pthread.h by compiling a program that includes that header. So an error in your log about is missing pthread.h just means it will set HAVE_PTHREAD_H to false which is fine.<br class=""><br class="">I’m confused why we’re talking about gcc and libomp if you’re trying to do a Windows build. You should just use msvc to build it. You don’t need any of the things you mentioned to do a build.<br class=""><br class="">I still haven’t seen the output from cmake (just a paste of stdout). That’s going to tell you the real problem. The pog files I don’t think are very useful and will just lead you in the wrong direction.<br class=""><br class="">You said you’re using cmake gui, maybe the problem is that the gui can’t find the Visual Studio installation. Did you run vcvarsall first? Try first running vcvarsall from a command prompt and tgen running cmake (command line or gui) from that same command prompt<br class=""><div class="x_x_x_m_-8879995706098138034x_x_gmail_quote"><div dir="ltr" class="">On Thu, Nov 29, 2018 at 7:55 AM Osman Zakir via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a>> wrote:<br class=""></div><blockquote class="x_x_x_m_-8879995706098138034x_x_gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr" class=""><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><span class="">Also, what executable's path do I put in for SVN?  I just use SVN by right-clicking and then clicking on what I need in the context menu that comes up, since SVN is integrated into my context menus too.  But I don't know what .exe file it's using.  And because of that I don't know what path I need to give to it so it can find it.  </span></div><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><span class=""><br class=""></span></div><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><span class="">For some reason, it's trying to find Nuget as well.  I'll try to find path to it and put it there.</span></div><hr style="display: inline-block; width: 619.78125px;" class=""><div id="x_x_x_m_-8879995706098138034x_x_m_8191804362881219129divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Osman Zakir <<a href="mailto:osmanzakir90@hotmail.com" target="_blank" class="">osmanzakir90@hotmail.com</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Thursday, November 29, 2018 8:43 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span><a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a>; Jonathan Goodwin</font></div></div><div dir="ltr" class=""><div id="x_x_x_m_-8879995706098138034x_x_m_8191804362881219129divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [llvm-dev] Errors in configuration for LLVM with CMake GUI</font><div class=""> </div></div><div dir="ltr" class=""><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><span class="">I probably need GCC for Git bash.  And the one I have is MinGW's GCC, which is the one for Windows.  I don't know why CMake is trying to find Linux headers.  Hopefully someone who knows better what to do will weigh in here.  </span></div><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><span class=""><br class=""></span></div><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><a class="x_x_x_m_-8879995706098138034x_x_m_8191804362881219129x_ms-bgc-nlr x_x_x_m_-8879995706098138034x_x_m_8191804362881219129x_fbmgFYeENi2_gph5O8mp8 x_x_x_m_-8879995706098138034x_x_m_8191804362881219129x_ms-fcl-b x_x_x_m_-8879995706098138034x_x_m_8191804362881219129x_mention" id="x_x_x_m_-8879995706098138034x_x_m_8191804362881219129OWAAM40675" href="mailto:jondgoodwin@gmail.com" target="_blank">@Jonathan Goodwin</a><span class="Apple-converted-space"> </span>, are you sure you didn't have to tell it where the header files for Windows are?  If I need to specify the paths to those headers, how do I do it?</div><hr style="display: inline-block; width: 619.78125px;" class=""><div id="x_x_x_m_-8879995706098138034x_x_m_8191804362881219129x_divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Jonathan Goodwin <<a href="mailto:jondgoodwin@gmail.com" target="_blank" class="">jondgoodwin@gmail.com</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Thursday, November 29, 2018 10:42 AM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Osman Zakir<br class=""><b class="">Cc:</b><span class="Apple-converted-space"> </span><a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [llvm-dev] Errors in configuration for LLVM with CMake GUI</font><div class=""> </div></div><div class=""><div dir="ltr" class="">I checked your CMakeError.log again. The .h include files it is marking as missing are not LLVM include files, but are OS-related (e.g., malloc/malloc.h), and in some cases appear to be potentially Linux ones (dlfcn.h, sys/ioctl, malloc_np.h). I can't imagine why your build might be looking for Linux as opposed to Windows include files. That could be a clue to your problem.<div class=""><br class=""></div><div class="">You said you installed the latest version of GCC before this attempt. This confuses me further, since you are using Visual Studio to build with, and that makes no use of GCC. In fact, honestly I am wondering if your GCC implementation libraries are somehow in your search path wrt environment variables, and your build is actually trying to use the GNU/Linux header files rather than the VS Windows header files, which would certainly blow it up. Again, I am no expert here, so I don't have a definite answer, but based on what little I know, this setup doesn't sound safe. Maybe get rid of GCC completely, as I am not sure when/how you would even use it on the Windows side.</div><div class=""><br class=""></div><div class="">Similarly, I don't believe Perl has anything to do with this either, as neither CMake nor VS make any use of it. But I can't imagine it causing any problems for you to have it.</div><div class=""><br class=""></div><div class="">I don't know anything about <span style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;" class="">Backtrace, Libomp, Compiler-RT, so I cannot help you there. As we have discussed before, the source for clang and lld go into the llvm source folder's "tools" folder by those names. If they are there, after the configure step of the CMake-Gui, options will automatically appear for both clang and lld. You will want to mouse click the checkbox next to CLANG_BUILD_TOOLS and LLD_BUILD_TOOLS prior to hitting the generate button.</span></div><div class=""><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;" class=""><br class=""></span></div><div class=""><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 16px;" class="">Sorry I don't know more than that, but hopefully that will help some ... and then others can chime in if they know more about this than me.</span></div></div><br class=""><div class="x_x_x_m_-8879995706098138034x_x_m_8191804362881219129x_x_gmail_quote"><div dir="ltr" class="">On Thu, Nov 29, 2018 at 2:52 PM Osman Zakir via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a>> wrote:<br class=""></div><blockquote class="x_x_x_m_-8879995706098138034x_x_m_8191804362881219129x_x_gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr" class=""><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><span class=""><div style="font-family: Calibri, Helvetica, sans-serif; font-stretch: normal; margin-bottom: 0px; margin-top: 0px;" class=""><span style="font-stretch: normal; margin-bottom: 0px; margin-top: 0px;" class="">I tried to configure CMake for LLVM using the GUI and I've attached the logs for the attempt to this message.  I installed Perl and the latest version of GCC before that attempt.  There were still errors that stopped it from being able to generate project files, though.  </span></div><div style="font-family: Calibri, Helvetica, sans-serif; font-stretch: normal; margin-bottom: 0px; margin-top: 0px;" class=""><span style="font-stretch: normal; margin-bottom: 0px; margin-top: 0px;" class=""><br class=""></span></div><div style="font-family: Calibri, Helvetica, sans-serif; font-stretch: normal; margin-bottom: 0px; margin-top: 0px;" class=""><span style="font-stretch: normal; margin-bottom: 0px; margin-top: 0px;" class="">I'd like to know how I can get this to work.  How do I tell it where to find Backtrace, Libomp, Compiler-RT, LLD and Clang?  And where exactly is Backtrace?  I copy-pasted the locations for the stuff I checked out for LLVM, so I'm not really sure where the stuff I need to put into CMake for Compiler-RT, Backtrace and Libomp is (it's where it should be, that's all I know).  </span></div><br class=""></span></div><div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><span class=""></span></div></div>_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a><br class=""><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank" rel="noreferrer" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class=""></blockquote></div></div></div></div>_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a><br class=""><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank" rel="noreferrer" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class=""></blockquote></div></div></div></div></blockquote></div></div></div></div><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">LLVM Developers mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a></span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=""><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a></span></div></blockquote></div><br class=""></div></body></html>