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

building errors #249

Closed
shi27feng opened this issue Jan 10, 2023 · 3 comments
Closed

building errors #249

shi27feng opened this issue Jan 10, 2023 · 3 comments

Comments

@shi27feng
Copy link

Hi all,
I've encountered below errors during the building phase, can someone provide any idea to solve them?
Describe the bug

❯ bazel build //main:all -c dbg
ERROR: /home/shi/.cache/bazel/_bazel_shi/d67db3505541d2ce013bcd42ecc22f58/external/bazel_tools/platforms/BUILD:19:6: in alias rule @bazel_tools//platforms:x86_64: Constraints from @bazel_tools//platforms have been removed. Please use constraints from @platforms repository embedded in Bazel, or preferably declare dependency on https://github.com/bazelbuild/platforms. See https://github.com/bazelbuild/bazel/issues/8622 for details.
ERROR: /home/shi/.cache/bazel/_bazel_shi/d67db3505541d2ce013bcd42ecc22f58/external/bazel_tools/platforms/BUILD:19:6: Analysis of target '@bazel_tools//platforms:x86_64' failed
ERROR: /home/shi/.cache/bazel/_bazel_shi/d67db3505541d2ce013bcd42ecc22f58/external/boost/BUILD.bazel:1326:14: errors encountered resolving select() keys for @boost//:multiprecision
ERROR: Analysis of target '//main:lgshell' failed; build aborted: 
INFO: Elapsed time: 0.066s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 20 targets configured)
    Fetching repository @cmake-3.21.2-linux-x86_64; starting

Thanks in advance!

@shi27feng
Copy link
Author

by the way,
I did this under Ubuntu 22.04, and

❯ bazel --version
bazel 7.0.0-pre.20221212.2
❯ clang++ --version
clang version 15.0.0 (https://github.com/llvm/llvm-project.git 2ac8ce5d563b7f877706eaefe7683fdc9ca5c0ce)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
❯ g++ --version
g++ (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@renau
Copy link
Member

renau commented Jan 10, 2023

The issue is the bazel version. If you have bazelisk (not bazel), it will look at the local directory .bazelversion to pull the correct one.

bazel version
Bazelisk version: v1.10.1
Build label: 5.4.0

It needs a bazel version under 6.

https://bazel.build/install/bazelisk

@shi27feng
Copy link
Author

Hi @renau
Thank you very much for the prompt rely!

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

2 participants