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

Error in building packages #29

Open
Basil-3 opened this issue Mar 1, 2019 · 5 comments
Open

Error in building packages #29

Basil-3 opened this issue Mar 1, 2019 · 5 comments

Comments

@Basil-3
Copy link

Basil-3 commented Mar 1, 2019

After cloning, I ran bazel command to build project and I ran into following errors:
Starting local Bazel server and connecting to it...
ERROR: /home/basil/.cache/bazel/_bazel_basil/c7fbbb4ed84ea4e033d6d8801ef24b13/external/protobuf_git/BUILD:597:1: Traceback (most recent call last):
File "/home/basil/.cache/bazel/_bazel_basil/c7fbbb4ed84ea4e033d6d8801ef24b13/external/protobuf_git/BUILD", line 597
internal_gen_well_known_protos_java(srcs = WELL_KNOWN_PROTOS)
File "/home/basil/.cache/bazel/_bazel_basil/c7fbbb4ed84ea4e033d6d8801ef24b13/external/protobuf_git/protobuf.bzl", line 266, in internal_gen_well_known_protos_java
Label(("%s//protobuf_java" % REPOSITOR...))
File "/home/basil/.cache/bazel/_bazel_basil/c7fbbb4ed84ea4e033d6d8801ef24b13/external/protobuf_git/protobuf.bzl", line 266, in Label
REPOSITORY_NAME
builtin variable 'REPOSITORY_NAME' is referenced before assignment.
ERROR: /home/basil/.cache/bazel/_bazel_basil/c7fbbb4ed84ea4e033d6d8801ef24b13/external/protobuf_git/BUILD:101:1: Target '@protobuf_git//:windows' contains an error and its package is in error and referenced by '@protobuf_git//:protobuf'
ERROR: /home/basil/.cache/bazel/_bazel_basil/c7fbbb4ed84ea4e033d6d8801ef24b13/external/protobuf_git/BUILD:101:1: Target '@protobuf_git//:windows_msvc' contains an error and its package is in error and referenced by '@protobuf_git//:protobuf'
ERROR: /home/basil/.cache/bazel/_bazel_basil/c7fbbb4ed84ea4e033d6d8801ef24b13/external/protobuf_git/BUILD:101:1: Target '@protobuf_git//:android' contains an error and its package is in error and referenced by '@protobuf_git//:protobuf'
ERROR: /home/basil/.cache/bazel/_bazel_basil/c7fbbb4ed84ea4e033d6d8801ef24b13/external/protobuf_git/BUILD:101:1: Target '@protobuf_git//:windows' contains an error and its package is in error and referenced by '@protobuf_git//:protobuf'
ERROR: /home/basil/.cache/bazel/_bazel_basil/c7fbbb4ed84ea4e033d6d8801ef24b13/external/protobuf_git/BUILD:101:1: Target '@protobuf_git//:windows_msvc' contains an error and its package is in error and referenced by '@protobuf_git//:protobuf'
ERROR: /home/basil/Desktop/GSOC2019/grpc-httpjson-transcoding/repositories.bzl:47:9: Target '@protobuf_git//:protobuf' contains an error and its package is in error and referenced by '//external:protobuf'
ERROR: Analysis of target '//test:request_message_translator_test' failed; build aborted: Analysis failed
INFO: Elapsed time: 4.880s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (15 packages loaded, 87 targets configured)
Fetching @com_google_absl; fetching
Fetching @googleapis_git; fetching
Fetching @googletest_git; fetching

@qiwzhang
Copy link
Member

qiwzhang commented Mar 1, 2019

What bazel version are you using?

@Basil-3
Copy link
Author

Basil-3 commented Mar 2, 2019

0.23.0

@qiwzhang
Copy link
Member

qiwzhang commented Mar 4, 2019

#30

@Basil-3
Copy link
Author

Basil-3 commented Mar 10, 2019

I updated both files and now I got this error:

bazel build //...

Starting local Bazel server and connecting to it...
INFO: Analysed 31 targets (29 packages loaded, 1195 targets configured).
INFO: Found 31 targets...
ERROR: /home/basil/.cache/bazel/_bazel_basil/c7fbbb4ed84ea4e033d6d8801ef24b13/external/protobuf_git/BUILD:120:1: C++ compilation of rule '@protobuf_git//:protobuf' failed (Exit 1) gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer -g0 -O2 ... (remaining 39 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
gcc: error: unrecognized command line option '-Wthread-safety'
gcc: error: unrecognized command line option '-Wself-assign'
gcc: error: unrecognized command line option '-fcolor-diagnostics'
INFO: Elapsed time: 68.367s, Critical Path: 0.95s
INFO: 0 processes.
FAILED: Build did NOT complete successfully

@Vedarth
Copy link

Vedarth commented Mar 18, 2019

I am facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants