-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build error using bazel #149
Comments
Same for me, tried on Ubuntu 20.04 with Bazel 6.3.2 from the apt repo. Tried the last few master commits, none would build for me. @cptspacemanspiff posted a workaround for a similar error on issue #101 a while back, which is apparently on master now. Maybe the same needs to be done for the |
I have fixed it by modifying the WORKSPACE file as this: rules_python is a dependency for protobuf.http_archive( load("@rules_python//python:repositories.bzl", "py_repositories") but I meet new problems about compiling, it's hard for me to workout: [root@opengauss-master perf_data_converter]# bazel build src:perf_to_profile --verbose_failures Configuration: 442d8db79c046018027f86fb6ba2e9e3560c56c0504c8b6423d08c7d06207c4dExecution platform: @local_config_platform//:hostUse --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging |
This should be fixed with #150 which was just merged to main. Feel free to re-open if it's not. |
when I build perf-data-converter, I have this error, how I can solve it?
[root@opengauss-master perf_data_converter]# bazel build src:perf_to_profile
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 = "7372397031f356341e932c4b0489489e4111152fc3a9e03660ede951e9b2d84d"
DEBUG: Repository com_google_protobuf instantiated at:
/root/perf/perf_data_converter/WORKSPACE:30:13: in
Repository rule http_archive defined at:
/root/.cache/bazel/_bazel_root/4a25792f71ccee4f60d59a36fdf7bb13/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "12b37c991026c4ce136509fd3aeb4a194e98a29c0f328ecac53269a8c0af2906"
DEBUG: Repository rules_python instantiated at:
/root/perf/perf_data_converter/WORKSPACE:20:13: in
Repository rule http_archive defined at:
/root/.cache/bazel/_bazel_root/4a25792f71ccee4f60d59a36fdf7bb13/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in
INFO: Repository boringssl instantiated at:
/root/perf/perf_data_converter/WORKSPACE:37:13: in
Repository rule http_archive defined at:
/root/.cache/bazel/_bazel_root/4a25792f71ccee4f60d59a36fdf7bb13/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in
INFO: Repository bazel_skylib instantiated at:
/root/perf/perf_data_converter/WORKSPACE:5:13: in
Repository rule http_archive defined at:
/root/.cache/bazel/_bazel_root/4a25792f71ccee4f60d59a36fdf7bb13/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in
ERROR: /root/perf/perf_data_converter/src/BUILD:170:11: error loading package '@com_google_protobuf//': at /root/.cache/bazel/_bazel_root/4a25792f71ccee4f60d59a36fdf7bb13/external/rules_python/python/defs.bzl:20:6: at /root/.cache/bazel/_bazel_root/4a25792f71ccee4f60d59a36fdf7bb13/external/rules_python/python/py_runtime.bzl:19:6: at /root/.cache/bazel/_bazel_root/4a25792f71ccee4f60d59a36fdf7bb13/external/rules_python/python/private/common/py_runtime_macro.bzl:16:6: at /root/.cache/bazel/_bazel_root/4a25792f71ccee4f60d59a36fdf7bb13/external/rules_python/python/private/common/py_runtime_rule.bzl:21:6: at /root/.cache/bazel/_bazel_root/4a25792f71ccee4f60d59a36fdf7bb13/external/rules_python/python/private/common/py_internal.bzl:23:6: Unable to find package for @rules_python_internal//:py_internal.bzl: The repository '@rules_python_internal' could not be resolved: Repository '@rules_python_internal' is not defined. and referenced by '//src:builder'
ERROR: Analysis of target '//src:perf_to_profile' failed; build aborted:
INFO: Elapsed time: 9.419s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (39 packages loaded, 206 targets configured)
currently loading: @com_google_protobuf//
Fetching https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz
The text was updated successfully, but these errors were encountered: