[kaffe] Building error, Missing Classpath uClibc

Gustavo Guillermo Pérez gustavo at compunauta.com
Tue Mar 25 13:47:09 PDT 2008


Well, I've installed classpath, so next was:
./configure --prefix=/usr/local/kafe --enable-gmp --enable-gcj --with-classpath-classes=/usr/share/classpath/glibj.zip --with-target-classpath-classes=/usr/share/classpath/glibj.zip --with-classpath-libdir=/usr/lib/classpath/ --with-classpath-includedir=/usr/include/

and next make but I've found some....

gusgus kaffe_cvs20080319 # make
Making all in replace
make[1]: Entering directory `/GUS/kaffe/kaffe_cvs20080319/replace'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/GUS/kaffe/kaffe_cvs20080319/replace'
Making all in libraries/javalib
make[1]: Entering directory `/GUS/kaffe/kaffe_cvs20080319/libraries/javalib'
Making all in vmspecific
make[2]: Entering directory 
`/GUS/kaffe/kaffe_cvs20080319/libraries/javalib/vmspecific'
CLASSPATH=.:./.:
$CLASSPATH /etc/java-config-2/current-system-vm/bin/javac -d . -bootclasspath /usr/share/classpath/glibj.zip:.:.   
gnu/classpath/VMStackWalker.java gnu/classpath/VMSystemProperties.java 
java/lang/Runtime.java java/lang/VMRuntime.java java/lang/VMString.java 
java/lang/VMSystem.java java/lang/VMThread.java java/lang/VMThrowable.java 
java/lang/ref/Reference.java java/lang/reflect/Constructor.java 
java/lang/reflect/Field.java java/lang/reflect/Method.java 
java/security/VMAccessController.java java/security/VMSecureRandom.java 
org/kaffe/jar/ExecJar.java org/kaffe/jar/ExecJarName.java 
org/kaffe/security/LameRandomness.java org/kaffe/security/Randomness.java 
org/kaffe/security/UnixRandomness.java org/kaffe/util/NotImplemented.java 
org/kaffe/util/Ptr.java org/kaffe/util/SupportDisabled.java

Found 1 semantic error compiling "java/lang/ref/Reference.java":

   184.         return q.enqueue(this);
                       ^-------------^
*** Semantic Error: The type of this return expression, "void", does not match 
the return type of the method, "boolean".

Found 2 semantic errors compiling "java/lang/VMThread.java":

   129.                   Thread.UncaughtExceptionHandler handler;
                                 ^----------------------^
*** Semantic Error: Type "java.lang.Thread$UncaughtExceptionHandler" was not 
found.


   130.                   handler = thread.getUncaughtExceptionHandler();
                                    ^----------------------------------^
*** Semantic Error: No accessible method with 
signature "getUncaughtExceptionHandler()" was found in 
type "java.lang.Thread".

Found 21 semantic errors compiling "java/lang/reflect/Constructor.java":

    43. import gnu.java.lang.reflect.MethodSignatureParser;
               ^-----------------------------------------^
*** Semantic Error: The import "gnu/java/lang/reflect/MethodSignatureParser" 
is not valid, since it does not name a type in a package.


    82.   implements GenericDeclaration, Member
                     ^----------------^
*** Semantic Error: Type "java.lang.reflect.GenericDeclaration" was not found.


   152.     return (getModifiersInternal() & Modifier.SYNTHETIC) != 0;
                                                      ^-------^
*** Semantic Error: No accessible field named "SYNTHETIC" was found in 
type "java.lang.reflect.Modifier".


   162.     return (getModifiersInternal() & Modifier.VARARGS) != 0;
                                                      ^-----^
*** Semantic Error: No accessible field named "VARARGS" was found in 
type "java.lang.reflect.Modifier".


   235.     Modifier.toString(getModifiers(), sb).append(' ');
            ^-----------------------------------^
*** Semantic Error: No applicable overload for a method with 
signature "toString(int, java.lang.StringBuilder)" was found in 
type "java.lang.reflect.Modifier". Perhaps you wanted the overloaded 
version "java.lang.StringBuffer toString(int $1, java.lang.StringBuffer $2);" 
instead?


   240.         sb.append(ClassHelper.getUserName(c[0]));
                          ^---------------------------^
*** Semantic Error: No accessible method with 
signature "getUserName(java.lang.Class)" was found in 
type "gnu.java.lang.ClassHelper".


   242.           sb.append(',').append(ClassHelper.getUserName(c[i]));
                                        ^---------------------------^
*** Semantic Error: No accessible method with 
signature "getUserName(java.lang.Class)" was found in 
type "gnu.java.lang.ClassHelper".


   256.   static void addTypeParameters(StringBuilder sb, TypeVariable[] 
typeArgs)
                                                          ^----------^
*** Semantic Error: Type "java.lang.reflect.TypeVariable" was not found.


   267.     sb.append("> ");
            ^--------------^
*** Semantic Error: This statement is unreachable.


   273.     Modifier.toString(getModifiers(), sb).append(' ');
            ^-----------------------------------^
*** Semantic Error: No applicable overload for a method with 
signature "toString(int, java.lang.StringBuilder)" was found in 
type "java.lang.reflect.Modifier". Perhaps you wanted the overloaded 
version "java.lang.StringBuffer toString(int $1, java.lang.StringBuffer $2);" 
instead?


   274.     addTypeParameters(sb, getTypeParameters());
            ^----------------------------------------^
*** Semantic Error: No applicable overload for a method with 
signature "addTypeParameters(java.lang.StringBuilder, ??)" was found in 
type "java.lang.reflect.Constructor". Perhaps you wanted the overloaded 
version "void addTypeParameters(java.lang.StringBuilder sb, ?? typeArgs);" 
instead?


   347.   public TypeVariable[] getTypeParameters()
                 ^----------^
*** Semantic Error: Type "TypeVariable" was not found.


   351.       return new TypeVariable[0];
                         ^----------^
*** Semantic Error: Type "TypeVariable" was not found.


   352.     MethodSignatureParser p = new MethodSignatureParser(this, sig);
            ^-------------------^
*** Semantic Error: Type "MethodSignatureParser" was not found.


   352.     MethodSignatureParser p = new MethodSignatureParser(this, sig);
                                          ^-------------------^
*** Semantic Error: Type "MethodSignatureParser" was not found.


   378.       return getExceptionTypes();
                     ^-----------------^
*** Semantic Error: The type of this return expression, "java.lang.Class[]", 
does not match the return type of the method, "java.lang.reflect.Type[]".


   379.     MethodSignatureParser p = new MethodSignatureParser(this, sig);
            ^-------------------^
*** Semantic Error: Type "MethodSignatureParser" was not found.


   379.     MethodSignatureParser p = new MethodSignatureParser(this, sig);
                                          ^-------------------^
*** Semantic Error: Type "MethodSignatureParser" was not found.


   399.       return getParameterTypes();
                     ^-----------------^
*** Semantic Error: The type of this return expression, "java.lang.Class[]", 
does not match the return type of the method, "java.lang.reflect.Type[]".


   400.     MethodSignatureParser p = new MethodSignatureParser(this, sig);
            ^-------------------^
*** Semantic Error: Type "MethodSignatureParser" was not found.


   400.     MethodSignatureParser p = new MethodSignatureParser(this, sig);
                                          ^-------------------^
*** Semantic Error: Type "MethodSignatureParser" was not found.

Found 9 semantic errors compiling "java/lang/reflect/Field.java":

    43. import gnu.java.lang.reflect.FieldSignatureParser;
               ^----------------------------------------^
*** Semantic Error: The import "gnu/java/lang/reflect/FieldSignatureParser" is 
not valid, since it does not name a type in a package.


   146.     return (getModifiersInternal() & Modifier.SYNTHETIC) != 0;
                                                      ^-------^
*** Semantic Error: No accessible field named "SYNTHETIC" was found in 
type "java.lang.reflect.Modifier".


   156.     return (getModifiersInternal() & Modifier.ENUM) != 0;
                                                      ^--^
*** Semantic Error: No accessible field named "ENUM" was found in 
type "java.lang.reflect.Modifier".


   214.     Modifier.toString(getModifiers(), sb).append(' ');
            ^-----------------------------------^
*** Semantic Error: No applicable overload for a method with 
signature "toString(int, java.lang.StringBuilder)" was found in 
type "java.lang.reflect.Modifier". Perhaps you wanted the overloaded 
version "java.lang.StringBuffer toString(int $1, java.lang.StringBuffer $2);" 
instead?


   215.     sb.append(ClassHelper.getUserName(getType())).append(' ');
                      ^--------------------------------^
*** Semantic Error: No accessible method with 
signature "getUserName(java.lang.Class)" was found in 
type "gnu.java.lang.ClassHelper".


   224.     Modifier.toString(getModifiers(), sb).append(' ');
            ^-----------------------------------^
*** Semantic Error: No applicable overload for a method with 
signature "toString(int, java.lang.StringBuilder)" was found in 
type "java.lang.reflect.Modifier". Perhaps you wanted the overloaded 
version "java.lang.StringBuffer toString(int $1, java.lang.StringBuffer $2);" 
instead?


   751.       return getType();
                     ^-------^
*** Semantic Error: The type of this return expression, "java.lang.Class", 
does not match the return type of the method, "java.lang.reflect.Type".


   752.     FieldSignatureParser p = new 
FieldSignatureParser(getDeclaringClass(),
            ^------------------^
*** Semantic Error: Type "FieldSignatureParser" was not found.


   752.     FieldSignatureParser p = new 
FieldSignatureParser(getDeclaringClass(),
                                         ^------------------^
*** Semantic Error: Type "FieldSignatureParser" was not found.

Found 24 semantic errors compiling "java/lang/reflect/Method.java":

    43. import gnu.java.lang.reflect.MethodSignatureParser;
               ^-----------------------------------------^
*** Semantic Error: The import "gnu/java/lang/reflect/MethodSignatureParser" 
is not valid, since it does not name a type in a package.


    81. extends AccessibleObject implements Member, GenericDeclaration
                                                    ^----------------^
*** Semantic Error: Type "GenericDeclaration" was not found.


   164.     return (getModifiersInternal() & Modifier.BRIDGE) != 0;
                                                      ^----^
*** Semantic Error: No accessible field named "BRIDGE" was found in 
type "java.lang.reflect.Modifier".


   173.     return (getModifiersInternal() & Modifier.SYNTHETIC) != 0;
                                                      ^-------^
*** Semantic Error: No accessible field named "SYNTHETIC" was found in 
type "java.lang.reflect.Modifier".


   183.     return (getModifiersInternal() & Modifier.VARARGS) != 0;
                                                      ^-----^
*** Semantic Error: No accessible field named "VARARGS" was found in 
type "java.lang.reflect.Modifier".


   286.     Modifier.toString(getModifiers(), sb).append(' ');
            ^-----------------------------------^
*** Semantic Error: No applicable overload for a method with 
signature "toString(int, java.lang.StringBuilder)" was found in 
type "java.lang.reflect.Modifier". Perhaps you wanted the overloaded 
version "java.lang.StringBuffer toString(int $1, java.lang.StringBuffer $2);" 
instead?


   287.     sb.append(ClassHelper.getUserName(getReturnType())).append(' ');
                      ^--------------------------------------^
*** Semantic Error: No accessible method with 
signature "getUserName(java.lang.Class)" was found in 
type "gnu.java.lang.ClassHelper".


   293.         sb.append(ClassHelper.getUserName(c[0]));
                          ^---------------------------^
*** Semantic Error: No accessible method with 
signature "getUserName(java.lang.Class)" was found in 
type "gnu.java.lang.ClassHelper".


   295.           sb.append(',').append(ClassHelper.getUserName(c[i]));
                                        ^---------------------------^
*** Semantic Error: No accessible method with 
signature "getUserName(java.lang.Class)" was found in 
type "gnu.java.lang.ClassHelper".


   312.     Modifier.toString(getModifiers(), sb).append(' ');
            ^-----------------------------------^
*** Semantic Error: No applicable overload for a method with 
signature "toString(int, java.lang.StringBuilder)" was found in 
type "java.lang.reflect.Modifier". Perhaps you wanted the overloaded 
version "java.lang.StringBuffer toString(int $1, java.lang.StringBuffer $2);" 
instead?


   313.     Constructor.addTypeParameters(sb, getTypeParameters());
            ^----------------------------------------------------^
*** Semantic Error: No applicable overload for a method with 
signature "addTypeParameters(java.lang.StringBuilder, ??)" was found in 
type "java.lang.reflect.Constructor". Perhaps you wanted the overloaded 
version "void addTypeParameters(java.lang.StringBuilder sb, ?? typeArgs);" 
instead?


   548.   public TypeVariable[] getTypeParameters()
                 ^----------^
*** Semantic Error: Type "TypeVariable" was not found.


   552.       return new TypeVariable[0];
                         ^----------^
*** Semantic Error: Type "TypeVariable" was not found.


   553.     MethodSignatureParser p = new MethodSignatureParser(this, sig);
            ^-------------------^
*** Semantic Error: Type "MethodSignatureParser" was not found.


   553.     MethodSignatureParser p = new MethodSignatureParser(this, sig);
                                          ^-------------------^
*** Semantic Error: Type "MethodSignatureParser" was not found.


   579.       return getExceptionTypes();
                     ^-----------------^
*** Semantic Error: The type of this return expression, "java.lang.Class[]", 
does not match the return type of the method, "java.lang.reflect.Type[]".


   580.     MethodSignatureParser p = new MethodSignatureParser(this, sig);
            ^-------------------^
*** Semantic Error: Type "MethodSignatureParser" was not found.


   580.     MethodSignatureParser p = new MethodSignatureParser(this, sig);
                                          ^-------------------^
*** Semantic Error: Type "MethodSignatureParser" was not found.


   600.       return getParameterTypes();
                     ^-----------------^
*** Semantic Error: The type of this return expression, "java.lang.Class[]", 
does not match the return type of the method, "java.lang.reflect.Type[]".


   601.     MethodSignatureParser p = new MethodSignatureParser(this, sig);
            ^-------------------^
*** Semantic Error: Type "MethodSignatureParser" was not found.


   601.     MethodSignatureParser p = new MethodSignatureParser(this, sig);
                                          ^-------------------^
*** Semantic Error: Type "MethodSignatureParser" was not found.


   618.       return getReturnType();
                     ^-------------^
*** Semantic Error: The type of this return expression, "java.lang.Class", 
does not match the return type of the method, "java.lang.reflect.Type".


   619.     MethodSignatureParser p = new MethodSignatureParser(this, sig);
            ^-------------------^
*** Semantic Error: Type "MethodSignatureParser" was not found.


   619.     MethodSignatureParser p = new MethodSignatureParser(this, sig);
                                          ^-------------------^
*** Semantic Error: Type "MethodSignatureParser" was not found.
make[2]: *** [classdist_vminterface.stamp] Error 1
make[2]: Leaving directory 
`/GUS/kaffe/kaffe_cvs20080319/libraries/javalib/vmspecific'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/GUS/kaffe/kaffe_cvs20080319/libraries/javalib'
make: *** [all-recursive] Error 1
gusgus kaffe_cvs20080319 # 

El Lunes, 24 de Marzo de 2008, Gustavo Guillermo Pérez escribió:
> Hello list, I've compiled kaffe a year ago and upgrading my system I found
> with that error configuring cvs version. I'm using uClibc system, I have
> all libraries like gmp gtk glib alsa jikes and so on, so I want to upgrade
> my kaffe vm:
>
> ./configure --prefix=/usr/local/kafe --enable-gmp --enable-gcj
> ....
> ....
> ....
> checking for library containing sem_init... none required
> checking semaphore.h usability... yes
> checking semaphore.h presence... yes
> checking for semaphore.h... yes
> checking for working semaphores... ok
> checking where Java core library is installed... /usr/local/classpath
> checking where Java core library classes are
> installed... /usr/local/classpath/share/classpath/glibj.zip
> checking where Java core library classes are installed on the
> target... /usr/local/classpath/share/classpath/glibj.zip
> checking where Java core library native libraries are
> installed... /usr/local/classpath/lib
> checking where Java core library headers are
> installed... /usr/local/classpath/include
> checking if class library exists and is readable
> at /usr/local/classpath/share/classpath/glibj.zip... no
> configure: error: Couldn't find readable class library at
> /usr/local/classpa ....
> ....
> ....
>
> I use to build kaffe and it always has the own classpath included, wich
> option I need to activate for using the bundled classpath or it does not
> come anymore?
>
> Regards.



-- 
Gustavo Guillermo Pérez
Compunauta uLinux
www.compunauta.com




More information about the kaffe mailing list