The problem seems to be the executable
llvm-config-host
this is the wrong file type for the machine that I'm on.
I'm building a hosted mips clang/llvm compiler, starting by compiling
llvm with clang/llvm on x86 producing a mips executable.
The question then is where to run install.
If I run install on the mips target, then file llvm-config-host is an
x86 executable so strip will fail.
../install/bin/llvm-config-host: ELF 64-bit LSB executable, x86-64,
version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux
2.6.24, BuildID[sha1]=0x64e37bd56c1edc16be1447ec301bfce3f207477d, not
stripped
rkotler@mipsswbrd006-le:~/caviumllvmwclang/build$
If I tried to do the install on the host, there would be a bigger
problem because then strip would fail on every other executable.
So the main problem is that install should not be trying to strip
rkotler@mipsswbrd006-le:~/caviumllvmwclang/build$ which strip
/usr/bin/strip
rkotler@mipsswbrd006-le:~/caviumllvmwclang/build$
Perhaps I just need to delete that file from the build directory.