<div dir="ltr">This looks like cmake starts processing with a wrong top-level CMakeLists.txt (llvm\docs\CMakeLists.txt). It should be <your llvm-project checkout>\llvm\CMakeLists.txt. For instance:<div><br></div><div>C:\> cmake -S 

<your llvm-project checkout>\llvm -B C:/LLVM/Build</div><div><br></div><div>Michael<br><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Do., 30. Juli 2020 um 08:34 Uhr schrieb Paul C. Anagnostopoulos via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I need some help getting the LLVM build to work. If this is not the right place to ask, please let me know. I set MSE and Malwarebytes so they ignore the build directory tree and don't complain about a.exe. I also ran this CMake disabling both of them, just in case that mattered; it didn't.<br>
<br>
Here are the outputs from CMake and the contents of CMakeError.log. Any help would be appreciated.<br>
<br>
Note: When I run a.exe by itself, the return status is 390.<br>
<br>
---------------------------------<br>
CMake Warning (dev) in CMakeLists.txt:<br>
  No project() command is present.  The top-level CMakeLists.txt file must<br>
  contain a literal, direct call to the project() command.  Add a line of<br>
  code such as<br>
<br>
    project(ProjectName)<br>
<br>
  near the top of the file, but after cmake_minimum_required().<br>
<br>
  CMake is pretending there is a "project(Project)" command on the first<br>
  line.<br>
This warning is for project developers.  Use -Wno-dev to suppress it.<br>
<br>
-- The C compiler identification is GNU 9.2.0<br>
-- The CXX compiler identification is GNU 9.2.0<br>
-- Detecting C compiler ABI info<br>
-- Detecting C compiler ABI info - done<br>
-- Check for working C compiler: C:/MinGW/bin/gcc.exe - skipped<br>
-- Detecting C compile features<br>
-- Detecting C compile features - done<br>
-- Detecting CXX compiler ABI info<br>
-- Detecting CXX compiler ABI info - done<br>
-- Check for working CXX compiler: C:/MinGW/bin/c++.exe - skipped<br>
-- Detecting CXX compile features<br>
-- Detecting CXX compile features - done<br>
CMake Error at CMakeLists.txt:106 (include):<br>
  include could not find load file:<br>
<br>
    AddSphinxTarget<br>
<br>
<br>
CMake Warning (dev) in CMakeLists.txt:<br>
  No cmake_minimum_required command is present.  A line of code such as<br>
<br>
    cmake_minimum_required(VERSION 3.18)<br>
<br>
  should be added at the top of the file.  The version specified may be lower<br>
  if you wish to support older CMake versions for this project.  For more<br>
  information run "cmake --help-policy CMP0000".<br>
This warning is for project developers.  Use -Wno-dev to suppress it.<br>
<br>
-- Configuring incomplete, errors occurred!<br>
See also "C:/LLVM/Build/CMakeFiles/CMakeOutput.log".<br>
See also "C:/LLVM/Build/CMakeFiles/CMakeError.log".<br>
--------------------------------------<br>
The C compiler identification could not be found in "C:/LLVM/Build/CMakeFiles/3.18.0/CompilerIdC/a.exe"<br>
---------------------------------------<br>
<br>
In spite of that error, here is what appears in the CMake cache:<br>
<br>
------------------------------------<br>
//C compiler<br>
CMAKE_C_COMPILER:FILEPATH=C:/MinGW/bin/gcc.exe<br>
<br>
//A wrapper around 'ar' adding the appropriate '--plugin' option<br>
// for the GCC compiler<br>
CMAKE_C_COMPILER_AR:FILEPATH=C:/MinGW/bin/gcc-ar.exe<br>
<br>
//A wrapper around 'ranlib' adding the appropriate '--plugin' option<br>
// for the GCC compiler<br>
CMAKE_C_COMPILER_RANLIB:FILEPATH=C:/MinGW/bin/gcc-ranlib.exe<br>
<br>
//Flags used by the C compiler during all build types.<br>
CMAKE_C_FLAGS:STRING=<br>
<br>
//Flags used by the C compiler during DEBUG builds.<br>
CMAKE_C_FLAGS_DEBUG:STRING=-g<br>
<br>
//Flags used by the C compiler during MINSIZEREL builds.<br>
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG<br>
<br>
//Flags used by the C compiler during RELEASE builds.<br>
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG<br>
<br>
//Flags used by the C compiler during RELWITHDEBINFO builds.<br>
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG<br>
------------------------------------ <br>
<br>
_______________________________________________<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="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>