[LLVMdev] "make install" fails in a cross-compilation mode with turned on optimization

Simon Atanasyan satanasyan at mips.com
Wed Jun 20 12:59:23 PDT 2012


Hi,

LLVM "make install" command fails in a cross-compilation mode if
optimization is turned on. In that case "install" program is executed
on x86 host with "-s" option and cannot strip target platform binaries
because "install" does not recognize format of these files. Running
"make install" on the target platform is not a solution. In that case
"install" cannot recognize format of "llvm-config-host" file.

What is the correct way for cross-building LLVM/CLang with turned on
optimization? Is it a known problem?

--
Simon



More information about the llvm-dev mailing list