Opened 3 weeks ago

Last modified 3 weeks ago

#71111 assigned defect

openjdk20: needs a complete installation of Xcode

Reported by: omata (Oscar A. Mata T.) Owned by: usersxx
Priority: Normal Milestone:
Component: ports Version: 2.10.2
Keywords: Cc:
Port: openjdk20

Description (last modified by omata (Oscar A. Mata T.))

Can't install openjdk20

Making a long history short, I upgraded my system to Sequoia, so I did a ports migration that failed, I had to uninstall and reinstall Mac Ports and Xcode CLI tools because some ports were failing at build stage. This issue was fixed with re-installations but I cant install OpenJDK 20, when I had it installed with my previous system version just with Xcode CLI tools.

sudo port -d install openjdk20
DEBUG: Opening port in directory: /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/java/openjdk20
DEBUG: OS darwin/24.0.0 (macOS 15.0.1) arch arm
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Executing variant release provides release
DEBUG: Executing variant server provides server
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: dropping privileges: euid changed to 502, egid changed to 501.
DEBUG: Starting logging for openjdk20 @20.0.2_1+release+server
DEBUG: macOS 15.0.1 (darwin/24.0.0) arch arm
DEBUG: MacPorts 2.10.2
DEBUG: Xcode none, CLT 15.3.0.0.1.1708646388
DEBUG: SDK 15
DEBUG: MACOSX_DEPLOYMENT_TARGET: 15.0
DEBUG: Fetching openjdk20-20.0.2_1+release+server.darwin_24.arm64.tbz2 archive size
Error: Port openjdk20 requires a full Xcode installation, which was not found on your system.
Error: You can install Xcode from the Mac App Store or https://developer.apple.com/xcode/
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port openjdk20 failed

Change History (4)

comment:1 Changed 3 weeks ago by omata (Oscar A. Mata T.)

Description: modified (diff)

comment:2 Changed 3 weeks ago by reneeotten (Renee Otten)

Keywords: sequoia arm64 removed
Owner: set to usersxx
Priority: HighNormal
Status: newassigned

well... the port sets use_xcode yes which indicates that you need to have a complete Xcode installation to get it installed as you noticed. Presumably the port maintainer has verified that this is indeed needed, so there isn't anything we can do about it. The error message tells you what to do (i.e., install Xcode) so why don't you just do that to resolve your "problem".

comment:3 Changed 3 weeks ago by reneeotten (Renee Otten)

Milestone: MacPorts Future
Summary: Tried to install openjdk20 but Mac Ports keep saying that I need a complete installation of Xcodeopenjdk20: needs a complete installation of Xcode

comment:4 in reply to:  description Changed 3 weeks ago by ryandesign (Ryan Carsten Schmidt)

Replying to omata:

I had it installed with my previous system version just with Xcode CLI tools.

We probably had a binary archive available for your previous OS version. We don't have binary archives available for macOS 15 on arm64 yet.

Note: See TracTickets for help on using tickets.