Hi, I was trying to build llvm-gcc by following the instructions as given in this webpage : http://llvm.org/docs/GCCFEBuildInstrs.html on Ubuntu 7.10. At step 5 (make ENABLE_OPTIMIZED=0), I am getting make errors: make[2]: Leaving directory `/home/pprabhu/llvm/llvm-objects/i686-pc-linux-gnu/libjava' /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 -classpath '' -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 ../../../llvm-gcc/libjava/java/util/jar/JarFile.java:44: error: Class or interface 'gnu.java.security.pkcs.SignerInfo' not found in import. import gnu.java.security.pkcs.SignerInfo; ^ ../../../llvm-gcc/libjava/java/util/jar/JarFile.java:520: error: Type 'PKCS7SignedData' not found in the declaration of the local variable 'sig'. PKCS7SignedData sig = null; ^ ../../../llvm-gcc/libjava/java/util/jar/JarFile.java:563: error: Type 'PKCS7SignedData' not found in the declaration of the local variable 'sig'. PKCS7SignedData sig = (PKCS7SignedData) pkcs7Dsa.get(alias); ^ ../../../llvm-gcc/libjava/java/util/jar/JarFile.java:627: error: Type 'SignerInfo' not found in the declaration of the argument 'signerInfo' of method 'verify'. private void verify(Certificate[] certs, SignerInfo signerInfo, ^ 4 errors make[1]: *** [java/lang/Class.class] Error 1 make[1]: Leaving directory `/home/pprabhu/llvm/llvm-objects/i686-pc-linux-gnu/libjava' make: *** [all-target-libjava] Error 2 The java file gnu.java.security.pkcs.SignerInfo.java is not present in /home/pprabhu/llvm/llvm-objects/i686-pc-linux-gnu/libjava (or any other directory in the bootclasspath). I have libjava8-jar installed in /usr/share/java. Could this problem be due to libjava8-jar on the classpath ? (If so) How do I add /usr/share/java to the classpath and pass it to the configure script ? Or is there something else that I am missing ? I am sorry if this question has been asked before, I searched the archives a bit, but I could not find anything related to this. thanks, Prakash -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080423/b2a39b4f/attachment.html>
Prakash Prabhu wrote:> Hi, > > I was trying to build llvm-gcc by following the instructions as given > in this webpage : http://llvm.org/docs/GCCFEBuildInstrs.html > on Ubuntu 7.10. At step 5 (make ENABLE_OPTIMIZED=0), I am getting make > errors: > > make[2]: Leaving directory > `/home/pprabhu/llvm/llvm-objects/i686-pc-linux-gnu/libjava' > /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 -classpath '' -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 > ../../../llvm-gcc/libjava/java/util/jar/JarFile.java:44: error: Class > or interface 'gnu.java.security.pkcs.SignerInfo' not found in import. > import gnu.java.security.pkcs.SignerInfo; > ^ > ../../../llvm-gcc/libjava/java/util/jar/JarFile.java:520: error: Type > 'PKCS7SignedData' not found in the declaration of the local variable > 'sig'. > PKCS7SignedData sig = null; > ^ > ../../../llvm-gcc/libjava/java/util/jar/JarFile.java:563: error: Type > 'PKCS7SignedData' not found in the declaration of the local variable > 'sig'. > PKCS7SignedData sig = (PKCS7SignedData) pkcs7Dsa.get(alias); > ^ > ../../../llvm-gcc/libjava/java/util/jar/JarFile.java:627: error: Type > 'SignerInfo' not found in the declaration of the argument 'signerInfo' > of method 'verify'. > private void verify(Certificate[] certs, SignerInfo signerInfo, > ^ > 4 errors > make[1]: *** [java/lang/Class.class] Error 1 > make[1]: Leaving directory > `/home/pprabhu/llvm/llvm-objects/i686-pc-linux-gnu/libjava' > make: *** [all-target-libjava] Error 2 > > > The java file gnu.java.security.pkcs.SignerInfo.java is not present in > /home/pprabhu/llvm/llvm-objects/i686-pc-linux-gnu/libjava (or any > other directory in the bootclasspath). I have libjava8-jar installed > in /usr/share/java. Could this problem be due to libjava8-jar on the > classpath ? (If so) How do I add /usr/share/java to the classpath and > pass it to the configure script ? Or is there something else that I am > missing ? > > I am sorry if this question has been asked before, I searched the > archives a bit, but I could not find anything related to this. >Seems like you didn't give --enable-languages? I don't think java is a supported language in llvm-gcc. Best regards, --Edwin
Thanks for the quick reply, Edwin. I tried with --enable-languages=java and it still fails with the same error: ../llvm-gcc/configure --enable-languages=java,c++,c --prefix=/usr/local make ENABLE_OPTIMIZED=0 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: /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 *--classpath=/usr/share/java/libgcj-4.2.jar* -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 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 ? - Prakash On Wed, Apr 23, 2008 at 2:14 PM, Török Edwin <edwintorok at gmail.com> wrote:> Prakash Prabhu wrote: > > Hi, > > > > I was trying to build llvm-gcc by following the instructions as given > > in this webpage : http://llvm.org/docs/GCCFEBuildInstrs.html > > on Ubuntu 7.10. At step 5 (make ENABLE_OPTIMIZED=0), I am getting make > > errors: > > > > make[2]: Leaving directory > > `/home/pprabhu/llvm/llvm-objects/i686-pc-linux-gnu/libjava' > > /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 -classpath '' -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 > > ../../../llvm-gcc/libjava/java/util/jar/JarFile.java:44: error: Class > > or interface 'gnu.java.security.pkcs.SignerInfo' not found in import. > > import gnu.java.security.pkcs.SignerInfo; > > ^ > > ../../../llvm-gcc/libjava/java/util/jar/JarFile.java:520: error: Type > > 'PKCS7SignedData' not found in the declaration of the local variable > > 'sig'. > > PKCS7SignedData sig = null; > > ^ > > ../../../llvm-gcc/libjava/java/util/jar/JarFile.java:563: error: Type > > 'PKCS7SignedData' not found in the declaration of the local variable > > 'sig'. > > PKCS7SignedData sig = (PKCS7SignedData) pkcs7Dsa.get(alias); > > ^ > > ../../../llvm-gcc/libjava/java/util/jar/JarFile.java:627: error: Type > > 'SignerInfo' not found in the declaration of the argument 'signerInfo' > > of method 'verify'. > > private void verify(Certificate[] certs, SignerInfo signerInfo, > > ^ > > 4 errors > > make[1]: *** [java/lang/Class.class] Error 1 > > make[1]: Leaving directory > > `/home/pprabhu/llvm/llvm-objects/i686-pc-linux-gnu/libjava' > > make: *** [all-target-libjava] Error 2 > > > > > > The java file gnu.java.security.pkcs.SignerInfo.java is not present in > > /home/pprabhu/llvm/llvm-objects/i686-pc-linux-gnu/libjava (or any > > other directory in the bootclasspath). I have libjava8-jar installed > > in /usr/share/java. Could this problem be due to libjava8-jar on the > > classpath ? (If so) How do I add /usr/share/java to the classpath and > > pass it to the configure script ? Or is there something else that I am > > missing ? > > > > I am sorry if this question has been asked before, I searched the > > archives a bit, but I could not find anything related to this. > > > > Seems like you didn't give --enable-languages? I don't think java is a > supported language in llvm-gcc. > > Best regards, > --Edwin > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080423/2cd4bba8/attachment.html>
Hello, Prakash> I tried with --enable-languages=java and it still fails with the same > error:gcj is not supported by llvm-gcc (and even with build w/o LLVM, as you're doing) -- With best regards, Anton Korobeynikov. Faculty of Mathematics & Mechanics, Saint Petersburg State University.
Thanks for your replies, Edwin and Anton. I finally got it to work by following Edwin's configure command line and instructions in README.LLVM. regards, Prakash On Wed, Apr 23, 2008 at 3:33 PM, Anton Korobeynikov <asl at math.spbu.ru> wrote:> Hello, Prakash > > > I tried with --enable-languages=java and it still fails with the same > > error: > gcj is not supported by llvm-gcc (and even with build w/o LLVM, as > you're doing) > > -- > With best regards, Anton Korobeynikov. > > Faculty of Mathematics & Mechanics, Saint Petersburg State University. > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080423/b0ff967e/attachment.html>