It appears that antlr on Mac os x doesn’t like the jikes compiler, at least when I tried building antlr it gave lots of weird compile errors like this:
Found 2 semantic errors compiling "ANTLRException.java":
While it would be a good thing to try to fix the actual code, it’s easier to see if the solution is already available.
The answer came in this posting which suggests renaming jikes before building. Which works, but there is an easier way. Just declare an environment variable before starting the build.
Changing the java compiler that gets used is documented in the configure script.