[LLVMdev] notes on llvmc2
Mikhail Glushenkov
foldr at codedgers.com
Fri May 30 12:58:05 PDT 2008
Hi Holger,
first of all, thanks for your feedback.
> I already compiled llvm, but llvm-gcc was still compiling. Now I tried the new
llvmc2:
>
> $ llvmc2 -opt -v main.c
> llvm-g++ -c -x c main.c -o /tmp/llvm_KeApik/main.bc -emit-llvm
> llvmc2: Can't find program 'llvm-g++'
>
>
> * after this, the directory /tmp/llvm_KeApik was not removed
Strange, I couldn't reproduce this. What system are you using?
> * why calling "llvm-g++ -x c" and not "llvm-gcc" ?
> ...
> $ llvmc2 -opt -v main.c
> llvm-g++ -c -x c main.c -o /tmp/llvm_084K2D/main.bc -emit-llvm
> opt /tmp/llvm_084K2D/main.bc -o /tmp/llvm_084K2D/main.bc-LXq9ea
> opt: error opening '/tmp/llvm_084K2D/main.bc-LXq9ea': file exists!
> Use -f command line argument to force output
Thanks for reporting these issues, I've fixed them in SVN.
> $ rm -rf /tmp/llvm_*
BTW, you didn't have to do this, llvmc always creates a unique temporary
directory for each invocation.
More information about the llvm-dev
mailing list