Skip to content

MacOS-build appears to have broken refresh_compile_commands #16

Closed

Description

@jasnell

Trying to run bazel run //:refresh_compile_commands now fails with...

INFO: Build option --features has changed, discarding analysis cache.
INFO: Analyzed target //:refresh_compile_commands (75 packages loaded, 438 targets configured).
INFO: Found 1 target...
Target //:refresh_compile_commands up-to-date:
  bazel-bin/refresh_compile_commands.py
  bazel-bin/refresh_compile_commands
INFO: Elapsed time: 0.499s, Critical Path: 0.00s
INFO: 5 processes: 5 internal.
INFO: Build completed successfully, 5 total actions
INFO: Build completed successfully, 5 total actions
>>> Automatically added //external workspace link:
    This link makes it easy for you--and for build tooling--to see the external dependencies you bring in. It also makes your source tree have the same directory structure as the build sandbox.
    It's a win/win: It's easier for you to browse the code you use, and it eliminates whole categories of edge cases for build tooling.
>>> Analyzing commands used in @//...
ERROR: /home/james/cloudflare/workerd/BUILD.bazel: no such target '//:macos_arm64': target 'macos_arm64' not declared in package '' defined by /home/james/cloudflare/workerd/BUILD.bazel
ERROR: /home/james/cloudflare/workerd/rust-deps/BUILD.bazel:40:14: errors encountered resolving select() keys for //rust-deps:crates_vendor
ERROR: Analysis of target '//rust-deps:crates_vendor' failed; build aborted: 
Bazel aquery failed. Command: ['bazel', 'aquery', "mnemonic('(Objc|Cpp)Compile',deps(@//...))", '--output=jsonproto', '--include_artifacts=false', '--ui_event_filters=-info', '--noshow_progress', '--features=-compiler_param_file']
>>> Failed extracting commands for @//...
    Continuing gracefully...

Likewise, running bazel build //... also fails:

james@DESKTOP-5KK9VIR:~/cloudflare/workerd$ bazel build //...
INFO: Build option --features has changed, discarding analysis cache.
ERROR: /home/james/cloudflare/workerd/BUILD.bazel: no such target '//:macos_arm64': target 'macos_arm64' not declared in package '' defined by /home/james/cloudflare/workerd/BUILD.bazel
INFO: Repository rust_linux_x86_64__x86_64-unknown-linux-gnu_tools instantiated at:
  /home/james/cloudflare/workerd/WORKSPACE:130:25: in <toplevel>
  /home/james/.cache/bazel/_bazel_james/728d89b94395895921db6cbedc832917/external/rules_rust/rust/repositories.bzl:163:14: in rust_register_toolchains
  /home/james/.cache/bazel/_bazel_james/728d89b94395895921db6cbedc832917/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
  /home/james/.cache/bazel/_bazel_james/728d89b94395895921db6cbedc832917/external/rules_rust/rust/repositories.bzl:586:61: in rust_repository_set
  /home/james/.cache/bazel/_bazel_james/728d89b94395895921db6cbedc832917/external/rules_rust/rust/repositories.bzl:403:36: in rust_toolchain_repository
Repository rule rust_toolchain_tools_repository defined at:
  /home/james/.cache/bazel/_bazel_james/728d89b94395895921db6cbedc832917/external/rules_rust/rust/repositories.bzl:241:50: in <toplevel>
INFO: Repository rules_proto instantiated at:
  /home/james/cloudflare/workerd/WORKSPACE:84:14: in <toplevel>
  /home/james/.cache/bazel/_bazel_james/728d89b94395895921db6cbedc832917/external/com_google_protobuf/protobuf_deps.bzl:55:21: in protobuf_deps
Repository rule http_archive defined at:
  /home/james/.cache/bazel/_bazel_james/728d89b94395895921db6cbedc832917/external/bazel_tools/tools/build_defs/repo/http.bzl:355:31: in <toplevel>
INFO: Repository 'rules_proto' used the following cache hits instead of downloading the corresponding file.
 * Hash 'a4382f78723af788f0bc19fd4c8411f44ffe0a72723670a34692ffad56ada3ac' for https://github.com/bazelbuild/rules_proto/archive/f7a30f6f80006b591fa7c437fe5a951eb10bcbcf.zip
If the definition of 'rules_proto' was updated, verify that the hashes were also updated.
ERROR: /home/james/cloudflare/workerd/rust-deps/BUILD.bazel:40:14: errors encountered resolving select() keys for //rust-deps:crates_vendor
ERROR: Analysis of target '//rust-deps:crates_vendor' failed; build aborted: 
INFO: Elapsed time: 0.267s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (2 packages loaded, 848 targets configured)
    currently loading: @com_google_protobuf// ... (2 packages)
    Fetching @com_googlesource_chromium_icu; Restarting.
    Fetching @cxxbridge_vendor__cxxbridge-cmd-1.0.75; fetching
    Fetching @v8; Cloning 35952837d5c420b727642b88e28651cb80c3f538 of https://chromium.googlesource.com/v8/v8.git
    Fetching @workerd-v8; Restarting.
    Fetching @com_cloudflare_lol_html; fetching
    Fetching @zlib; Restarting.
    Fetching ...1.0.75; Extracting /home/james/.cache/bazel/_bazel_james/728d89b94395895921db6cbedc832917/external/cxxbridge_ven\
dor__cxxbridge-cmd-1.0.75/temp5227076737996925508/download.tar.gz
    Fetching ..._proto; Extracting /home/james/.cache/bazel/_bazel_james/728d89b94395895921db6cbedc832917/external/rules_proto/t\
emp5294362049385986586/f7a30f6f80006b591fa7c437fe5a951eb10bcbcf.zip ... (9 fetches)
james@DESKTOP-5KK9VIR:~/cloudflare/workerd$ 

Running bazel build //src/workerd/server:workerd works as expected.

/cc @mrbbot @dom96

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions