[cfe-dev] Problem running clang on ARM

Prasanth J j.prasanth.j at gmail.com
Wed Nov 4 02:34:57 PST 2009


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
# *

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.

pls let me know how can i resolve this issues. the target details are
target arch : arm
target cpu : arm1136jf-s


Thanks and Regards,
Prasanth J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091104/08e81e8a/attachment.html>


More information about the cfe-dev mailing list