Thanks for the quick reply, Edwin.<br><br>I tried with --enable-languages=java and it still fails with the same error:<br><br><span class="HcCDpe"><span class="EP8xU" style="color: rgb(121, 6, 25);"></span> ../llvm-gcc/configure --enable-languages=java,c++,c --prefix=/usr/local<br>
make ENABLE_OPTIMIZED=0<br><br>Actually I found that when I manually add /usr/share/java/libgcj-4.2.jar to the classpath to the failed command, it seems to work:<br><br>/home/pprabhu/llvm/llvm-objects/gcc/gcj -B/home/pprabhu/llvm/llvm-objects/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include --encoding=UTF-8 -Wno-deprecated -C -g <b style="color: rgb(0, 0, 153);">--classpath=/usr/share/java/libgcj-4.2.jar</b> -bootclasspath /home/pprabhu/llvm/llvm-objects/i686-pc-linux-gnu/libjava':'../../../llvm-gcc/libjava':'../../../llvm-gcc/libjava/external/w3c_dom':'../../../llvm-gcc/libjava/external/sax -d /home/pprabhu/llvm/llvm-objects/i686-pc-linux-gnu/libjava ../../../llvm-gcc/libjava/java/lang/Class.java<br>
<br>But I am not sure if this is the right jar file that has to be passed (Is SignerInfo available somewhere within the llvm-gcc source distribution that I am failing to add to the configure script  ? ) More generally, how do I pass some custom jar file to to the configure script, to be added to the class path of gcj ?<br>
<br>- Prakash<br></span><br><div class="gmail_quote">On Wed, Apr 23, 2008 at 2:14 PM, Török Edwin <<a href="mailto:edwintorok@gmail.com">edwintorok@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">Prakash Prabhu wrote:<br>
> Hi,<br>
><br>
> I was trying to build llvm-gcc by following the instructions as given<br>
> in this webpage : <a href="http://llvm.org/docs/GCCFEBuildInstrs.html" target="_blank">http://llvm.org/docs/GCCFEBuildInstrs.html</a><br>
> on Ubuntu 7.10. At step 5 (make ENABLE_OPTIMIZED=0), I am getting make<br>
> errors:<br>
><br>
> make[2]: Leaving directory<br>
> `/home/pprabhu/llvm/llvm-objects/i686-pc-linux-gnu/libjava'<br>
> /home/pprabhu/llvm/llvm-objects/gcc/gcj<br>
> -B/home/pprabhu/llvm/llvm-objects/gcc/<br>
> -B/usr/local/i686-pc-linux-gnu/bin/<br>
> -B/usr/local/i686-pc-linux-gnu/lib/ -isystem<br>
> /usr/local/i686-pc-linux-gnu/include -isystem<br>
> /usr/local/i686-pc-linux-gnu/sys-include --encoding=UTF-8<br>
> -Wno-deprecated -C -g -classpath '' -bootclasspath<br>
> /home/pprabhu/llvm/llvm-objects/i686-pc-linux-gnu/libjava':'../../../llvm-gcc/libjava':'../../../llvm-gcc/libjava/external/w3c_dom':'../../../llvm-gcc/libjava/external/sax<br>
> -d /home/pprabhu/llvm/llvm-objects/i686-pc-linux-gnu/libjava<br>
> ../../../llvm-gcc/libjava/java/lang/Class.java<br>
> ../../../llvm-gcc/libjava/java/util/jar/JarFile.java:44: error: Class<br>
> or interface 'gnu.java.security.pkcs.SignerInfo' not found in import.<br>
>    import gnu.java.security.pkcs.SignerInfo;<br>
>           ^<br>
> ../../../llvm-gcc/libjava/java/util/jar/JarFile.java:520: error: Type<br>
> 'PKCS7SignedData' not found in the declaration of the local variable<br>
> 'sig'.<br>
>                    PKCS7SignedData sig = null;<br>
>                    ^<br>
> ../../../llvm-gcc/libjava/java/util/jar/JarFile.java:563: error: Type<br>
> 'PKCS7SignedData' not found in the declaration of the local variable<br>
> 'sig'.<br>
>            PKCS7SignedData sig = (PKCS7SignedData) pkcs7Dsa.get(alias);<br>
>            ^<br>
> ../../../llvm-gcc/libjava/java/util/jar/JarFile.java:627: error: Type<br>
> 'SignerInfo' not found in the declaration of the argument 'signerInfo'<br>
> of method 'verify'.<br>
>      private void verify(Certificate[] certs, SignerInfo signerInfo,<br>
>                                               ^<br>
> 4 errors<br>
> make[1]: *** [java/lang/Class.class] Error 1<br>
> make[1]: Leaving directory<br>
> `/home/pprabhu/llvm/llvm-objects/i686-pc-linux-gnu/libjava'<br>
> make: *** [all-target-libjava] Error 2<br>
><br>
><br>
> The java file gnu.java.security.pkcs.SignerInfo.java is not present in<br>
> /home/pprabhu/llvm/llvm-objects/i686-pc-linux-gnu/libjava (or any<br>
> other directory in the bootclasspath). I have libjava8-jar installed<br>
> in /usr/share/java. Could this problem be due to libjava8-jar on the<br>
> classpath ? (If so) How do I add /usr/share/java to the classpath and<br>
> pass it to the configure script ? Or is there something else that I am<br>
> missing ?<br>
><br>
> I am sorry if this question has been asked before, I searched the<br>
> archives a bit, but I could not find anything related to this.<br>
><br>
<br>
</div></div>Seems like you didn't give --enable-languages? I don't think java is a<br>
supported language in llvm-gcc.<br>
<br>
Best regards,<br>
--Edwin<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br>