Hi, all.<br>I have written a pass to do some inter-procedure work. Then I tried to apply it to currently existing software. But I failed to compile most of them using llvm-gcc. <br><br>When I run <b><i> ./configure CC=llvm-gcc CFLAGS="-emit-llvm -c"</i></b>, it reports "<b>cannot run C compiled programs</b>" and so on and then exit.<br>
( I use CFLAGS="-emit-llvm -c" to produce LLVM bitcode so that my pass can run on it. )<br><br>My solution is using the default CC and CFLAGS to <b><i>configure</i></b>, and before we <b><i>make</i></b>, I write a shell script to replace the default gcc. This script will invoke <b><i>llvm-gcc</i></b> later and pass arguments "<b><i>-emit-llvm -c</i></b>" to the compiler. <br>
<br>However, there still exists many errors when I <b><i>make</i></b>, many of them are very strange.<br><br>What's wrong here? It confused me a few days. Can we use llvm-gcc to compile large project and generate IR? How?<br>
<br>Thanks!<br><br><br>Gauss<br><br><br>