Hi all<br><br>I'm a new to LLVM. I was unable to browse all the archive since I couldn't locate any search option.<br>So here is my issue:<br><br>I installed LLVM under openSUSE 11.3 with the following llvm tools<br>
----------<br>llvm-gcc (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2.8)<br>----------<br>Low Level Virtual Machine (<a href="http://llvm.org/">http://llvm.org/</a>):<br>  llvm version 2.6<br>  Optimized build.<br>
  Built Jul 24 2010(08:41:55).<br><br>  Registered Targets:<br>    x86    - 32-bit X86: Pentium-Pro and above<br>    x86-64 - 64-bit X86: EM64T and AMD64<br>---------<br><br>The issue is that the LLI can't read the .bc file generated using:<br>
<pre>% llvm-gcc -O3 -emit-llvm hello.c -c -o hello.bc<br><br>It issues the following error message:<br>LLVM ERROR: Error reading function 'main' from bitcode file: Unknown instruction<br><br>And also note that I installed LLVM from <a href="http://software.opensuse.org">software.opensuse.org</a><br>
<br>How can this be solved.<br>I would also appreciate if anyone can point me to any source for beginners so that the mailing list can <br>be for interesting issues.<br><br>Regards<br>Toussaint <br><br><br></pre><br><br>