Bazel 0.5.0 build fails on Mac OS X El Capitan
See original GitHub issueDescription of the problem / feature request / question:
Bazel build fails on Mac OS X El Capitan (Version 10.11.6). The same build completes without any issue on Ubuntu 14.04. It looks like this is a mac specific issue.
Mac (build error):
$ bazel version
Build label: 0.5.0-homebrew
Build target: bazel-out/darwin_x86_64-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri May 26 14:50:47 2017 (1495810247)
Build timestamp: 1495810247
Build timestamp as int: 1495810247
$
$
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.11.6
BuildVersion: 15G1510
$
$
$ bazel build --verbose_failures :all
ERROR: in target '//external:cc_toolchain': no such package '@local_config_cc//': Traceback (most recent call last):
File "/private/var/tmp/_bazel_user/6f6133ece88806ce1513398e26791cf1/external/bazel_tools/tools/cpp/cc_configure.bzl", line 829
_get_escaped_darwin_cxx_inc_directories(repository_ctx, cc)
File "/private/var/tmp/_bazel_user/6f6133ece88806ce1513398e26791cf1/external/bazel_tools/tools/cpp/cc_configure.bzl", line 726, in _get_escaped_darwin_cxx_inc_directories
for toolchain in toolchains: ...
type 'NoneType' is not iterable.
INFO: Elapsed time: 3.445s
Ubuntu (no error):
$ bazel version
Build label: 0.5.0
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri May 26 12:11:50 2017 (1495800710)
Build timestamp: 1495800710
Build timestamp as int: 1495800710
$
$
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
$
$
$ # I already ran the build, it succeeded without any issues
$ bazel build --verbose_failures :all
INFO: Found 1 target...
Target //:env up-to-date (nothing to build)
INFO: Elapsed time: 0.128s, Critical Path: 0.00s
If possible, provide a minimal example to reproduce the problem:
On a mac, the following produces the error
$ bazel build --verbose_failures :all
Environment info
-
Operating System: ProductName: Mac OS X ProductVersion: 10.11.6 BuildVersion: 15G1510
-
Bazel version (output of
bazel info release
): release 0.5.0-homebrew
Anything else, information or logs or outputs that would be helpful?
I’m trying to build the same project on both mac and ubuntu which is version controlled with git. So i’m confident that the two build sources are identical.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:53 (42 by maintainers)
Top Results From Across the Web
Installing Bazel on macOS
Step 1: Install Homebrew on macOS; Step 2: Install Bazel via Homebrew. Installing using the binary installer. Step 1: Install Xcode command line...
Read more >Compiling on OS X - Apache Heron
Step 5 --- Configure Heron for building with Bazel. $ ./bazel_configure.py. If this configure script fails with missing dependencies, Homebrew can be used ......
Read more >CHANGELOG.md - Google Git
FAILED: Build did NOT complete successfully (0 packages loaded) ... Bazel now no longer includes system headers on macOS in coverage reports (#14969)....
Read more >看caffe和tensorflow源码用什么IDE? - 谈之巨人Armin 的回答
CLion (build 2016.3.5) + Bazel Plugin - IntelliJ with Bazel 环境:前者是Jetbrains公司出品 ... Bazel 0.5.0 build fails on Mac OS X El Capitan ·...
Read more >Xcode version must be specified to use an Apple CROSSTOOL
The Command Line Tools drop-down was blank, and I had to press it and select a version (Xcode 9.0 in my case). I...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
just for future people.
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
could do the the trick if you install Xcode and bazel still failing.Just to be sure, also after
bazel clean --expunge
?