[LLVMdev] The make install fails in cross-compile mode
Atanasyan, Simon
satanasyan at mips.com
Sat Oct 22 12:21:54 PDT 2011
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.
WBR
--
Simon Atanasyan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cross_strip.patch
Type: text/x-patch
Size: 1124 bytes
Desc: cross_strip.patch
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111022/31e32741/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cross_strip.configure.patch
Type: text/x-patch
Size: 5124 bytes
Desc: cross_strip.configure.patch
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111022/31e32741/attachment-0001.bin>
More information about the llvm-dev
mailing list