[llvm-dev] Help with build (original) (raw)

Michael Kruse via llvm-dev llvm-dev at lists.llvm.org
Thu Jul 30 08:41:04 PDT 2020


This looks like cmake starts processing with a wrong top-level CMakeLists.txt (llvm\docs\CMakeLists.txt). It should be \llvm\CMakeLists.txt. For instance:

C:> cmake -S \llvm -B C:/LLVM/Build

Michael

Am Do., 30. Juli 2020 um 08:34 Uhr schrieb Paul C. Anagnostopoulos via llvm-dev <llvm-dev at lists.llvm.org>:

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.

Here are the outputs from CMake and the contents of CMakeError.log. Any help would be appreciated. Note: When I run a.exe by itself, the return status is 390. --------------------------------- CMake Warning (dev) in CMakeLists.txt: No project() command is present. The top-level CMakeLists.txt file must contain a literal, direct call to the project() command. Add a line of code such as project(ProjectName) near the top of the file, but after cmakeminimumrequired(). CMake is pretending there is a "project(Project)" command on the first line. This warning is for project developers. Use -Wno-dev to suppress it. -- The C compiler identification is GNU 9.2.0 -- The CXX compiler identification is GNU 9.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/MinGW/bin/gcc.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/MinGW/bin/c++.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:106 (include): include could not find load file: AddSphinxTarget

CMake Warning (dev) in CMakeLists.txt: No cmakeminimumrequired command is present. A line of code such as cmakeminimumrequired(VERSION 3.18) should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring incomplete, errors occurred! See also "C:/LLVM/Build/CMakeFiles/CMakeOutput.log". See also "C:/LLVM/Build/CMakeFiles/CMakeError.log". -------------------------------------- The C compiler identification could not be found in "C:/LLVM/Build/CMakeFiles/3.18.0/CompilerIdC/a.exe" --------------------------------------- In spite of that error, here is what appears in the CMake cache: ------------------------------------ //C compiler CMAKECCOMPILER:FILEPATH=C:/MinGW/bin/gcc.exe //A wrapper around 'ar' adding the appropriate '--plugin' option // for the GCC compiler CMAKECCOMPILERAR:FILEPATH=C:/MinGW/bin/gcc-ar.exe //A wrapper around 'ranlib' adding the appropriate '--plugin' option // for the GCC compiler CMAKECCOMPILERRANLIB:FILEPATH=C:/MinGW/bin/gcc-ranlib.exe //Flags used by the C compiler during all build types. CMAKECFLAGS:STRING= //Flags used by the C compiler during DEBUG builds. CMAKECFLAGSDEBUG:STRING=-g //Flags used by the C compiler during MINSIZEREL builds. CMAKECFLAGSMINSIZEREL:STRING=-Os -DNDEBUG //Flags used by the C compiler during RELEASE builds. CMAKECFLAGSRELEASE:STRING=-O3 -DNDEBUG //Flags used by the C compiler during RELWITHDEBINFO builds. CMAKECFLAGSRELWITHDEBINFO:STRING=-O2 -g -DNDEBUG ------------------------------------


LLVM Developers mailing list llvm-dev at lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200730/12efd0e3/attachment.html>



More information about the llvm-dev mailing list