[LLVMdev] Error trying to build llvm-gcc

Török Edwin edwintorok at gmail.com
Wed Apr 23 11:14:35 PDT 2008


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



More information about the llvm-dev mailing list