Opened 3 years ago

Closed 3 years ago

#64086 closed defect (invalid)

graphviz-gui and graphviz-gui-devel @2.49.3 fail to build on macOS 12.1 beta (21C5039b) with Xcode 13.2 beta (13C5066c)

Reported by: thomasleaute Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), mascguy (Christopher Nielsen)
Port: graphviz-gui

Description

When attempting to install either graphviz-gui or graphviz-gui-devel, the following error message is shown:

Error: Port graphviz-gui 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 graphviz-gui failed

This is using Xcode 13.2 beta (13C5066c) on macOS 12.1 beta (21C5039b). I have reported this to Apple, but they answered that I should report it to MacPorts directly.

Change History (11)

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… mascguy@… removed

Please attach the main.log file so that we can see what's going on. If you have Xcode installed, and xcode-select is pointed to that Xcode, then you should not be seeing a message telling you Xcode was not found.

comment:2 Changed 3 years ago by thomasleaute

Where can I find the main.log file? It doesn't look like one is generated.

comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

If port logfile graphviz-gui doesn't show you its location, or if the location it indicates doesn't exist, then try:

sudo port clean graphviz-gui
sudo port -d install graphviz-gui 2>&1 | tee ~/Desktop/debug.log

Then attach debug.log from your Desktop.

comment:4 Changed 3 years ago by thomasleaute

Here are the contents of main.log as pointed by port logfile graphviz-gui:

version:1
:debug:main Starting logging for graphviz-gui @2.49.3_0
:debug:sysinfo macOS 12.1 (darwin/21.2.0) arch i386
:debug:sysinfo MacPorts 2.7.1
:debug:sysinfo Xcode none
:debug:sysinfo SDK 12
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 12.0
:error:main Port graphviz-gui requires a full Xcode installation, which was not found on your system.
:error:main You can install Xcode from the Mac App Store or https://developer.apple.com/xcode/

I have now upgraded to Xcode 13.2 beta 2 (13C5081f), hoping that it would fix the issue, but it didn't.

xcode-select --install reports that the command line tools are already installed. However, when I follow these instructions, pkgutil can't seen to find the CLT receipt. I am hesitant to following the instructions to re-install the CLT package, since I am using a beta version of Xcode, which I don't expect is necessarily available via Software Update (I downloaded this version of Xcode from the Apple Developer website).

Last edited 3 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Then download the matching version of the CLT from the Apple Developer web site and install it.

I didn't notice originally that you were using beta versions of macOS and Xcode. I don't know if that could be the cause for your difficulties, but we do tend to try to avoid discussing beta software here. See wiki:FAQ#prerelease.

comment:6 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Also, check what xcode-select -p reports. If it does not show the path to your Xcode, use xcode-select to select the correct path.

comment:7 in reply to:  5 Changed 3 years ago by thomasleaute

Replying to ryandesign:

I didn't notice originally that you were using beta versions of macOS and Xcode. I don't know if that could be the cause for your difficulties, but we do tend to try to avoid discussing beta software here. See wiki:FAQ#prerelease.

This is why I first reported this to Apple, who then instructed me to report it to MacPorts. But I understand that I should have contacted Mark Anderson directly instead.

comment:8 in reply to:  6 Changed 3 years ago by thomasleaute

Replying to ryandesign:

Also, check what xcode-select -p reports. If it does not show the path to your Xcode, use xcode-select to select the correct path.

% xcode-select -p
/Library/Developer/CommandLineTools

comment:9 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Ok, so that's not Xcode; that's the command line tools. Use xcode-select to point to where your Xcode is.

comment:10 in reply to:  9 Changed 3 years ago by thomasleaute

Replying to ryandesign:

Ok, so that's not Xcode; that's the command line tools. Use xcode-select to point to where your Xcode is.

Indeed, xcode-select --switch /Applications/Xcode-beta.app fixed it. Thank you for your support.

comment:11 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Super!

Note: See TracTickets for help on using tickets.