.
.
warning: build failed, waiting for other jobs to finish...
error: linking with `cc` failed: exit status: 1
.
.
Xcode Command Line Tools が使えない?
どうやらエラーの原因は macOS を Monterey にアップデートしたことで、Xcode Command Line Tools が使えない状態になっていたみたいです。
Xcode Command Line Tools を再インストール
使えないので、Xcode Command Line Tools を再度インストールしてあげましょう。
以下のコマンドを実行すれば OK です。
xcode-select --install
参考記事
同様のエラーだったので、こちらの記事を参考にエラーを解決しました。
Stack Overflow
error: linking with `cc` failed: exit code: 1I have a single .rs file. When I compile it by rustc test1.rs, I get an error:
error: linking with `cc` failed: exit code: 1
note: cc ‘-m64’ ‘-L’ ‘/usr/loc…
コメント