carbon-lang icon indicating copy to clipboard operation
carbon-lang copied to clipboard

Brew build error

Open 4lfg24 opened this issue 3 years ago • 1 comments

After running "bazel run //explorer -- ./explorer/testdata/print/format_only.carbon" in the terminal, I get this error, "fail("llvm-ar not found in PATH or adjacent to clang")" could someone please tell me how to fix it? Thank you in advance!

4lfg24 avatar Sep 01 '22 08:09 4lfg24

Hi, Install llvm [even in GNU/Linux] with brew and set the path

brew install llvm
export PATH="$(brew --prefix llvm)/bin:${PATH}" 

Install brew brew documentationbrew.sh

Troubleshooting build issues

Many build issues result from the particular options clang and llvm have been built with, particularly when it comes to system-installed versions. This is why we recommend using Homebrew's LLVM.

yaa-ali avatar Sep 03 '22 05:09 yaa-ali

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please comment or remove the inactive label. The long term label can also be added for issues which are expected to take time. This issue is labeled inactive because the last activity was over 90 days ago.

github-actions[bot] avatar Dec 03 '22 01:12 github-actions[bot]

I think the previous post already answered this, closing.

chandlerc avatar Dec 03 '22 10:12 chandlerc