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 instructions in README not working #3763

Closed
blickly opened this issue Feb 1, 2021 · 2 comments
Closed

bazel build instructions in README not working #3763

blickly opened this issue Feb 1, 2021 · 2 comments

Comments

@blickly
Copy link
Contributor

blickly commented Feb 1, 2021

I'm hitting what look like breakages inside "zlib" when trying to run the bazelisk build command given to build the repo at head:

$  bazelisk clean && bazelisk build --verbose_failures //:compiler_unshaded_deploy.jar
INFO: Analyzed target //:compiler_unshaded_deploy.jar (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /usr/local/google/home/blickly/.cache/bazel/_bazel_blickly/09474313ad65bad59ec9aec61a59c7c6/external/zlib/BUILD.bazel:31:1: undeclared inclusion(s) in rule '@zlib//:zlib':
this rule is missing dependency declarations for the following files included by 'external/zlib/zutil.c':
  '/usr/lib/gcc/x86_64-linux-gnu/10/include/stddef.h'
  '/usr/lib/gcc/x86_64-linux-gnu/10/include/limits.h'
  '/usr/lib/gcc/x86_64-linux-gnu/10/include/syslimits.h'
  '/usr/lib/gcc/x86_64-linux-gnu/10/include/stdarg.h'
Target //:compiler_unshaded_deploy.jar failed to build
INFO: Elapsed time: 0.183s, Critical Path: 0.09s
INFO: 0 processes.
FAILED: Build did NOT complete successfully

This looks like an issue in a dependency, so I'm hoping that this will go away on it's own, but I wanted to check if anyone has seen something like this before? @nreid260, maybe?

@blickly
Copy link
Contributor Author

blickly commented Feb 1, 2021

@nreid260 pinged me that the magic ingredient is the --expunge flag.

So running:

bazelisk clean --expunge

did the trick, in case other folks hit mysterious errors like this.

@blickly blickly closed this as completed Feb 1, 2021
@blickly
Copy link
Contributor Author

blickly commented Feb 1, 2021

From looking through the bazel issue tracker, it looks very likely to me that this is the same as bazelbuild/bazel#9213, which also gave a "undeclared inclusion(s)" error inside "zlib" on an APT-based linux system after an update.

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

1 participant