[MacPorts] #68515: qgis3 fails to build on macOS Sonoma ARM
MacPorts
noreply at macports.org
Fri Oct 20 20:19:11 UTC 2023
#68515: qgis3 fails to build on macOS Sonoma ARM
------------------------+---------------------------
Reporter: alanterra | Owner: Veence
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: sonoma, arm64
Port: qgis3 |
------------------------+---------------------------
Comment (by ryandesign):
The problem could be MacPorts base. When you install a port that has a lot
of dependencies (according to `port rdeps qgis3 | wc -l` there are 670
other ports that need to be installed before qgis3 can be installed)
MacPorts needs to examine all of those other ports and put them in the
right order before building them. It's possible MacPorts is keeping one or
more file handles open for each of those ports, which would reduce the
number of file handles available for other things like actually compiling.
If so, this may be a bug; MacPorts base may have forgotten to close a file
handle after it was done with it, or there may be a more optimal way to
arrange the code that doesn't require so many files to be kept open. It
also makes sense that you see the problem with a different port after
installing some other ports: if the other ports you installed were
dependencies of qgis3, then when you install qgis3 there are fewer ports
remaining to be installed for which MacPorts needs to keep files open,
leaving more files available for the actual build.
The `lsof` utility may be able to help us verify whether too many open
files is the problem, though I can't advise you on its usage.
Prior to Sonoma, you were probably receiving most of qgis3's dependencies
as pre-built archives from our build system and MacPorts didn't have to
compile them from source on your system so you wouldn't have seen problems
that only occur at build time. We have not yet begun building archives for
Sonoma on arm64 so you have to build everything from source for now.
--
Ticket URL: <https://trac.macports.org/ticket/68515#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list