[MacPorts] #65107: py310-pyqt5-webengine: xcrun: error: SDK "macosx10.13" cannot be located

MacPorts noreply at macports.org
Tue May 3 19:09:29 UTC 2022


#65107: py310-pyqt5-webengine: xcrun: error: SDK "macosx10.13" cannot be located
----------------------------------------+------------------------
  Reporter:  RivetBenoit                |      Owner:  reneeotten
      Type:  defect                     |     Status:  reopened
  Priority:  Normal                     |  Milestone:
 Component:  ports                      |    Version:  2.7.2
Resolution:                             |   Keywords:  highsierra
      Port:  py-pyqt5-webengine py-sip  |
----------------------------------------+------------------------

Comment (by kencu):

 On systems that don't have the SDK installed into "/", which is all newer
 systems, MacPorts base is set to first of all look for the SDK that
 exactly matches the build system, for maximum compatibility between the
 build SDK and the features of the system. This causes the fewest build
 issues.

 If there is no such SDK, then it will fall back to use a generic
 MacOSX.sdk if that exists.

 qt5, qmake 5, the qt5 portgroup, or the qmake 5 portgroup, or some
 combination of these, does not seem to be properly following this plan,
 does not seem to be using the SDK MacPorts requests it to use, and qt5
 does it's own search for an SDK that does not always work out on our
 myriad of build systems.

 It is plenty hard to debug this, as it is all done inside configure shell
 scripts, etc, in the qt5 build. You need to throw in echo lines, etc, to
 make any progress, and it is hard.

 I and others stumbled across using "use_xcode yes" as a workaround that
 often seems to fix the build. What this exactly does is unclear. It may in
 fact just follow a different path in the qt5 PortGroup, which is possibly
 where the error needs fixing.

 But as "use_xcode yes" works, and I have xcode installed on every system,
 I stopped spending any more of my time on this particular headache.

 If someone wants to sort it out, have at it, and PR the proper fix once
 you find it!

-- 
Ticket URL: <https://trac.macports.org/ticket/65107#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list