Problem running lli on ARM

Hi all,

I am in the process of developing a installer utility for ARM target which can compile any source files to ARM native executable. This installer utility should be present on target itself (whether this is feasible or not?). For achieving this i compiled llvm with clang for target. I copied the binaries to target and when it tried to compile a sample c code i am getting the following error.

# …/bin/clang hello.c
clang: warning: not using the clang compiler for the ‘arm’ architecture
clang: error: unable to make temporary file: /tmp/cc: can’t make unique filename: No such file or directory
clang: error: unable to make temporary file: /tmp/cc: can’t make unique filename: No such file or directory