[antlr-interest] Building Antlr-3.2 from source on a Mac with Maven

Alan Condit acondit at ipns.com
Sat May 22 13:13:20 PDT 2010


Has anybody with a Mac successfully rebuilt Antlr-3.2 from source?

I am running Snow Leopard 10.6.3.

I have followed the directions that I found for building Antlr from source but I am getting a 881kb jar that doesn't run instead of a 1.9mb jar that does run.

I extracted a good jar and mine sorted the lines of the report and compared them.  I am missing all of the antlr/*.class classes and all of the org/antlr/gunit stuff. I also got an error message after I ran mvn clean and tried rebuilding.

[DEBUG] Output directory: /usr/share/java/antlr/main/tool/target/classes
[DEBUG] Classpath:
[DEBUG]  /usr/share/java/antlr/main/tool/target/classes
[DEBUG]  /usr/share/java/antlr/main/runtime/Java/target/antlr-runtime-3.2.1-SNAPSHOT.jar
[DEBUG]  /Users/acondit/.m2/repository/org/antlr/stringtemplate/3.2.1/stringtemplate-3.2.1.jar
[DEBUG]  /Users/acondit/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar
[DEBUG] Source roots:
[DEBUG]  /usr/share/java/antlr/main/tool/src/main/java
[DEBUG]  /usr/share/java/antlr/main/tool/target/generated-sources/antlr
[DEBUG]  /usr/share/java/antlr/main/tool/target/generated-sources/antlr3
[INFO] Compiling 13 source files to /usr/share/java/antlr/main/tool/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/usr/share/java/antlr/main/tool/src/main/java/org/antlr/tool/Interp.java:[55,17] cannot find symbol
symbol  : method sync(int)
location: class org.antlr.runtime.CommonTokenStream

Any help appreciated,
Alan
---

Alan Condit
1085 Tierra Ct.
Woodburn, OR 97071

Email -- acondit at ipns.com
Home-Office (503) 982-0906



More information about the antlr-interest mailing list