-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tutorial failed on mac (with bazel version v4.2.2), error: libtool command fail #14578
Comments
Your actual Xcode version isn't included in this report, you can fetch it with |
@keith Thanks, when I run
Does it mean I have to install the whole Xcode App? which is kind of large for my disk space now .. |
Ah no, not having Xcode is theoretically fine. But assuming you're up to date in the system software update (so the command line tools are updated) you'll either have to update your major OS version to open yourself up to new versions of the command line tools, or replace |
Thanks for the reply. Unfortunately I found the version of my xcode command line tools is 9.2, which is already the highest under maxos 10.12. I guess I have to upgrade my macos now. Could you tell me what's the lowest required version for the latest bazel? |
We're running our tests on 11.6.1 |
@old-bear We recommend upgrading to the latest available macOS and Xcode version that runs on your Mac, because older macOS versions do not receive security updates from Apple. Unfortunately we can't test Bazel on older macOS or Xcode versions, so we're only testing / supporting relatively recent versions (currently macOS 11.6.1 and Xcode 13.0, we'll probably upgrade to macOS 12 after 5.0 is released). We try to avoid breaking Bazel on older versions of macOS / Xcode, but as we can't test it ourselves and don't have the bandwidth to actively investigate these kind of problems, we rely on users to report and provide patches to restore compatibility. |
brew uninstall libtool ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool /usr/local/opt/libtool/libexec/gnubin/libtool |
If libtool installed with homebrew is used for other purposes and cannot be removed, the path can be defined to use Xcode toolchain included libtool using ❯ cat ~/.bazelrc #or cat ./.bazelrc
build --action_env=LIBTOOL=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
test --action_env=LIBTOOL=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool |
Description of the problem / feature request:
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
What operating system are you running Bazel on?
What's the output of
bazel info release
?Have you found anything relevant by searching the web?
Any other information, logs, or outputs that you want to share?
The text was updated successfully, but these errors were encountered: