Google
  Web www.spinics.net

Re: Problem from Installation GNU Classpath 0.97.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


ecj in my computer is ecj-bootstrap version 3.1.2-2ubuntu4

Currently i remove ecj-bootstrap from my computer and using jikes instead
and i successfully installed a classpath

./configure --disable-gtk-peer --disable-gconf-peer --disable-plugin
--with-jikes --enable-jni

then here is the following result
...
checking for ecj... no
checking for ecj-3.3... no
checking for ecj-3.2... no
checking for javac... javac -Xlint:unchecked
checking if javac -Xlint:unchecked works... yes
checking whether javac supports -J... yes
...



gnu_andrew wrote:
> 
> On 12:55 Thu 25 Sep     , Mark Wielaard wrote:
>> Hi ZNTU,
>> 
>> On Tue, 2008-09-23 at 00:13 -0700, ZNTU wrote:
>> > I'm just starting to learn about jvm and classpath. I try to install
>> > classpath 0.97.2 on my pc which has i686 and Linux(Kubuntu). However,
>> once I
>> > run 
>> > 
>> > ./configure --disable-gtk-peer --disable-gconf-peer --disable-plugin
>> > 
>> > I notice that there is some incorrect classpath:
>> > ...
>> > checking for ecj... ecj -warn:-deprecation,serial,unusedImport
>> > checking if ecj -warn:-deprecation,serial,unusedImport works... yes
>> > checking whether javac supports -J... incorrect classpath:
>> > yes
>> > ....
>> > 
>> > However once this command finish then i run command "make"
>> > 
>> > and there is 1 error and 1 warning that I cannot fix it
>> > 
>> > Making all in lib
>> > make[1]: Entering directory `/home/tktan/classpath-0.97.2/lib'
>> > true
>> > top_builddir=.. top_srcdir=.. /bin/sh ./gen-classlist.sh standard
>> > Adding java source files from srcdir '..'.
>> > Adding java source files from VM directory ../vm/reference
>> > ecj -warn:-deprecation,serial,unusedImport  -J-Xmx768M -source 1.5
>> -target
>> > 1.5 -bootclasspath '' -classpath
>> >
>> ../vm/reference:..:../external/w3c_dom:../external/sax:../external/relaxngDatatype:../external/jsr166:.::
>> > -d . @classes
>> > incorrect classpath:
>> > ----------
>> > 1. ERROR in ../sun/reflect/annotation/AnnotationInvocationHandler.java
>> >  (at line 87)
>> >         memberValues.put(name, m.getDefaultValue());
>> >                                  ^^^^^^^^^^^^^^^
>> > The method getDefaultValue() is undefined for the type Method
>> > ----------
>> > 2. WARNING in
>> ../sun/reflect/annotation/AnnotationInvocationHandler.java
>> >  (at line 373)
>> >         throw new IncompleteAnnotationException(type, methodName);
>> >                                                 ^^^^
>> > Type safety: The expression of type Class needs unchecked conversion to
>> > conform to Class<? extends Annotation>
>> > ----------
>> > 2 problems (1 error, 1 warning)make[1]: *** [compile-classes] Error 255
>> > make[1]: Leaving directory `/home/tktan/classpath-0.97.2/lib'
>> > make: *** [all-recursive] Error 1
>> > 
>> > can anyone please help me solve this problem? Any hints are greatly
>> > appreciated. 
>> 
>> That is strange. It is as if ecj is still compiling against a core class
>> library that has a java.lang.reflect.Method which doesn't have the 1.5
>> getDefaultValue() method. Which shouldn't be possible since both
>> -bootclasspath and -classpath are given and make sure the Method.java
>> from the code you are compiling is being used.
>> 
>> What version of ecj is this?
>> 
>> Cheers,
>> 
>> Mark
>> 
>> 
> 
> This also reads very strangely to me as well.
> What is ecj in this case?  Is it a script or a native
> binary? If it is the former, what's the content of the script?
> 
> One guess would be that it is swallowing the first part of the
> classpath ../vm/reference which is where the Method class is in 0.97.2.
> A similar issue was noticed with the IcedTea build.  The 'incorrect
> classpath' adds weight to this.
> -- 
> Andrew :)
> 
> Support Free Java!
> Contribute to GNU Classpath and the OpenJDK
> http://www.gnu.org/software/classpath
> http://openjdk.java.net
> PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
> Fingerprint = F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-from-Installation-GNU-Classpath-0.97.2-tp19622463p19681733.html
Sent from the Gnu - Classpath - General mailing list archive at Nabble.com.



[Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux