[LLVMdev] "make install" fails in a cross-compilation mode with turned on optimization
Anton Korobeynikov
anton at korobeynikov.info
Thu Jun 21 14:31:51 PDT 2012
Hi Simon,
> 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?
I think you can build binutils which will understand plenty of file
format. This way strip will work on cross-compiled stuff.
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
More information about the llvm-dev
mailing list