On Windows 10 / x64
First, it was giving me errors related to not finding LLVMBuild.txt file.
After reading thought some issues it leave me to the problem related to python path.
so I added the path by flag:
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_WARNINGS=OFF -DPYTHON_EXECUTABLE=C://Python27//python.exe ../llvm
D:\build>cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_WARNINGS=OFF -DPYTHON_EXECUTABLE=C://Python27//python.exe ../llvm
CMake Deprecation Warning at CMakeLists.txt:14 (cmake_policy):
The OLD behavior for policy CMP0051 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- 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-w64-mingw32
-- LLVM default target triple: x86_64-w64-mingw32
-- Constructing LLVMBuild project information
-- 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 X86
-- Targeting XCore
-- Clang version: 7.0.0
-- SampleAnalyzerPlugin ignored -- Loadable modules not supported on this platform.
-- PrintFunctionNames ignored -- Loadable modules not supported on this platform.
-- AnnotateFunctions ignored -- Loadable modules not supported on this platform.
-- BugpointPasses ignored -- Loadable modules not supported on this platform.
-- Configuring done
-- Generating done
-- Build files have been written to: D:/build
D:\build>ninja
[536/3309] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Globals.cpp.obj
FAILED: lib/IR/CMakeFiles/LLVMCore.dir/Globals.cpp.obj
C:\msys64\mingw64\bin\c++.exe -DGTEST_HAS_RTTI=0 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/IR -ID:/llvm/lib/IR -Iinclude -ID:/llvm/include -Wa,-mbig-obj -Werror=date-time -std=gnu++11 -w -O2 -DNDEBUG -fno-exceptions -fno-rtti -MD -MT lib/IR/CMakeFiles/LLVMCore.dir/Globals.cpp.obj -MF lib\IR\CMakeFiles\LLVMCore.dir\Globals.cpp.obj.d -o lib/IR/CMakeFiles/LLVMCore.dir/Globals.cpp.obj -c D:/llvm/lib/IR/Globals.cpp
D:/llvm/lib/IR/Globals.cpp:37:35: error: static assertion failed: unexpected GlobalValue size growth
static_assert(sizeof(GlobalValue) ==
~~~~~~~~~~~~~~~~~~~~^~
sizeof(Constant) + 3 * sizeof(void *) + 2 * sizeof(unsigned),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[543/3309] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Dominators.cpp.obj
ninja: build stopped: subcommand failed.
On Windows 10 / x64
First, it was giving me errors related to not finding LLVMBuild.txt file.
After reading thought some issues it leave me to the problem related to python path.
so I added the path by flag:
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_WARNINGS=OFF -DPYTHON_EXECUTABLE=C://Python27//python.exe ../llvm