Closed zhangtingchuang666 closed 1 year ago
Hello, likely this is due to an outdated bazel version. Please update Bazel and try again: https://bazel.build/install/ubuntu#install-bazel
Thanks!I solve this problem by updating version of bazel.
But I encounter new problem
bazel build //private_join_and_compute:all
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "d594b561fb41bf243233d8f411c7f2b7d913e5c9c1be4ca439baf7e48384c893"
DEBUG: Repository com_google_protobuf instantiated at:
/home/ubuntu22/Downloads/private-join-and-compute/WORKSPACE:20:9: in
Available commands: analyze-profile Analyzes build profile data. aquery Analyzes the given targets and queries the action graph. build Builds the specified targets. canonicalize-flags Canonicalizes a list of bazel options. clean Removes output files and optionally stops the server. coverage Generates code coverage report for specified test targets. cquery Loads, analyzes, and queries the specified targets w/ configurations. dump Dumps the internal state of the bazel server process. fetch Fetches external repositories that are prerequisites to the targets. help Prints help for commands, or the index. info Displays runtime info about the bazel server. license Prints the license of this software. mobile-install Installs targets to mobile devices. mod Queries the Bzlmod external dependency graph print_action Prints the command line args for compiling a file. query Executes a dependency graph query. run Runs the specified target. shutdown Stops the bazel server. sync Syncs all repositories specified in the workspace file test Builds and runs the specified test targets. version Prints version information for bazel.
Getting more help:
bazel help
bazel --version bazel 7.0.0-pre.20230810.1
I think running "bazel clean " and retrying should help
sorry, I try "bazel clean", but it fail too.
Could you tell me the version of bazel that you use to build this project?
Thanks, I solve this problem by using bazel 4.1.0
bazel build //private_join_and_compute:all DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "d594b561fb41bf243233d8f411c7f2b7d913e5c9c1be4ca439baf7e48384c893" DEBUG: Repository com_google_protobuf instantiated at: no stack (--record_rule_instantiation_callstack not enabled) Repository rule http_archive defined at: /home/ubuntu22/.cache/bazel/_bazel_ubuntu22/8c6f03768dccbef555c19625ba83d33a/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in
ERROR: /home/ubuntu22/.cache/bazel/_bazel_ubuntu22/8c6f03768dccbef555c19625ba83d33a/external/rules_python/python/pip_install/pip_repository.bzl:129:29: name 'json' is not defined
ERROR: /home/ubuntu22/.cache/bazel/_bazel_ubuntu22/8c6f03768dccbef555c19625ba83d33a/external/rules_python/python/pip_install/pip_repository.bzl:131:33: name 'json' is not defined
ERROR: /home/ubuntu22/.cache/bazel/_bazel_ubuntu22/8c6f03768dccbef555c19625ba83d33a/external/rules_python/python/pip_install/pip_repository.bzl:429:12: name 'json' is not defined
ERROR: error loading package '': in /home/ubuntu22/.cache/bazel/_bazel_ubuntu22/8c6f03768dccbef555c19625ba83d33a/external/rules_python/python/pip.bzl: Extension 'python/pip_install/pip_repository.bzl' has errors
INFO: Elapsed time: 0.039s
INFO: 0 processes.