[MacPorts] #70675: gh: Error: Failed to destroot gh: dyld: Symbol not found: _exit
MacPorts
noreply at macports.org
Fri Sep 6 23:02:36 UTC 2024
#70675: gh: Error: Failed to destroot gh: dyld: Symbol not found: _exit
--------------------------------+-------------------------------
Reporter: RobK88 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.1
Resolution: | Keywords: elcapitan mtnlion
Port: gh legacy-support |
--------------------------------+-------------------------------
Comment (by fhgwright):
AIUI, `go` is self-hosted, meaning that a working version of `go` is
needed to build `go`, hence the current approach. "Just fix the source"
isn't an option until ''after'' one has a working binary. The only
version requirement for the bootstrap binary is that it be sufficiently
recent to support the build procedure, and moving to a "much newer
version" is exactly the wrong thing, because it's likely to make the OS
requirements worse.
There are actually several problems with `gh` as it stands, aside from the
issue here:
1) It also needs `utimensat()`, which didn't appear until 10.13. That one
is trivially fixed by changing the version threshold for the `legacy-
support` patch. In fact, it means that `legacy-support` is needed for all
binary versions, so the extra conditional goes away.
2) In addition to the aforementioned #67520, #66749 is also relevant.
3) The binary doesn't include `i386` or `ppc` slices.
4) The binary uses a load command that's unsupported on 10.5 (and
presumably 10.4, if it got past the architecture issue).
5) The builds from source on 10.13 and 10.14 don't work, due to some
quoting issue with command arguments.
The bottom line is that `gh` doesn't currently work on anything older than
10.15, even with the easy fixes.
--
Ticket URL: <https://trac.macports.org/ticket/70675#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list