Skip to content

Bazel 0.5.0 build fails on Mac OS X El Capitan #3063

@zanes2016

Description

@zanes2016

Description 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.

Metadata

Metadata

Assignees

Labels

P1I'll work on this now. (Assignee required)type: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions