Opened 21 months ago

Closed 2 weeks ago

#65225 closed defect (fixed)

antlr @2.7.7_3 fails to build on macOS 12: "Unable to locate a Java Runtime."

Reported by: hyodae-seo (Hyodae Seo) Owned by: Dave-Allured (Dave Allured)
Priority: Normal Milestone:
Component: ports Version:
Keywords: monterey Cc: Dave-Allured (Dave Allured)
Port: antlr

Description (last modified by jmroot (Joshua Root))

unable to install antlr (which is required by nco) on new Mac

MacBook-Air: sudo port install antlr
--->  Fetching archive for antlr
--->  Attempting to fetch antlr-2.7.7_3.darwin_21.arm64.tbz2 from https://packages.macports.org/antlr
--->  Attempting to fetch antlr-2.7.7_3.darwin_21.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/antlr
--->  Attempting to fetch antlr-2.7.7_3.darwin_21.arm64.tbz2 from https://mse.uk.packages.macports.org/antlr
--->  Building antlr
Error: Failed to build antlr: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_antlr/antlr/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port antlr failed

In /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_antlr/antlr/main.log

:info:archivefetch --->  antlr-2.7.7_3.darwin_21.arm64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch antlr-2.7.7_3.darwin_21.arm64.tbz2 from https://packages.macports.org/antlr
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch antlr-2.7.7_3.darwin_21.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/antlr
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch antlr-2.7.7_3.darwin_21.arm64.tbz2 from https://mse.uk.packages.macports.org/antlr
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404

So there is no antlr-2.7.7_3.darwin_21.arm64.tbz2 in https://ywg.ca.packages.macports.org/mirror/macports/packages/antlr (there is antlr-2.7.7_3.darwin_20.arm64.tbz2)

Change History (5)

comment:1 Changed 21 months ago by hyodae-seo (Hyodae Seo)

Description: modified (diff)

comment:2 Changed 21 months ago by jmroot (Joshua Root)

Description: modified (diff)
Keywords: monterey added; antlr removed
Port: antlr added
Summary: antlr-2.7.7_3.darwin_21.arm64.tbz2 missingantlr @2.7.7_3 fails to build on macOS 12: "Unable to locate a Java Runtime."

You didn't include the part of the log with the actual build failure, but I assume it's the same one that can be seen at https://ports.macports.org/port/antlr/builds/.

comment:3 Changed 21 months ago by simona-liens

Hello, I've a new (so I don't do migration) mac monterey, I woulk like to install nco, but sudo port install nco:.... ---> Computing dependencies for nco The following dependencies will be installed:

antlr bison bison-runtime gmp gnutls gsl libedit libffi libtasn1 libxslt nettle p11-kit pcre2 perl5.34 texinfo wget xercesc3

Continue? [Y/n]: y ---> Fetching archive for antlr ---> Attempting to fetch antlr-2.7.7_3.darwin_21.arm64.tbz2 from https://packages.macports.org/antlr ---> Attempting to fetch antlr-2.7.7_3.darwin_21.arm64.tbz2 from https://mse.uk.packages.macports.org/antlr ---> Attempting to fetch antlr-2.7.7_3.darwin_21.arm64.tbz2 from https://fra.de.packages.macports.org/antlr ---> Building antlr Error: Failed to build antlr: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_antlr/antlr/main.log for details.

antlr is already installed :

port installed | grep antlr antlr3 @3.5.2_0 (active)

But I cannot install the oldest on (2.7.7_3.darwin_21. because is not available, if I understand well).

Do you know if there is a workaround to install nco without antlr or without this old version? thanks, Simona

comment:4 Changed 2 weeks ago by Dave-Allured (Dave Allured)

Cc: Dave-Allured added

comment:5 Changed 2 weeks ago by Dave-Allured (Dave Allured)

Owner: set to Dave-Allured
Resolution: fixed
Status: newclosed

In e419126045a3f6682201514890f094f998c18c78/macports-ports (master):

antlr @2.7.7: Add java portgroup, fix build

.

  • Add java portgroup to fix builds on recent OS versions.
  • Add required java version, etc.
  • Update to modern checksum types.
  • Add myself as maintainer.
  • Maybe fixes: #65225
Note: See TracTickets for help on using tickets.