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

Builds are broken #7

Closed
ghost opened this issue Nov 14, 2018 · 2 comments
Closed

Builds are broken #7

ghost opened this issue Nov 14, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 14, 2018

It appears that using these toolchains is now broken, the issue seems to be related to bazelbuild/bazel#6665

Essentially, when I try to build almost anything, I get the following error:

$ bazel build //basically:anything
ERROR: /home/user/.cache/bazel/_bazel_user/b66616ba40524aac761ec07c06bbfdfc/external/local_config_cc/BUILD:57:1: in cc_toolchain rule @local_config_cc//:cc-compiler-k8: Error while selecting cc_toolchain: Toolchain identifier 'local' was not found, valid identifiers are [clang-linux, clang-darwin]
ERROR: Analysis of target '//core/external/ros2:ros2' failed; build aborted: Analysis of target '@local_config_cc//:cc-compiler-k8' failed; build aborted
INFO: Elapsed time: 0.111s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)

See also bazelbuild/bazel-toolchains#236

@siddharthab
Copy link
Contributor

Should be fixed by 98d700d.

The proper fix in bazel is bazelbuild/bazel@683c302.

@ghost
Copy link
Author

ghost commented Nov 15, 2018

Thanks for the fix. Unfortunately, this now doesn't work with bazel 0.19.0. To get it working I had to reintroduce

default_toolchain {
  cpu: "k8",
  toolchain_identifier: "clang-linux"
}

to the CROSSTOOL.tpl file

Morriar pushed a commit to Morriar/toolchains_llvm that referenced this issue May 28, 2024
* explicitly specify paths to static libraries

* Revert "remove Mac libunwind files from the sysroot (bazel-contrib#6)"

This reverts commit 5c42831.
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