ibinti / bugvm

This is BugVM
352 stars 51 forks source link

cross compile llvm for Windows #101

Closed ibinti closed 7 years ago

ibinti commented 8 years ago

trying mingw-w64-4.0.4

: fatal error: machine/endian.h: No such file or directory compilation terminated. make[5]: [lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o] Error 1 make[4]: [lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2 make[3]: [all] Error 2 make[2]: [extllvm-prefix/src/extllvm-stamp/extllvm-build] Error 2 make[1]: [CMakeFiles/extllvm.dir/all] Error 2 make: [all] Error 2 windows-x86_64 build failed

ref: https://llvm.org/bugs/show_bug.cgi?id=17243

ibinti commented 8 years ago

using visual studio https://github.com/CRogers/LLVM-Windows-Binaries/blob/master/compiling.md

ibinti commented 8 years ago

http://llvm.org/releases/download.html

ibinti commented 8 years ago

what's wrong with pre-compiled Windows binary?

ibinti commented 8 years ago

[ 5%] Linking CXX static library ../libLLVMTableGen.a [ 5%] Built target LLVMTableGen Scanning dependencies of target ConfigureNativeLLVM [ 5%] Built target ConfigureNativeLLVM Scanning dependencies of target LLVMNativeTableGen [ 5%] Building native TableGen... make[6]: * No rule to make target 'llvm-tblgen'. Stop. utils/TableGen/CMakeFiles/LLVMNativeTableGen.dir/build.make:60: recipe for target 'native/bin/llvm-tblgen' failed make[5]: * [native/bin/llvm-tblgen] Error 2 CMakeFiles/Makefile2:348: recipe for target 'utils/TableGen/CMakeFiles/LLVMNativeTableGen.dir/all' failed make[4]: * [utils/TableGen/CMakeFiles/LLVMNativeTableGen.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make[3]: * [all] Error 2 CMakeFiles/extllvm.dir/build.make:111: recipe for target 'extllvm-prefix/src/extllvm-stamp/extllvm-build' failed make[2]: * [extllvm-prefix/src/extllvm-stamp/extllvm-build] Error 2 CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/extllvm.dir/all' failed make[1]: * [CMakeFiles/extllvm.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *\ [all] Error 2 windows-x86_64 build failed

ibinti commented 7 years ago

138