building antlr 2.7.7 on Mac OS X

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 "":

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.

export JAVAC=javac

Changing the java compiler that gets used is documented in the configure script.

This entry was posted in General, Macintosh, Writing Software and tagged . Bookmark the permalink.

Leave a Reply