[LLVMdev] The make install fails in cross-compile mode
Eric Christopher
echristo at apple.com
Tue Oct 25 17:54:56 PDT 2011
On Oct 22, 2011, at 12:21 PM, Atanasyan, Simon wrote:
> Hi,
>
> I cross-compile llvm/clang. The build platform is x86_64-linux-gnu. The host platform is mips-linux-gnu. Llvm and clang built successfully but "make install" shows the following error:
>
> % make install
> llvm[0]: Installing Release+Asserts /home/simon/work/install/clang/bin/llvm-tblgen
> strip: Unable to recognise the format of the input file `/home/simon/work/install/clang/bin/llvm-tblgen'
> /usr/bin/install: strip process terminated abnormally
> make: *** [/home/simon/work/install/clang/bin/llvm-tblgen] Error 1
>
> The problem is that "install" is run with "-s" argument to strip symbols but always uses default "strip" executable even in cross-compile mode. To fix the bug I check for the "strip" executable in the configure.ac and provide the result to the "install" command using "--strip-program" argument. The patches are attached to this email.
Thanks for the patch!
Committed here:
M configure
M Makefile.config.in
M Makefile.rules
M autoconf/configure.ac
r142997 = 117b04e97e24be3c2ed94ae0833578d9a17e6304 (refs/remotes/origin/master)
-eric
More information about the llvm-dev
mailing list