{"id":214,"date":"2007-04-28T18:12:57","date_gmt":"2007-04-28T17:12:57","guid":{"rendered":"http:\/\/www.malcolmhardie.com\/weblogs\/angus\/2007\/04\/28\/building-antlr-277-on-mac-os-x\/"},"modified":"2025-02-01T03:04:16","modified_gmt":"2025-02-01T03:04:16","slug":"building-antlr-277-on-mac-os-x","status":"publish","type":"post","link":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/2007\/04\/28\/building-antlr-277-on-mac-os-x\/","title":{"rendered":"building antlr 2.7.7 on Mac OS X"},"content":{"rendered":"<p>It appears that antlr on Mac os x doesn&#8217;t like the jikes compiler, at least when I tried building antlr it gave lots of weird compile errors like this:<br \/>\n<code> Found 2 semantic errors compiling \"ANTLRException.java\": <\/code><\/p>\n<p>While it would be a good thing to try to fix the actual code, it&#8217;s easier to see if the solution is already available.<\/p>\n<p>The answer came in <a href=\"http:\/\/www.antlr.org:8080\/pipermail\/antlr-interest\/2005-November\/014435.html\">this posting<\/a> which suggests renaming jikes before building. Which works, but there is an easier way. Just declare an environment variable before starting the build.<\/p>\n<p><code><br \/>\nexport JAVAC=javac<br \/>\n.\/configure<br \/>\nmake<br \/>\n<\/code><\/p>\n<p>Changing the java compiler that gets used is documented in the configure script.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It appears that antlr on Mac os x doesn&#8217;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 &#8220;ANTLRException.java&#8221;: While it would be a good thing to try to fix the actual code, it&#8217;s easier to see if the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,10,14],"tags":[40],"class_list":["post-214","post","type-post","status-publish","format-standard","hentry","category-general","category-macintosh","category-writing-software","tag-java"],"_links":{"self":[{"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/posts\/214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/comments?post=214"}],"version-history":[{"count":1,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/posts\/214\/revisions"}],"predecessor-version":[{"id":1479,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/posts\/214\/revisions\/1479"}],"wp:attachment":[{"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/media?parent=214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/categories?post=214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.malcolmhardie.com\/weblogs\/angus\/wp-json\/wp\/v2\/tags?post=214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}