chris.gray at kiffer.be
2013-Feb-20 15:00 UTC
[LLVMdev] [vmkit] Cross-compilation problems
OK, figured out that to cross-compile LLVM for another target I need to ./configure with --build=<build system triple> --host=<target system triple>. This works fine for llvm, clang and even (apparently) classpath but when I try to do the same for vmkit2 it fails with "checking for ../../classpath-0.99/<build-dir>/lib/... configure: error: cannot check for file existence when cross compiling". Is it supposed to be possible to cross-compile VMKit in this way? Regards Chris
Hi Chris, We have never tested cross-compilation with vmkit, but it should not raise any problem: -> if you want to compile vmkit for a foreign platform, you just have to use your cross-compiler to compile vmkit, just as with any other project (you will maybe have to hack the build process to indicate in the CFLAGS the target platform to clang). -> if you want to translate java code directly for another platform, you have to compile vmkit without any option on your host and then use the static compiler to translate your Java code into llvm code. At this step, you just have to compile the resulting llvm code with your cross-compiler. As you will also need the vmkit library for the target platform, you will have to cross-compile vmkit and link the llvm code generated by the vmkit static compiler with the vmkit built for the target platform. Regards, Gaël 2013/2/20 <chris.gray at kiffer.be>:> > OK, figured out that to cross-compile LLVM for another target I need to > ./configure with --build=<build system triple> --host=<target system > triple>. This works fine for llvm, clang and even (apparently) classpath > but when I try to do the same for vmkit2 it fails with "checking for > ../../classpath-0.99/<build-dir>/lib/... configure: error: cannot check > for file existence when cross compiling". Is it supposed to be possible > to cross-compile VMKit in this way? > > Regards > > Chris > > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-- ------------------------------------------------------------------- Gaël Thomas, Associate Professor, UPMC http://pagesperso-systeme.lip6.fr/Gael.Thomas/ -------------------------------------------------------------------