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

build cockroach from source failed #125171

Closed
ysbarney opened this issue Jun 6, 2024 · 4 comments
Closed

build cockroach from source failed #125171

ysbarney opened this issue Jun 6, 2024 · 4 comments
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-community Originated from the community

Comments

@ysbarney
Copy link

ysbarney commented Jun 6, 2024

Starting local Bazel server and connecting to it...
WARNING: --enable_bzlmod is set, but no MODULE.bazel file was found at the workspace root. Bazel will create an empty MODULE.bazel file. Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel. For more details, please refer to bazelbuild/bazel#18958.
INFO: Analyzed target //pkg/cmd/dev:dev (123 packages loaded, 12238 targets configured).
INFO: Found 1 target...
Target //pkg/cmd/dev:dev up-to-date:
bazel/bin/pkg/cmd/dev/dev/dev
INFO: Elapsed time: 188.787s, Critical Path: 87.01s
INFO: 22 processes: 6 internal, 16 processwrapper-sandbox.
INFO: Build completed successfully, 22 total actions
which: no md5 in (/home/kunlun/.cargo/bin:/opt/rh/devtoolset-10/root/usr/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/kunlun/.local/bin:/home/kunlun/bin:/home/kunlun/Downloads/bin)

=== RUNNING DOCTOR CHECKS ===

DOCTOR >> I can configure your .bazelrc.user to build either in the dev configuration or the crosslinux configuration.
DOCTOR >> The former uses your host toolchain, while the latter downloads and uses our production cross-toolchains.
DOCTOR >> Which config you want to use (dev,crosslinux)? [dev] > crosslinux
WARNING: Build options --//build/toolchains:cross_flag, --//build/toolchains:nogo_disable_flag, --platforms, and 1 more have changed, discarding analysis cache (this can be expensive, see https://bazel.build/advanced/performance/iteration-speed).
ERROR: /home/test/Downloads/cockroach/build/bazelutil/BUILD.bazel:6:14: configurable attribute "targets" in //build/bazelutil:test_nogo_configured doesn't match this configuration: must use exactly one of --config lintonbuild or --config nolintonbuild explicitly

This instance of //build/bazelutil:test_nogo_configured has configuration identifier 13782d8. To inspect its configuration, run: bazel config 13782d8.

For more help, see https://bazel.build/docs/configurable-attributes#faq-select-choose-condition.

ERROR: Analysis of target '//build/bazelutil:test_nogo_configured' failed; build aborted
INFO: Elapsed time: 2.062s, Critical Path: 0.33s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully

how to fix this error??

Jira issue: CRDB-39285

@ysbarney ysbarney added the C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. label Jun 6, 2024
Copy link

blathers-crl bot commented Jun 6, 2024

Hi @ysbarney, please add branch-* labels to identify which branch(es) this C-bug affects.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

Copy link

blathers-crl bot commented Jun 6, 2024

Hello, I am Blathers. I am here to help you get the issue triaged.

It looks like you have not filled out the issue in the format of any of our templates. To best assist you, we advise you to use one of these templates.

I was unable to automatically find someone to ping.

If we have not gotten back to your issue within a few business days, you can try the following:

  • Join our community slack channel and ask on #cockroachdb.
  • Try find someone from here if you know they worked closely on the area and CC them.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@blathers-crl blathers-crl bot added O-community Originated from the community X-blathers-untriaged blathers was unable to find an owner labels Jun 6, 2024
@ysbarney
Copy link
Author

ysbarney commented Jun 6, 2024

use master branch

@yuzefovich
Copy link
Member

It sounds like you have both --config lintonbuild and --config nolintonbuild in .bazelrc.user file - you should remove one of them. Perhaps just remove that file altogether and run ./dev doctor again.

@yuzefovich yuzefovich removed the X-blathers-untriaged blathers was unable to find an owner label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-community Originated from the community
Projects
None yet
Development

No branches or pull requests

2 participants