You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: error loading package '': Every .bzl file must have a corresponding package, but '@hermetic_cc_toolchain//rules:platform.bzl' does not have one. Please create a BUILD file in the same or any parent directory. Note that this BUILD file does not need to do anything except exist.
UPD 1:
I wasn't able to run the original examples as well: cd examples/rules_cc && bazel build //...
You stumbled into a problem with Zig SDK that bazel-zig-cc was not able to fix.
Please file a new issue to github.com/uber/hermetic_cc_toolchain with:
Full output of this Bazel run, including the Bazel command.
Version of the Zig SDK if you have a non-default.
Version of hermetic_cc_toolchain
Note: this may have been ziglang/zig#14978, for
which hermetic_cc_toolchain has a workaround and you may have been "struck by
lightning" three times in a row.
UPD 2:
The same error I get now if I try to build tests, seems it can't find the downloaded zig binary.
The text was updated successfully, but these errors were encountered:
I am not sure rules are meant to be public. Probably not. Thoughts @linzhp ? There is nothing zig-specific in there, and, if we want to expose a zig toolchain, it should be a proper toolchain, but not this.
Note: this may have been ziglang/zig#14978, for
which hermetic_cc_toolchain has a workaround and you may have been "struck by
lightning" three times in a row.
Can you file this separately? On my end, changing the wording for this is overdue.
I'm using bazel version 5.4.1 (the same error I saw on bazel 7.0.0)
Running on macOS Ventura 13.4.1, M2 arm64 chip
WORKSPACE
BUILD
Trying to run
bazel build :linux
ERROR: error loading package '': Every .bzl file must have a corresponding package, but '@hermetic_cc_toolchain//rules:platform.bzl' does not have one. Please create a BUILD file in the same or any parent directory. Note that this BUILD file does not need to do anything except exist.
UPD 1:
I wasn't able to run the original examples as well:
cd examples/rules_cc && bazel build //...
ERROR: Analysis of target '//:hello_world' failed; build aborted:
Compilation of zig-wrapper.zig failed:
command=ZIG_LOCAL_CACHE_DIR=/tmp/zig-cache ZIG_GLOBAL_CACHE_DIR=/tmp/zig-cache ../zig build-exe -target aarch64-macos-none -mcpu=apple_a14 -fstrip -OReleaseSafe zig-wrapper.zig
return_code=1
stderr=error: FileNotFound
stdout=
You stumbled into a problem with Zig SDK that bazel-zig-cc was not able to fix.
Please file a new issue to github.com/uber/hermetic_cc_toolchain with:
Note: this may have been ziglang/zig#14978, for
which hermetic_cc_toolchain has a workaround and you may have been "struck by
lightning" three times in a row.
UPD 2:
The same error I get now if I try to build tests, seems it can't find the downloaded zig binary.
The text was updated successfully, but these errors were encountered: