<div dir="ltr">It looks to me like clang is not in your path. If this is the problem we should<br>consider changing ccc to diagnose this.<br><br> - Daniel<br><br><div class="gmail_quote">On Thu, Aug 28, 2008 at 3:11 PM, Moritz Lenz <span dir="ltr"><<a href="mailto:moritz.lenz@web.de">moritz.lenz@web.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I tried to compile the parrot virtual machine<br>
(<a href="http://www.parrotcode.org/" target="_blank">http://www.parrotcode.org/</a>) with llvm-gcc, but utils/ccc always aborts<br>
with 'OSError: [Errno 2] No such file or directory'<br>
<br>
<br>
perl Configure.pl --verbose \<br>
--cc=/home/moritz/tmp/llvm/tools/clang/utils/ccc<br>
Parrot Version 0.7.0 Configure 2.0<br>
...<br>
inter::progs -        Determine what C compiler and linker to use...<br>
 ccflags: -D_REENTRANT -D_GNU_SOURCE -DDEBIAN  -pipe<br>
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64<br>
/home/moritz/tmp/llvm/tools/clang/utils/ccc -D_REENTRANT -D_GNU_SOURCE<br>
-DDEBIAN  -pipe -I/usr/local/include -D_LARGEFILE_SOURCE<br>
-D_FILE_OFFSET_BITS=64  -I./include -c test_3685.c<br>
test_3685.c<br>
clang -emit-llvm-bc -x c -o test_3685.o test_3685.c -D_REENTRANT<br>
-D_GNU_SOURCE -DDEBIAN -I/usr/local/include -D_LARGEFILE_SOURCE<br>
-D_FILE_OFFSET_BITS=64 -I./include<br>
Traceback (most recent call last):<br>
  File "/home/moritz/tmp/llvm/tools/clang/utils/ccc", line 304, in <module><br>
    main(sys.argv[1:])<br>
  File "/home/moritz/tmp/llvm/tools/clang/utils/ccc", line 287, in main<br>
    compile(args, native, save_temps)<br>
  File "/home/moritz/tmp/llvm/tools/clang/utils/ccc", line 109, in compile<br>
    run(command + args)<br>
  File "/home/moritz/tmp/llvm/tools/clang/utils/ccc", line 65, in run<br>
    code = subprocess.call(args)<br>
  File "/usr/lib/python2.5/subprocess.py", line 444, in call<br>
    return Popen(*popenargs, **kwargs).wait()<br>
  File "/usr/lib/python2.5/subprocess.py", line 594, in __init__<br>
    errread, errwrite)<br>
  File "/usr/lib/python2.5/subprocess.py", line 1149, in _execute_child<br>
    raise child_exception<br>
OSError: [Errno 2] No such file or directory<br>
Compilation failed with '/home/moritz/tmp/llvm/tools/clang/utils/ccc'<br>
<br>
I manually tried to compile the file (test_3685.c) by going to<br>
the llvm dir and then running tools/clang/utils/ccc $file (and I tried<br>
it from tools/clang as well) and always got the same error. This feels<br>
like some stupid path problem, which I can't seem to figure out; any ideas?<br>
<br>
I built llvm+clang as described on<br>
<a href="http://clang.llvm.org/get_started.html" target="_blank">http://clang.llvm.org/get_started.html</a> in the section "Building clang<br>
while building llvm", revision is r55495, on Debian GNU/Linux i386 (32 bit)<br>
<br>
Any ideas how I can get ccc to work for me?<br>
<br>
Cheers,<br>
Moritz<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>