Solve: linking with `cc` failed: exit status: 1 | = note: "cc" "-arch" "arm64"

Hi there,

I noticed this issue was closed last May and was invited to re-open the topic again.

I cannot explain recreation steps that's why I didn't use GitHub issues, but it is a very common issue. If I compile with cargo run or rustc x.rs, it yields the same error:

error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-arch" "arm64" "/var/folders/st/4pr4pf1d5hg5dwjnn8m336qw0000gn/T/rustcTuWXR6/symbols.o" ...
  = note: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
          
error: aborting due to previous error

How to solve this, please?

Thanks

Something probably messed up your C/native toolchain installation. You could try re-installing the Xcode Command Line Tools.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.