You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The documentation instructs the user how to install XLS binaries on an Ubuntu system with apt. However, it's entirely unclear to me how to do anything with it since XLS is closely tied to bazel. When I tried to build xls/modules/zstd/BUILD with bazel after installing the binaries, bazel tried to build XLS from source
To Reproduce
Steps to reproduce the behavior:
docker run -it -v.:/work ubuntu:22.04
Follow binary installation steps in the docs
bazel-7.4.1 build in xls/modules/zstd/ which is probably an incomplete or incorrect command
Expected behavior
Either the command builds the outputs of xls/modules/zstd/BUILD or a different kind of command is recommended in the docs that does, maybe one with arguments for specifying where the binaries are?
Actual behavior
The build starts pulling llvm sources even though there's valid XLS binaries in PATH
Unfortunately I don't think that's really supported right now. If you want to use prebuilts you'd need to patch the xls/build_rules/xls_toolchains.bzl file and change all the _DEFAULT_..._TARGETs to point to the prebuilt binaries. You'll also need to put the binaries in a place that bazel can see them so under the XLS tree would be eaisest.
However, bazel caching means that once its built once subsequent rebuilds will be quite quick so you might just want to stay building from source.
(NB Bazel does have some support for doing things like this in a somewhat elegant manner called toolchains but we don't support those yet).
Would be nice to have a notice in the docs that you can't really use xls the intended way as a result
Since I'm not on a Bazel-supported Linux distribution (NixOS), Bazel explicitly rejects a source build on my machine. See #1862, I might try the out-of-tree workaround repo
Describe the bug
The documentation instructs the user how to install XLS binaries on an Ubuntu system with apt. However, it's entirely unclear to me how to do anything with it since XLS is closely tied to bazel. When I tried to build
xls/modules/zstd/BUILD
with bazel after installing the binaries, bazel tried to build XLS from sourceTo Reproduce
Steps to reproduce the behavior:
docker run -it -v.:/work ubuntu:22.04
bazel-7.4.1 build
inxls/modules/zstd/
which is probably an incomplete or incorrect commandExpected behavior
Either the command builds the outputs of
xls/modules/zstd/BUILD
or a different kind of command is recommended in the docs that does, maybe one with arguments for specifying where the binaries are?Actual behavior
The build starts pulling llvm sources even though there's valid XLS binaries in
PATH
Environment (this can be helpful for troubleshooting):
cc @QuantamHD
The text was updated successfully, but these errors were encountered: