Я пытаюсь установить LLVM на Windows 10 с помощью Visual Studio, используя руководство http://llvm.org/docs/GettingStartedVS.html, но я получаю ошибки:
Вот мой взгляд на CMake GUI, где я указывал использовать компилятор C ++ C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
,
Я уже создал новый каталог под названием llvm для сборки, так как не могу собрать в исходном каталоге.
Что я делаю неправильно?
Процесс настройки отображает следующий вывод:
The C compiler identification is unknown
The CXX compiler identification is unknown
The ASM compiler identification is MSVC
Found assembler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
CMake Error at CMakeLists.txt:48 (project):
No CMAKE_C_COMPILER could be found.Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
CMake Error: Generator: execution of make failed. Make command was: "MSBuild.exe" "cmTC_c88f4.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=15.0"Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- broken
CMake Error at C:/Program Files/CMake/share/cmake-3.7/Modules/CMakeTestCXXCompiler.cmake:44 (message):
The C++ compiler "C:/Program Files (x86)/Microsoft Visual Studio
14.0/VC/bin/cl.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/dev/llvm/CMakeFiles/CMakeTmpRun Build Command:"MSBuild.exe" "cmTC_c88f4.vcxproj""/p:Configuration=Debug" "/p:VisualStudioVersion=15.0"Generator: execution of make failed. Make command was: "MSBuild.exe""cmTC_c88f4.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=15.0"CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:48 (project)Configuring incomplete, errors occurred!
See also "C:/dev/llvm/CMakeFiles/CMakeOutput.log".
See also "C:/dev/llvm/CMakeFiles/CMakeError.log".
Я работаю с той же установкой (за исключением Windows 32-bit), выбранная мной версия LLVM — 4.0.0. Я следовал руководству по настройке с помощью Clang.
Я делал записи для всего моего процесса.
Инструкция по сборке LLVM 4.0.0 от источника:
Заметки:
Мои переменные среды для справки:
** ВКЛЮЧЕНО = C: \ Program Files \ Microsoft Visual Studio 14.0 \ VC \ INCLUDE; C: \ Program Files \ Microsoft Visual Studio 14.0 \ VC \ ATLMFC \ INCLUDE; C: \ Program Files \ Windows Kits \ 10 \ include \ 10.0 .10240.0 \ ucrt; C: \ Program Files \ Windows Kits \ NETFXSDK \ 4.6.1 \ include \ um; C: \ Program Files \ Windows Kits \ 8.1 \ include \ shared; C: \ Program Files \ Windows Kits \ 8.1 \ include \ C: \ Program Files \ Windows Kits \ 8.1 \ include \ winrt;
** LIBPATH = C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319; C: \ Program Files \ Microsoft Visual Studio 14.0 \ VC \ LIB; C: \ Program Files \ Microsoft Visual Studio 14.0 \ VC \ ATLMFC \ LIB ; C: \ Program Files \ Windows Kits \ 8.1 \ References \ CommonConfiguration \ Neutral; \ Microsoft.VCLibs \ 14.0 \ References \ CommonConfiguration \ нейтральный;
Задайте переменную среды PATH для таких инструментов llvm, как clang, llc, lli и т. Д., Если они не распознаются в командной строке разработчика.
Надеюсь это поможет!
Других решений пока нет …