bazel: Bazel cannot not build itself with Xcode 10

Description of the problem / feature request:

Unable to build bazel from source using bazel 0.16.1 and Xcode 10.

Bugs: what’s the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

jgavris in ~/code/software/bazel on (HEAD detached at 2da247fc71)
λ bazel clean --expunge
WARNING: Running Bazel server needs to be killed, because the startup options are different.
Starting local Bazel server and connecting to it...
INFO: Starting clean.
jgavris in ~/code/software/bazel on (HEAD detached at 2da247fc71)
λ bazel build //src:bazel-bin
Starting local Bazel server and connecting to it...
INFO: Analysed target //src:bazel-bin (227 packages loaded).
INFO: Found 1 target...
ERROR: /Users/jgavris/code/software/bazel/third_party/ijar/BUILD:67:1: undeclared inclusion(s) in rule '//third_party/ijar:zipper':
this rule is missing dependency declarations for the following files included by 'third_party/ijar/zip_main.cc':
  '/Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk/usr/include/errno.h'
  '/Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk/usr/include/sys/errno.h'
  '/Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk/usr/include/sys/cdefs.h'
  '/Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk/usr/include/sys/_symbol_aliasing.h'
  '/Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk/usr/include/sys/_posix_availability.h'

What operating system are you running Bazel on?

macOS 10.13.6

What’s the output of bazel info release?

release 0.16.1

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 19 (15 by maintainers)

Commits related to this issue

Most upvoted comments

https://github.com/bazelbuild/bazel/pull/7151 has landed on master which I think will fix this issue without having to pass --host_cpu, if someone could verify that’d be great!