Bug#461042: antlr: FTBFS: antlr/ActionElement.java:1: error: The type java.lang.Object cannot be resolved.
Lucas Nussbaum
lucas at lucas-nussbaum.net
Wed Jan 16 08:49:39 UTC 2008
Package: antlr
version: 2.7.7-2
Severity: serious
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20080115 qa-ftbfs
Justification: FTBFS on i386
Hi,
During a rebuild of all packages in sid, your package failed to build on i386.
Relevant part:
> gcj --main=antlr.Tool --CLASSPATH="." `find antlr -name '*.java'` -o cantlr
> antlr/ActionElement.java:1: error: The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
> package antlr;
> ^
> antlr/ActionElement.java:1: error: The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files
> package antlr;
> ^
> antlr/ActionElement.java:11: error: String cannot be resolved to a type
> protected String actionText;
> ^^^^^^
> antlr/ActionElement.java:17: error: actionText cannot be resolved
> actionText = t.getText();
> ^^^^^^^^^^
> antlr/ActionElement.java:17: error: The method getText() is undefined for the type Token
> actionText = t.getText();
> ^^^^^^^
> antlr/ActionElement.java:30: error: String cannot be resolved to a type
> public String toString() {
> ^^^^^^
> antlr/ActionElement.java:31: error: actionText cannot be resolved
> return " " + actionText + (isSemPred?"?":"");
> ^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:5: error: The import java.io cannot be resolved
> import java.io.InputStream;
> ^^^^^^^
> antlr/actions/cpp/ActionLexer.java:12: error: The import java.io cannot be resolved
> import java.io.Reader;
> ^^^^^^^
> antlr/actions/cpp/ActionLexer.java:13: error: The import java.util cannot be resolved
> import java.util.Hashtable;
> ^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:29: error: The import java.io cannot be resolved
> import java.io.StringReader;
> ^^^^^^^
> antlr/actions/cpp/ActionLexer.java:63: error: String cannot be resolved to a type
> public ActionLexer(String s, RuleBlock currentRule,
> ^^^^^^
> antlr/actions/cpp/ActionLexer.java:67: error: StringReader cannot be resolved to a type
> this(new StringReader(s));
> ^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:85: error: The method getFilename() is undefined for the type ActionLexer
> antlrTool.error("Syntax error in action: "+e,getFilename(),getLine(),getColumn());
> ^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:88: error: String cannot be resolved to a type
> public void reportError(String s)
> ^^^^^^
> antlr/actions/cpp/ActionLexer.java:90: error: The method getFilename() is undefined for the type ActionLexer
> antlrTool.error(s,getFilename(),getLine(),getColumn());
> ^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:93: error: String cannot be resolved to a type
> public void reportWarning(String s)
> ^^^^^^
> antlr/actions/cpp/ActionLexer.java:95: error: The method getFilename() is undefined for the type ActionLexer
> if ( getFilename()==null )
> ^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:98: error: The method getFilename() is undefined for the type ActionLexer
> antlrTool.warning(s,getFilename(),getLine(),getColumn());
> ^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:100: error: InputStream cannot be resolved to a type
> public ActionLexer(InputStream in) {
> ^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:103: error: Reader cannot be resolved to a type
> public ActionLexer(Reader in) {
> ^^^^^^
> antlr/actions/cpp/ActionLexer.java:113: error: literals cannot be resolved
> literals = new Hashtable();
> ^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:113: error: Hashtable cannot be resolved to a type
> literals = new Hashtable();
> ^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:116: error: No exception of type TokenStreamException can be thrown; an exception type must be a subclass of Throwable
> public Token nextToken() throws TokenStreamException {
> ^^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:131: error: No exception of type NoViableAltForCharException can be thrown; an exception type must be a subclass of Throwable
> else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:131: error: The method getFilename() is undefined for the type ActionLexer
> else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
> ^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:139: error: No exception of type RecognitionException can be thrown; an exception type must be a subclass of Throwable
> catch (RecognitionException e) {
> ^^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:140: error: No exception of type TokenStreamRecognitionException can be thrown; an exception type must be a subclass of Throwable
> throw new TokenStreamRecognitionException(e);
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:143: error: No exception of type CharStreamException can be thrown; an exception type must be a subclass of Throwable
> catch (CharStreamException cse) {
> ^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:145: error: No exception of type TokenStreamIOException can be thrown; an exception type must be a subclass of Throwable
> throw new TokenStreamIOException(((CharStreamIOException)cse).io);
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:145: error: io cannot be resolved or is not a field
> throw new TokenStreamIOException(((CharStreamIOException)cse).io);
> ^^
> antlr/actions/cpp/ActionLexer.java:148: error: No exception of type TokenStreamException can be thrown; an exception type must be a subclass of Throwable
> throw new TokenStreamException(cse.getMessage());
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:148: error: The method getMessage() is undefined for the type CharStreamException
> throw new TokenStreamException(cse.getMessage());
> ^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:154: error: No exception of type RecognitionException can be thrown; an exception type must be a subclass of Throwable
> public final void mACTION(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
> ^^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:154: error: No exception of type CharStreamException can be thrown; an exception type must be a subclass of Throwable
> public final void mACTION(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
> ^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:154: error: No exception of type TokenStreamException can be thrown; an exception type must be a subclass of Throwable
> public final void mACTION(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
> ^^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:179: error: No exception of type NoViableAltForCharException can be thrown; an exception type must be a subclass of Throwable
> if ( _cnt502>=1 ) { break _loop502; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:179: error: The method getFilename() is undefined for the type ActionLexer
> if ( _cnt502>=1 ) { break _loop502; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
> ^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:187: error: String cannot be resolved to a type
> _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
> ^^^^^^
> antlr/actions/cpp/ActionLexer.java:195: error: No exception of type RecognitionException can be thrown; an exception type must be a subclass of Throwable
> protected final void mSTUFF(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
> ^^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:195: error: No exception of type CharStreamException can be thrown; an exception type must be a subclass of Throwable
> protected final void mSTUFF(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
> ^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:195: error: No exception of type TokenStreamException can be thrown; an exception type must be a subclass of Throwable
> protected final void mSTUFF(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
> ^^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:222: error: The method match(char) in the type CharScanner is not applicable for the arguments (String)
> match("\r\n");
> ^^^^^
> antlr/actions/cpp/ActionLexer.java:228: error: The method append(char) in the type ANTLRStringBuffer is not applicable for the arguments (String)
> text.setLength(_begin); text.append("#");
> ^^^^^^
> antlr/actions/cpp/ActionLexer.java:246: error: No exception of type NoViableAltForCharException can be thrown; an exception type must be a subclass of Throwable
> throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:246: error: The method getFilename() is undefined for the type ActionLexer
> throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
> ^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:251: error: String cannot be resolved to a type
> _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
> ^^^^^^
> antlr/actions/cpp/ActionLexer.java:256: error: No exception of type RecognitionException can be thrown; an exception type must be a subclass of Throwable
> protected final void mAST_ITEM(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
> ^^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:256: error: No exception of type CharStreamException can be thrown; an exception type must be a subclass of Throwable
> protected final void mAST_ITEM(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
> ^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:256: error: No exception of type TokenStreamException can be thrown; an exception type must be a subclass of Throwable
> protected final void mAST_ITEM(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
> ^^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:301: error: No exception of type NoViableAltForCharException can be thrown; an exception type must be a subclass of Throwable
> throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:301: error: The method getFilename() is undefined for the type ActionLexer
> throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
> ^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:308: error: String cannot be resolved to a type
> String idt = id.getText();
> ^^^^^^
> antlr/actions/cpp/ActionLexer.java:308: error: The method getText() is undefined for the type Token
> String idt = id.getText();
> ^^^^^^^
> antlr/actions/cpp/ActionLexer.java:309: error: String cannot be resolved to a type
> String mapped = generator.mapTreeId(id.getText(), transInfo);
> ^^^^^^
> antlr/actions/cpp/ActionLexer.java:309: error: The method getText() is undefined for the type Token
> String mapped = generator.mapTreeId(id.getText(), transInfo);
> ^^^^^^^
> antlr/actions/cpp/ActionLexer.java:360: error: The method match(char) in the type CharScanner is not applicable for the arguments (String)
> match("##");
> ^^^^^
> antlr/actions/cpp/ActionLexer.java:364: error: String cannot be resolved to a type
> String r = currentRule.getRuleName()+"_AST";
> ^^^^^^
> antlr/actions/cpp/ActionLexer.java:364: error: The method getRuleName() is undefined for the type RuleBlock
> String r = currentRule.getRuleName()+"_AST";
> ^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:368: error: transInfo.refRuleRoot cannot be resolved or is not a field
> transInfo.refRuleRoot=r; // we ref root of tree
> ^^^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:373: error: The method reportWarning(String) is undefined for the type ActionLexer
> reportWarning("\"##\" not valid in this context");
> ^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:374: error: The method append(char) in the type ANTLRStringBuffer is not applicable for the arguments (String)
> text.setLength(_begin); text.append("##");
> ^^^^^^
> antlr/actions/cpp/ActionLexer.java:395: error: No exception of type NoViableAltForCharException can be thrown; an exception type must be a subclass of Throwable
> throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:395: error: The method getFilename() is undefined for the type ActionLexer
> throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
> ^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:400: error: String cannot be resolved to a type
> _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
> ^^^^^^
> antlr/actions/cpp/ActionLexer.java:405: error: No exception of type RecognitionException can be thrown; an exception type must be a subclass of Throwable
> protected final void mTEXT_ITEM(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
> ^^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:405: error: No exception of type CharStreamException can be thrown; an exception type must be a subclass of Throwable
> protected final void mTEXT_ITEM(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
> ^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:405: error: No exception of type TokenStreamException can be thrown; an exception type must be a subclass of Throwable
> protected final void mTEXT_ITEM(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
> ^^^^^^^^^^^^^^^^^^^^
> antlr/actions/cpp/ActionLexer.java:417: error: The method match(char) in the type CharScanner is not applicable for the arguments (String)
> match("$FOLLOW");
> ^^^^^
[...]
> antlr/TreeWalkerGrammar.java:67: error: The method getText() is undefined for the type Token
> else if (value.getText().equals("false")) {
> ^^^^^^^
> antlr/TreeWalkerGrammar.java:71: error: The method getFilename() is undefined for the type TreeWalkerGrammar
> antlrTool.error("buildAST option must be true or false", getFilename(), value.getLine(), value.getColumn());
> ^^^^^^^^^^^
> antlr/TreeWalkerGrammar.java:86: error: The method getFilename() is undefined for the type TreeWalkerGrammar
> antlrTool.error("Invalid option: " + key, getFilename(), value.getLine(), value.getColumn());
> ^^^^^^^^^^^
> antlr/Version.java:3: error: Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
> public class Version {
> ^^^^^^^
> antlr/Version.java:4: error: String cannot be resolved to a type
> public static final String version = "2";
> ^^^^^^
> antlr/Version.java:5: error: String cannot be resolved to a type
> public static final String subversion = "7";
> ^^^^^^
> antlr/Version.java:6: error: String cannot be resolved to a type
> public static final String patchlevel = "7";
> ^^^^^^
> antlr/Version.java:7: error: String cannot be resolved to a type
> public static final String datestamp = "20080115";
> ^^^^^^
> antlr/Version.java:8: error: String cannot be resolved to a type
> public static final String project_version = "2.7.7 (20080115)";
> ^^^^^^
> antlr/WildcardElement.java:11: error: String cannot be resolved to a type
> protected String label;
> ^^^^^^
> antlr/WildcardElement.java:22: error: String cannot be resolved to a type
> public String getLabel() {
> ^^^^^^
> antlr/WildcardElement.java:30: error: String cannot be resolved to a type
> public void setLabel(String label_) {
> ^^^^^^
> antlr/WildcardElement.java:34: error: String cannot be resolved to a type
> public String toString() {
> ^^^^^^
> antlr/ZeroOrMoreBlock.java:28: error: String cannot be resolved to a type
> public String toString() {
> ^^^^^^
> antlr/ZeroOrMoreBlock.java:29: error: The method toString() is undefined for the type BlockWithImpliedExitPath
> return super.toString() + "*";
> ^^^^^^^^
> 4422 problems (4416 errors, 6 warnings)
> make[1]: *** [make_with_gcj] Error 1
> make[1]: Leaving directory `/build/user/antlr-2.7.7'
> make: *** [build-stamp] Error 2
> dpkg-buildpackage: failure: debian/rules build gave error exit status 2
The full build log is available from:
http://people.debian.org/~lucas/logs/2008/01/15
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot containing a sid i386
environment. Internet was not accessible from the build systems.
--
| Lucas Nussbaum
| lucas at lucas-nussbaum.net http://www.lucas-nussbaum.net/ |
| jabber: lucas at nussbaum.fr GPG: 1024D/023B3F4F |
More information about the pkg-java-maintainers
mailing list