<div>Hi all,</div><div><br></div><div>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. </div>

<div><br></div><div><br><i># ../bin/clang hello.c <br>clang: warning: not using the clang compiler for the 'arm' architecture<br>clang: error: unable to make temporary file: /tmp/cc: can't make unique filename: No such file or directory<br>

clang: error: unable to make temporary file: /tmp/cc: can't make unique filename: No such file or directory<br># </i></div><div><br></div><div>my target device doesnot hav /tmp and it doesnot have write permission for creating any directory on root "/". is there anyway to tell clang to create temporary files in some other location other than "/tmp" ? can anyone help me in resolving this issue? pls let me know in case if any more information is required.</div>

<div><br></div><div><br></div><div>i also tried the following method. in this method i created the llvm bitcode in my host x86 machine and then copied it to target and from target if i try to run the bitcode using lli tool i am getting the following error.</div>

<div><i><br></i></div><i># ../../llvm-2.6-arm/bin/lli nestedloop.bc <br>lli: /home/prasanth/LLVM_ARM/llvm-</i><i>target/llvm-2.6/include/llvm/</i><i>ADT/ilist.h:197: typename bidirectional_iterator<NodeTy, int>::reference llvm::ilist_iterator<NodeTy>::</i><i>operator*() const [with NodeTy = llvm::RecyclerStruct]: Assertion `Traits::getNext(NodePtr) != 0 && "Dereferencing end()!"' failed.<br>




0   lli 0x007702b4<br>Stack dump:<br>0.      Program arguments: ../../llvm-2.6-arm/bin/lli nestedloop.bc <br>1.      Running pass 'ARM Instruction Selection' on function '@main'<br>Aborted<br># <br><br></i><div>

<i><br></i>pls let me know how can i resolve these two issues. the target details are </div><div>target arch : arm</div><div>target cpu : arm1136jf-s</div><div><br>

<br></div><div>Thanks and Regards,<br clear="all">Prasanth J<br><br><br><br>
</div>