rbenv 编译 ruby
generating arm64-darwin20-fake.rb
arm64-darwin20-fake.rb updated
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems -r./arm64-darwin20-fake ./tool/rbinstall.rb --make="make" --dest-dir="" --extout=".ext" --mflags="" --make-flags="" --data-mode=0644 --prog-mode=0755 --installed-list .installed.list --mantype="doc" --rdoc-output=".ext/rdoc" --html-output=".ext/html"
make: *** [do-install-all] Killed: 9
pyenv 编译 python
/bin/sh: line 1: 59082 Killed: 9 CC='clang' LDSHARED='clang -bundle -undefined dynamic_lookup -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/readline/lib -L/Users/lidashuang/.pyenv/versions/3.9.2/lib -L/opt/homebrew/opt/[email protected]/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/readline/lib -L/Users/lidashuang/.pyenv/versions/3.9.2/lib -L/opt/homebrew/opt/[email protected]/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib ' OPT='-DNDEBUG -g -fwrapv -O3 -Wall' _TCLTK_INCLUDES='' _TCLTK_LIBS='' ./python.exe -E ./setup.py $quiet build
homebrew 安装 python
subprocess.CalledProcessError: Command '['/opt/homebrew/opt/[email protected]/bin/python3.9', '-c', '\nimport runpy\nimport sys\nsys.path = [\'/private/tmp/tmp7q_qlu62/setuptools-49.2.1-py3-none-any.whl\', \'/private/tmp/tmp7q_qlu62/pip-20.2.3-py2.py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'/private/tmp/tmp7q_qlu62\', \'setuptools\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n']' died with <Signals.SIGKILL: 9>.
1
fx OP |
2
BrettD 2021-02-22 05:50:51 +08:00 via iPhone
升级 11.2.1 没遇到这问题,一切正常。看报错看上去是二进制代码签名的问题,把 Homebrew 安装的软件包重新安装试一下
|
4
spiraldox 2021-02-22 08:04:59 +08:00
执行 xcode-select --install 更新 xcode 试试
|
5
BrettD 2021-02-22 08:05:17 +08:00 via iPhone
我以前在 M1 编译 libgcrypt 的时候也是遇到 Killed 9 的报错,后来发现原因是测试脚本会修改其中一个二进制文件的内容,导致代码签名校验失败被系统杀掉,最后在脚本里面加了一行重新代码签名解决了问题。
你这个情况在系统错误日志里面可以查到被杀的原因,有助于调查。代码签名无效是我的一个猜测。 |
6
wydinhk 2021-02-22 08:19:35 +08:00
嗯,应该是 xcode 命令行工具掉了
|
7
fx OP @spiraldox 这个已经跑过了
xcode-select --install xcode-select: error: command line tools are already installed, use "Software Update" to install updates |
8
fx OP Feb 22 08:29:10 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.redis[65640]): Binary is improperly signed.
Feb 22 08:29:10 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.redis): Service only ran for 0 seconds. Pushing respawn out by 10 seconds. Feb 22 08:29:10 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.postgresql[65639]): Binary is improperly signed. Feb 22 08:29:10 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.postgresql): Service only ran for 0 seconds. Pushing respawn out by 10 seconds. Feb 22 08:29:13 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (com.apple.mdworker.shared.0F000000-0200-0000-0000-000000000000[65616]): Service exited due to SIGKILL | sent by mds[98] Feb 22 08:29:13 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (com.apple.mdworker.shared.0E000000-0700-0000-0000-000000000000[65562]): Service exited due to SIGKILL | sent by mds[98] Feb 22 08:29:13 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (com.apple.mdworker.shared.09000000-0300-0000-0000-000000000000[65582]): Service exited due to SIGKILL | sent by mds[98] Feb 22 08:29:20 dashuangdeMacBook-Pro com.apple.xpc.launchd[1] (homebrew.mxcl.postgresql[65982]): Binary is improperly signed. |
9
fx OP Service exited due to SIGKILL | sent by mds
|
10
BrettD 2021-02-22 08:39:27 +08:00 via iPhone
Binary is improperly signed.
应该就是代码签名不正确的原因。自己编译运行一个 C 语言的 hello world 程序能不能跑起来? |
12
BrettD 2021-02-22 08:41:43 +08:00 via iPhone
那就把不能运行的软件重新安装一遍
|
13
BrettD 2021-02-22 08:44:24 +08:00 via iPhone
这么大范围的代码签名失效是不是中病毒了……
|
15
SingeeKing 2021-02-22 11:37:31 +08:00
同款 Mac,完全未遇到过
|
16
fx OP @SingeeKing 升级完突然出现的
|
17
joe7z 2021-02-22 12:26:46 +08:00
我想问问,你是不是用 brew 安装东西了。
我用 brew 安装了 git,也出现这个问题。 brew uninstall xxx 然后 xcode-select --install 试试看 |