[antlr-interest] Build errors for ANTLR 3.13

Christian Schladetsch christian.schladetsch at gmail.com
Wed Apr 9 23:29:00 PDT 2008


Hello,

When attempting to build ANTLR  3.13 from source, I get a set of 'duplicate
class' compile-time errors in generated code:

generator-prepare:
    [mkdir] Created dir: E:\Dev\Antlr\antlr-2008-03-13.12\codegen
     [copy] Copying 6 files to E:\Dev\Antlr\antlr-2008-03-13.12\codegen

generator:
    [antlr] ANTLR Parser Generator   Version 2.7.7 (20060906)   1989-2005
    [antlr] E:\Dev\Antlr\antlr-2008-03-13.12\codegen\antlr.g:904:
warning:nongreedy block may exit incorrectly due
    [antlr] E:\Dev\Antlr\antlr-2008-03-13.12\codegen\antlr.g:904:         to
limitations of linear approximate lookahead (first k-1 sets
    [antlr] E:\Dev\Antlr\antlr-2008-03-13.12\codegen\antlr.g:904:         in
lookahead not singleton).
    [antlr] E:\Dev\Antlr\antlr-2008-03-13.12\codegen\antlr.g:1082:
warning:nongreedy block may exit incorrectly due
    [antlr] E:\Dev\Antlr\antlr-2008-03-13.12\codegen\antlr.g:1082:
 to limitations of linear approximate lookahead (first k-1 sets
    [antlr] E:\Dev\Antlr\antlr-2008-03-13.12\codegen\antlr.g:1082:
 in lookahead not singleton).
    [antlr] ANTLR Parser Generator   Version 2.7.7 (20060906)   1989-2005
    [antlr] ANTLR Parser Generator   Version 2.7.7 (20060906)   1989-2005
    [antlr] E:\Dev\Antlr\antlr-2008-03-13.12\codegen\assign.types.g:387:18:
warning:Rule 'optionsSpec' returns a value
    [antlr] E:\Dev\Antlr\antlr-2008-03-13.12\codegen\assign.types.g:467:13:
warning:Rule 'optionsSpec' returns a value
    [antlr] E:\Dev\Antlr\antlr-2008-03-13.12\codegen\assign.types.g:490:14:
warning:Rule 'optionsSpec' returns a value
    [antlr] ANTLR Parser Generator   Version 2.7.7 (20060906)   1989-2005
    [antlr] E:\Dev\Antlr\antlr-2008-03-13.12\codegen\buildnfa.g:297:19:
warning:Rule 'atom' returns a value
    [antlr] E:\Dev\Antlr\antlr-2008-03-13.12\codegen\buildnfa.g:297:32:
warning:Rule 'atom' returns a value
    [antlr] E:\Dev\Antlr\antlr-2008-03-13.12\codegen\buildnfa.g:309:20:
warning:Rule 'block' returns a value
    [antlr] ANTLR Parser Generator   Version 2.7.7 (20060906)   1989-2005
    [antlr] E:\Dev\Antlr\antlr-2008-03-13.12\codegen\define.g:252:24:
warning:Rule 'modifier' returns a value
    [antlr] ANTLR Parser Generator   Version 2.7.7 (20060906)   1989-2005

compile-rt:
    [mkdir] Created dir: E:\Dev\Antlr\antlr-2008-03-13.12\build\rtclasses
  [myjavac] Compiling 74 source files to
E:\Dev\Antlr\antlr-2008-03-13.12\build\rtclasses
  [myjavac] Note: Some input files use unchecked or unsafe operations.
  [myjavac] Note: Recompile with -Xlint:unchecked for details.

compile:
    [mkdir] Created dir: E:\Dev\Antlr\antlr-2008-03-13.12\build\classes
  [myjavac] Compiling 141 source files to
E:\Dev\Antlr\antlr-2008-03-13.12\build\classes
  [myjavac] E:\Dev\Antlr\antlr-2008-03-13.12\codegen\ANTLRLexer.java:61:
duplicate class: org.antlr.tool.ANTLRLexer
  [myjavac] public class ANTLRLexer extends antlr.CharScanner implements
ANTLRTokenTypes, TokenStream
  [myjavac]        ^
  [myjavac] E:\Dev\Antlr\antlr-2008-03-13.12\codegen\ANTLRParser.java:72:
duplicate class: org.antlr.tool.ANTLRParser
  [myjavac] public class ANTLRParser extends antlr.LLkParser
implements ANTLRTokenTypes
  [myjavac]        ^
  [myjavac]
E:\Dev\Antlr\antlr-2008-03-13.12\codegen\ANTLRTokenTypes.java:37: duplicate
class: org.antlr.tool.ANTLRTokenTypes
  [myjavac] public interface ANTLRTokenTypes {
  [myjavac]        ^

Any suggestions would be greatly appreciated.

Regards,
Chrisian.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080410/72493039/attachment.html 


More information about the antlr-interest mailing list