Compiling classpath 0.98

View: New views
1 Messages — Rating Filter:   Alert me  

Parent Message unknown Compiling classpath 0.98

by Roberto Riggio-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I'm trying to compile classpath 0.98 on ubuntu 9.04 with sun java 1.6.

However after launching

./configure --disable-gtk-peer --disable-gconf-peer --disable-plugin

I get the following error (in the config.log):

./java/util/TreeSet.java:221: warning: [unchecked] unchecked cast
found   : java.lang.Object
required: java.util.TreeSet<T>
        copy = (TreeSet<T>) super.clone();
                                       ^
./java/util/TreeSet.java:223: warning: [unchecked] unchecked cast
found   : java.lang.Object
required: java.util.NavigableMap<T,java.lang.String>
        copy.map = (NavigableMap<T, String>) ((AbstractMap<T, String>) map).clone();
                                                                                 ^
./java/util/TreeSet.java:489: warning: [unchecked] unchecked cast
found   : java.lang.Object
required: java.util.Comparator<? super T>
    Comparator<? super T> comparator = (Comparator<? super T>) s.readObject();
                                                                           ^


The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space
        at java.nio.HeapCharBuffer.<init>(HeapCharBuffer.java:39)
        at java.nio.CharBuffer.allocate(CharBuffer.java:312)
        at com.sun.tools.javac.util.DefaultFileManager.decode(DefaultFileManager.java:790)
        at com.sun.tools.javac.util.DefaultFileManager.access$300(DefaultFileManager.java:76)
        at com.sun.tools.javac.util.DefaultFileManager$RegularFileObject.getCharContent(DefaultFileManager.java:1353)
        at com.sun.tools.javac.util.DefaultFileManager$RegularFileObject.getCharContent(DefaultFileManager.java:1252)
        at com.sun.tools.javac.main.JavaCompiler.complete(JavaCompiler.java:646)
        at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:1869)
        at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1777)
        at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386)
        at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:758)
        at com.sun.tools.javac.jvm.ClassReader.loadClass(ClassReader.java:1951)
        at com.sun.tools.javac.comp.Resolve.loadClass(Resolve.java:842)
        at com.sun.tools.javac.comp.Resolve.findIdentInPackage(Resolve.java:1011)
        at com.sun.tools.javac.comp.Attr.selectSym(Attr.java:1921)
        at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:1835)
        at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1522)
        at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:360)
        at com.sun.tools.javac.comp.Attr.attribType(Attr.java:390)
        at com.sun.tools.javac.comp.MemberEnter.attribImportType(MemberEnter.java:681)
        at com.sun.tools.javac.comp.MemberEnter.visitImport(MemberEnter.java:545)
        at com.sun.tools.javac.tree.JCTree$JCImport.accept(JCTree.java:495)
        at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387)
        at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:399)
        at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:512)
        at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:446)
        at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387)
        at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:819)
        at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386)
        at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:758)
        at com.sun.tools.javac.code.Symbol$ClassSymbol.flags(Symbol.java:690)
        at com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:124)
configure:35024: $? = 3
configure: failed program was:
/* [#]line 35013 "configure" */
public class Test {
public static void main (String args[]) {
        System.exit (0);
} }
configure:35030: error: The Java compiler javac -Xlint:unchecked,cast,divzero,empty,finally,overrides failed (see config.log, check the CLASSPATH?)

Moreover if i run autogen.sh i get:

You must have libtool 1.5 installed to compile classpath.
Install the appropriate package for your distribution,
or get the source tarball at http://ftp.gnu.org/gnu/libtool/
For Darwin you need the latest stable (1.5.22) to support
Frameworks linking. Also, you have to point
LOCAL_AUTORECONF_FLAGS to this libtool/share/aclocal.

And of course libtool is installed.

Any hints?
Best

--
--------------------------------------------------------
Roberto Riggio, PhD
CREATE-NET, Pervasive
Researcher
Via alla Cascata 56/D - 38100 Povo Trento (Italy)
e-mail: roberto.riggio@...
Tel: (+39) 0461 408400 - interno/extension 708
Fax: (+39) 0461 421157
http://www.create-net.org/
--------------------------------------------------------

Le informazioni contenute in questo messaggio email e negli allegati sono
strettamente riservate. Il loro utilizzo e' consentito esclusivamente al
destinatario del messaggio, per le finalita' indicate nello stesso.

The information transmitted is intended only for the person/entity whom it is
addressed to, and may contain confidential material. Any review, retransmission,
dissemination or other use of this information by persons/entities other than
the intended recipient is prohibited as per Italian Law 196/2003. If you
received this in error, contact the sender and delete it from any pc.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general