Skip to content
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

bazel build //source/exe:envoy-static, error for org_golang_google_grpc #3652

Closed
yuansx opened this issue Jun 18, 2018 · 7 comments
Closed
Labels
question Questions that are neither investigations, bugs, nor enhancements stale stalebot believes this issue/PR has not been touched recently

Comments

@yuansx
Copy link

yuansx commented Jun 18, 2018

[root@localhost envoy]# bazel build --package_path %workspace%:/root/src/envoy/ //source/exe:envoy-static
INFO: Build options have changed, discarding analysis cache.
External dependency cache directory /root/.cache/bazel/_bazel_root/b4ce55150c2905dc1fa0886156c33084/external/envoy_deps_cache_fbe7fd77b8354b9a6f47b8e24c1a5f25
make: Entering directory `/root/.cache/bazel/_bazel_root/b4ce55150c2905dc1fa0886156c33084/external/envoy_deps'
No need to rebuild /root/.cache/bazel/_bazel_root/b4ce55150c2905dc1fa0886156c33084/external/envoy_deps_cache_fbe7fd77b8354b9a6f47b8e24c1a5f25/cares.dep.env
No need to rebuild /root/.cache/bazel/_bazel_root/b4ce55150c2905dc1fa0886156c33084/external/envoy_deps_cache_fbe7fd77b8354b9a6f47b8e24c1a5f25/benchmark.dep.env
No need to rebuild /root/.cache/bazel/_bazel_root/b4ce55150c2905dc1fa0886156c33084/external/envoy_deps_cache_fbe7fd77b8354b9a6f47b8e24c1a5f25/libevent.dep.env
No need to rebuild /root/.cache/bazel/_bazel_root/b4ce55150c2905dc1fa0886156c33084/external/envoy_deps_cache_fbe7fd77b8354b9a6f47b8e24c1a5f25/gperftools.dep.env
No need to rebuild /root/.cache/bazel/_bazel_root/b4ce55150c2905dc1fa0886156c33084/external/envoy_deps_cache_fbe7fd77b8354b9a6f47b8e24c1a5f25/luajit.dep.env
Building in /root/.cache/bazel/_bazel_root/b4ce55150c2905dc1fa0886156c33084/external/envoy_deps_cache_fbe7fd77b8354b9a6f47b8e24c1a5f25/luajit.dep.build, logs at /root/.cache/bazel/_bazel_root/b4ce55150c2905dc1fa0886156c33084/external/envoy_deps_cache_fbe7fd77b8354b9a6f47b8e24c1a5f25/luajit.dep.log
Successful build of /root/.cache/bazel/_bazel_root/b4ce55150c2905dc1fa0886156c33084/external/envoy_deps_cache_fbe7fd77b8354b9a6f47b8e24c1a5f25/luajit.dep
cat: /root/.cache/bazel/_bazel_root/b4ce55150c2905dc1fa0886156c33084/external/envoy_deps_cache_fbe7fd77b8354b9a6f47b8e24c1a5f25/nghttp2.dep.env: No such file or directory
Building in /root/.cache/bazel/_bazel_root/b4ce55150c2905dc1fa0886156c33084/external/envoy_deps_cache_fbe7fd77b8354b9a6f47b8e24c1a5f25/nghttp2.dep.build, logs at /root/.cache/bazel/_bazel_root/b4ce55150c2905dc1fa0886156c33084/external/envoy_deps_cache_fbe7fd77b8354b9a6f47b8e24c1a5f25/nghttp2.dep.log
ERROR: /root/.cache/bazel/_bazel_root/b4ce55150c2905dc1fa0886156c33084/external/io_bazel_rules_go/proto/BUILD.bazel:21:1: no such package '@org_golang_google_grpc//': failed to fetch org_golang_google_grpc: 2018/06/09 23:04:16 unrecognized import path "google.golang.org/grpc"
and referenced by '@io_bazel_rules_go//proto:go_grpc'
ERROR: Analysis of target '//source/exe:envoy-static' failed; build aborted: no such package '@org_golang_google_grpc//': failed to fetch org_golang_google_grpc: 2018/06/09 23:04:16 unrecognized import path "google.golang.org/grpc"
INFO: Elapsed time: 47.221s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (248 packages loaded)

all the error message, I don't know how to fix it. who can tell me how to do, thanks

@mattklein123 mattklein123 added the question Questions that are neither investigations, bugs, nor enhancements label Jun 18, 2018
@alonlong
Copy link

ENVOY_SRCDIR=/source
INFO: $TEST_TMPDIR defined: output root default is '/build/tmp' and max_idle_secs default is '15'.
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
...............
Cloning into '/build/envoy-filter-example'...
remote: Counting objects: 850, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 850 (delta 28), reused 9 (delta 7), pack-reused 820
Receiving objects: 100% (850/850), 97.91 KiB | 99.00 KiB/s, done.
Resolving deltas: 100% (762/762), done.
Note: checking out '4b6c55b726eda8a1f99e6f4ca1a87f6ce670604f'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b new_branch_name

HEAD is now at 4b6c55b... cleanup: move filter wrapper into Http namespace. (#49)
building using 2 CPUs
gcc/g++ toolchain configured
bazel release build...
Building...
INFO: $TEST_TMPDIR defined: output root default is '/build/tmp' and max_idle_secs default is '15'.
DEBUG: /build/tmp/_bazel_bazel/436badd4919a15958fa3800a4e21074a/external/io_bazel_rules_go/proto/def.bzl:138:3: You no longer need to call proto_register_toolchains(), it does nothing
ERROR: /build/tmp/_bazel_bazel/436badd4919a15958fa3800a4e21074a/external/io_bazel_rules_go/proto/BUILD.bazel:21:1: no such package '@org_golang_google_grpc//': failed to fetch org_golang_google_grpc: 2018/06/23 11:38:14 unrecognized import path "google.golang.org/grpc"
and referenced by '@io_bazel_rules_go//proto:go_grpc'
ERROR: Analysis of target '//source/exe:envoy-static' failed; build aborted: no such package '@org_golang_google_grpc//': failed to fetch org_golang_google_grpc: 2018/06/23 11:38:14 unrecognized import path "google.golang.org/grpc"
INFO: Elapsed time: 197.996s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (248 packages loaded)

@alonlong
Copy link

I have the same issue

@bengol
Copy link

bengol commented Jul 6, 2018

got this error too

1 similar comment
@xiaoma2100
Copy link

got this error too

@agile6v
Copy link

agile6v commented Aug 2, 2018

@yuansx @yuansx @bengol @xiaoma2100

I've solved this problem by setting

git config —system http.proxy "proxy_ip"
git config —system https.proxy "proxy_ip"

Hope to be useful for you.

@stale
Copy link

stale bot commented Sep 1, 2018

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

@stale stale bot added the stale stalebot believes this issue/PR has not been touched recently label Sep 1, 2018
@stale
Copy link

stale bot commented Sep 8, 2018

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.

@stale stale bot closed this as completed Sep 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions that are neither investigations, bugs, nor enhancements stale stalebot believes this issue/PR has not been touched recently
Projects
None yet
Development

No branches or pull requests

6 participants