-
-
Notifications
You must be signed in to change notification settings - Fork 265
Open
Description
The release info for example at https://github.com/bazel-contrib/toolchains_llvm/releases/tag/v1.6.0 gives an example use of llvm version 16.0.0:
bazel_dep(name = "toolchains_llvm", version = "1.6.0")
# Configure and register the toolchain.
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm")
llvm.toolchain(
llvm_version = "16.0.0",
)
use_repo(llvm, "llvm_toolchain")
# use_repo(llvm, "llvm_toolchain_llvm") # if you depend on specific tools in scripts
register_toolchains("@llvm_toolchain//:all")
However, if I try it on my machine, the build process fails as follows:
[7 / 10] [Prepa] Expanding template external/toolchains_llvm++llvm+llvm_toolchain/module-x86_64-linux.modu
ERROR: /home/filmil/code/bazel-experiments/llvm/BUILD.bazel:1:10: Compiling hello.cc failed: (Exit 127): cc_wrapper.sh failed: error executing CppCompile command (from target //:hello) external/toolchains_llvm++l
lvm+llvm_toolchain/bin/cc_wrapper.sh -U_FORTIFY_SOURCE '--target=x86_64-unknown-linux-gnu' -U_FORTIFY_SOURCE -fstack-protector -fno-omit-frame-pointer -fcolor-diagnostics ... (remaining 30 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/toolchains_llvm++llvm+llvm_toolchain_llvm/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
Target //:hello failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 107.930s, Critical Path: 0.39s
INFO: 9 processes: 9 internal.
ERROR: Build did NOT complete successfully
⏎
Now, I know that this is easily solved. But perhaps, move past the v 16.0.0 to avoid this one more papercut to have a more out-of-the-box experience?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels