Command failed: cd
Clemens Lang
cal at macports.org
Sat Sep 28 18:54:38 UTC 2024
Hi,
On Fri, Sep 27, 2024 at 09:35:59PM -0700, Jen-Chieh Shen wrote:
> user "macports" does not exist
This shouldn't happen when you use the installer to setup MacPorts.
Since you probably didn't do that, you should consider manually creating
the 'macports' user on the CI system. See [1] for how the installer does
that.
> cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_pkgconfig/pkgconfig/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/pkgconfig/pkg-config-0.29.2.tar.gz' | /usr/bin/tar -xf -
> Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_pkgconfig/pkgconfig/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/pkgconfig/pkg-config-0.29.2.tar.gz' | /usr/bin/tar -xf -
> Error: Failed to extract pkgconfig: command execution failed
> Killed by signal: 9
This ^ is the relevant message — your extraction command is getting
killed with SIGKILL (which is signal 9).
> I don't know why the system failed to execute the `cd` command.
It's not the 'cd' that fails, it's the gunzip and tar on the command
line after it.
This is likely because you used -t to enable trace mode, but trace mode
does not work on arm64 machines, because Apple's binaries in /usr/bin
use a slightly different ABI using pointer authentication, but Apple
modified their Kernel so that only binaries signed by Apple can use this
ABI, which prevents us from creating modified versions of these binaries
so that we can inject a preload library, which is how trace mode works.
This *can* be worked around by disabling system integrity protection,
but hardly anybody does that, and I wouldn't recommend it. As a
consequence, trace mode on arm64 is broken until Apple changes
something. See [2] for the ticket with mode info.
[1]: https://github.com/macports/macports-base/blob/master/portmgr/dmg/postflight.in#L172-L214
[2]: https://trac.macports.org/ticket/66358#comment:39
--
Clemens
More information about the macports-users
mailing list