cp-tools-discuss
[Top][All Lists]
Advanced

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

[Cp-tools-discuss] gjdoc with jikes and jamvm?


From: Rupert Mazzucco
Subject: [Cp-tools-discuss] gjdoc with jikes and jamvm?
Date: Fri, 25 Aug 2006 22:35:56 +0200
User-agent: Mail/News 1.5.0.5 (X11/20060807)

Hello,

can gjdoc-0.7.7 be built with classpath, jikes and jamvm? It doesn't seem to work for me. I have jamvm-1.4.3, jikes-1.22, and classpath-0.92 (built with jikes)
installed in /usr, also apache-ant-1.65 in /usr/share/ant.

I configure with

JAVA=jamvm CLASSPATH=/usr/share/classpath/glibj.zip ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --infodir=/usr/share/info --with-antlr-jar=/usr/share/ant/lib/ant-antlr.jar

which seems successful:
 ...
 checking if jamvm works... yes
 checking for gcj... no
 checking for jikes... jikes
 checking if jikes works... yes
configure: using ANTLR parser generator in /usr/share/ant/lib/ant-antlr.jar
 ..
 checking for java.util.regex.Pattern class... yes
 Native compilation disabled as gcj has not been found
 configure: creating ./config.status
 etc.

When making, jikes compiles some class files successfully, but then the build goes down with some thousand "Semantic Error"s. (I'll give only the start and some examples for the different kinds of errors, there are many more where they come from):

 jikes -classpath
/usr/share/classpath/glibj.zip:./src:.:/usr/share/ant/lib/ant-antlr.jar:.
   -d classes src/com/sun/tools/doclets/Taglet.java
 fastjar cf com-sun-tools-doclets-Taglet-0.7.7.jar -C classes com/sun/tools
 jikes -classpath
/usr/share/classpath/glibj.zip:./src:.:/usr/share/ant/lib/ant-antlr.jar:.
   -d classes src/gnu/classpath/tools/doclets/debugdoclet/DebugDoclet.java
 ..
 [[all well so far, but now the problems begin ...]]
jikes -classpath /usr/share/classpath/glibj.zip:./src:.:/usr/share/ant/lib/ant-antlr.jar:.
   -d classes src/gnu/classpath/tools/gjdoc/AbstractTagImpl.java

Found 1 semantic error compiling "src/gnu/classpath/tools/gjdoc/ClassDocImpl.java":

    572.                ((FieldDocImpl)unfilteredFields[i]).resolve();
                          ^----------^
*** Semantic Error: A candidate for type "FieldDocImpl" was found, but it is invalid
 and needs to be fixed before this type will successfully compile.

 Found 9 semantic errors compiling
   "src/gnu/classpath/tools/gjdoc/expr/Evaluator.java":

   25. import antlr.RecognitionException;
              ^------------------------^
*** Semantic Error: The import "antlr/RecognitionException" is not valid, since it
 does not name a type in a package.
 [[follow-up errors omitted]]
 ...
Found 1 semantic error compiling "src/gnu/classpath/tools/gjdoc/FieldDocImpl.java":

   27. import gnu.classpath.tools.gjdoc.expr.Evaluator;
                                             ^-------^
*** Semantic Error: A candidate for type "Evaluator" was found, but it is invalid
 and needs to be fixed before this type will successfully compile.

Found 1146 semantic errors compiling "gnu/classpath/tools/gjdoc/expr/JavaLexer.java":

      6. import antlr.TokenStreamException;
              ^------------------------^
*** Semantic Error: The import "antlr/TokenStreamException" is not valid, since it
 does not name a type in a package.
 ...
 [[here comes a new variant]]
29. public class JavaLexer extends antlr.CharScanner implements JavaTokenTypes,
         TokenStream
                                        ^---^
*** Semantic Error: You need to modify your classpath, sourcepath, bootclasspath,
 and/or extdirs setup. Jikes could not find package "antlr" in:
               /usr/share/classpath/glibj.zip
               ./src
               .
               /usr/share/ant/lib/ant-antlr.jar
               .
               .



29. public class JavaLexer extends antlr.CharScanner implements JavaTokenTypes,
       TokenStream
                                            ^---------^
 *** Semantic Error: Type "antlr.CharScanner" was not found.


29. public class JavaLexer extends antlr.CharScanner implements JavaTokenTypes,
       TokenStream
       ^---------^
 *** Semantic Error: Type "TokenStream" was not found.
 ...
   40. public JavaLexer(LexerSharedInputState state) {
              ^------------------------------------^
*** Semantic Error: Duplicate declaration of this constructor signature in type
 "JavaLexer". The other occurrence is at location
 "gnu/classpath/tools/gjdoc/expr/JavaLexer.java:31".
 ...
 [[here comes another that looks interesting]]
389. _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); ^----------------------------------------------------^ *** Semantic Error: Ambiguous invocation of constructor "String". At least two constructors are accessible from here: "String(int[] $1, int $2, int $3);" and
 "String(char[] $1, int $2, int $3);".
 ...
1404. public static final BitSet _tokenSet_1 = new BitSet(mk_tokenSet_1());
                                                            ^----^
 *** Semantic Error: Type "BitSet" was not found.
make: *** [classes/gnu/classpath/tools/gjdoc/AbstractTagImpl.class] Error 1


You get the idea. The main problem seems to be that it cannot find some classes, but which component is at fault? Here is what ant knows about my java setup:

 $ ant -diagnostics
 Unable to locate tools.jar. Expected to find it in /usr/lib/tools.jar
 ------- Ant diagnostics report -------
 Apache Ant version 1.6.5 compiled on June 2 2005

 -------------------------------------------
  Implementation Version (JDK1.2+ only)
 -------------------------------------------
 core tasks     : 1.6.5
 optional tasks : 1.6.5

 -------------------------------------------
  ANT_HOME/lib jar listing
 -------------------------------------------
 ant.home: /usr/share/ant
 ant-antlr.jar (5667 bytes)
 ant-apache-bcel.jar (8617 bytes)
 ant-apache-bsf.jar (12597 bytes)
 ant-apache-log4j.jar (3022 bytes)
 ant-apache-oro.jar (48034 bytes)
 ant-apache-regexp.jar (3724 bytes)
 ant-apache-resolver.jar (4082 bytes)
 ant-commons-logging.jar (3864 bytes)
 ant-commons-net.jar (35303 bytes)
 ant-icontract.jar (9721 bytes)
 ant-jai.jar (21359 bytes)
 ant-javamail.jar (6761 bytes)
 ant-jdepend.jar (8160 bytes)
 ant-jmf.jar (6605 bytes)
 ant-jsch.jar (22726 bytes)
 ant-junit.jar (74237 bytes)
 ant-launcher.jar (9180 bytes)
 ant-netrexx.jar (9998 bytes)
 ant-nodeps.jar (421008 bytes)
 ant-starteam.jar (35472 bytes)
 ant-stylebook.jar (2328 bytes)
 ant-swing.jar (6763 bytes)
 ant-trax.jar (68841 bytes)
 ant-vaj.jar (49742 bytes)
 ant-weblogic.jar (14363 bytes)
 ant-xalan1.jar (4465 bytes)
 ant-xslp.jar (2244 bytes)
 ant.jar (1034049 bytes)
 xercesImpl.jar (1010675 bytes)
 xml-apis.jar (124724 bytes)

 -------------------------------------------
  Tasks availability
 -------------------------------------------
 All defined tasks are available

 -------------------------------------------
  org.apache.env.Which diagnostics
 -------------------------------------------
 Not available.
 Download it at http://xml.apache.org/commons/

 -------------------------------------------
  XML Parser information
 -------------------------------------------
 XML Parser : gnu.xml.stream.SAXParser
 XML Parser Location: /usr/share/classpath/glibj.zip

 -------------------------------------------
  System properties
 -------------------------------------------
 ant.library.dir : /usr/share/ant/lib
 path.separator : :
 java.vm.name : JamVM
 java.vm.specification.name : Java Virtual Machine Specification
 java.runtime.version : 1.4.3
 java.home : /usr
 java.vm.specification.version : 1.0
 line.separator :

 java.vm.specification.vendor : Sun Microsystems, Inc.
 gnu.classpath.home.url : file:///usr/lib
 gnu.classpath.version : 0.92
 java.specification.version : 1.4
 java.library.path :
 gnu.classpath.vm.shortname : JamVM
 java.class.version : 48.0
 java.specification.name : Java Platform API Specification
 gnu.classpath.mime.types.file : /etc/mime.types
 os.version : 2.6.17
 gnu.classpath.home : /usr
 user.home : /home/maz
 file.encoding : 8859_1
 ant.home : /usr/share/ant
 os.name : Linux
 build.compiler : jikes
 user.name : maz
java.class.path : /usr/share/ant/lib/ant-launcher.jar:/usr/share/ant/lib/ant-antlr.jar:/usr/share/ant/lib/ant-apache-bcel.jar:/usr/share/ant/lib/ant-apache-bsf.jar:/usr/share/ant/lib/ant-apache-log4j.jar:/usr/share/ant/lib/ant-apache-oro.jar:/usr/share/ant/lib/ant-apache-regexp.jar:/usr/share/ant/lib/ant-apache-resolver.jar:/usr/share/ant/lib/ant-commons-logging.jar:/usr/share/ant/lib/ant-commons-net.jar:/usr/share/ant/lib/ant-icontract.jar:/usr/share/ant/lib/ant-jai.jar:/usr/share/ant/lib/ant-javamail.jar:/usr/share/ant/lib/ant-jdepend.jar:/usr/share/ant/lib/ant-jmf.jar:/usr/share/ant/lib/ant-jsch.jar:/usr/share/ant/lib/ant-junit.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/ant/lib/ant-netrexx.jar:/usr/share/ant/lib/ant-nodeps.jar:/usr/share/ant/lib/ant-starteam.jar:/usr/share/ant/lib/ant-stylebook.jar:/usr/share/ant/lib/ant-swing.jar:/usr/share/ant/lib/ant-trax.jar:/usr/share/ant/lib/ant-vaj.jar:/usr/share/ant/lib/ant-weblogic.jar:/usr/share/ant/lib/ant-xalan1.jar:/usr/share/ant/lib/ant-xslp.jar:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/xercesImpl.jar:/usr/share/ant/lib/xml-apis.jar
 java.io.tmpdir : /tmp
 gnu.classpath.boot.library.path : /usr/lib/classpath
 os.arch : i386
 java.specification.vendor : Sun Microsystems, Inc.
 user.dir : /mnt/sda2/build/gjdoc-0.7.7
 java.version : 1.4.2
 java.vm.vendor.url : http://jamvm.sourceforge.net
 java.ext.dirs :
java.boot.class.path : /usr/share/jamvm/classes.zip:/usr/share/classpath/glibj.zip
 java.vendor : GNU Classpath
 java.vendor.url : http://www.classpath.org
 java.vm.vendor : Robert Lougher
 file.separator : /
 java.vm.version : 1.4.3
 java.compiler :
 http.agent : gnu-classpath/0.92 (JamVM/1.4.3)
 gnu.cpu.endian : little
 jikes.class.path : /usr/share/classpath/glibj.zip

I could not compile ant from source either and tried to teach it about jamvm and jikes with this ant.conf:

 $ cat /etc/ant.conf
 /ANT_HOME=/usr/share/ant
 JAVACMD=/pkg/tools/jamvm
 usejikes=true
 JIKESPATH=/usr/share/classpath/glibj.zip

But was that enough? There is this message about tools.jar, which is probably Sun JDK stuff. I don't know what its equivalent in classpath is, nor how to teach ant about it. But it doesn't seem to be related to those antlr.errors anyway,
or is it?

Any ideas appreciated.

Thank you,
Rupert





reply via email to

[Prev in Thread] Current Thread [Next in Thread]