[antlr-interest] Build errors for ANTLR 3.13
Matt Benson
gudnabrsam at yahoo.com
Thu Apr 10 09:55:17 PDT 2008
I sent the following updated build.xml to a couple of
folks the other day; give it a try and let us know
here. A better fix would be for the ANTLR distro
_not_ to include the generated files in the src tree,
but until then...
HTH,
Matt
--- Christian Schladetsch
<christian.schladetsch at gmail.com> wrote:
> 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.
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.xml
Type: application/xml
Size: 10448 bytes
Desc: 3442728805-build.xml
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20080410/fad1ba15/attachment.rdf
More information about the antlr-interest
mailing list