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.
Here’s the output from CMake:
"
Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
Native target architecture is X86
Threads enabled.
Doxygen disabled.
Go bindings disabled.
Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
OCaml bindings disabled.
Could NOT find Python module pygments
Could NOT find Python module pygments.lexers.c_cpp
Could NOT find Python module yaml
LLVM host triple: x86_64-pc-windows-msvc
LLVM default target triple: x86_64-pc-windows-msvc
Using Debug VC++ CRT: MDd
Using Release VC++ CRT: MD
Using MinSizeRel VC++ CRT: MD
Using RelWithDebInfo VC++ CRT: MD
Constructing LLVMBuild project information
CMake Error at C:/Program Files/CMake/share/cmake-3.13/Modules/FindSubversion.cmake:123 (message):
Command “C:/Program Files/TortoiseSVN/bin/ info C:/llvm” failed with
output:
Call Stack (most recent call first):
cmake/modules/VersionFromVCS.cmake:19 (subversion_wc_info)
CMakeLists.txt:757 (add_version_info_from_vcs)
LLVMHello ignored – Loadable modules not supported on this platform.
Targeting AArch64
Targeting AMDGPU
Targeting ARM
Targeting BPF
Targeting Hexagon
Targeting Lanai
Targeting Mips
Targeting MSP430
Targeting NVPTX
Targeting PowerPC
Targeting Sparc
Targeting SystemZ
Targeting WebAssembly
Targeting X86
Targeting XCore
Compiler-RT supported architectures: x86_64
Builtin supported architectures: x86_64
Builtin supported architectures: x86_64
CMake Error at C:/Program Files/CMake/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Perl (missing: PERL_EXECUTABLE)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.13/Modules/FindPerl.cmake:75 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
projects/openmp/runtime/cmake/config-ix.cmake:147 (find_package)
projects/openmp/runtime/CMakeLists.txt:234 (include)
Configuring incomplete, errors occurred!
See also “C:/llvm/build/CMakeFiles/CMakeOutput.log”.
See also “C:/llvm/build/CMakeFiles/CMakeError.log”.
"
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.