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

Can't install on rocky linux 8.6 #41

Open
JonKohler opened this issue May 24, 2022 · 3 comments
Open

Can't install on rocky linux 8.6 #41

JonKohler opened this issue May 24, 2022 · 3 comments

Comments

@JonKohler
Copy link

As the title suggests, I was unable to easily get this setup on Rocky 8.6. I did the clone, and yarn install and that worked, but trying to get the server up fails almost immediately with the following:

INFO: Call stack for the definition of repository 'llvm_toolchain' which is a llvm_toolchain (rule definition at /root/.cache/bazel/_bazel_root/116cb4b37cb5ae33998452196fe24c90/external/com_grail_bazel_toolchain/toolchain/rules.bzl:24:18):
 - /root/git/schedviz/WORKSPACE:66:1
ERROR: An error occurred during the fetch of repository 'llvm_toolchain':
   Traceback (most recent call last):
        File "/root/.cache/bazel/_bazel_root/116cb4b37cb5ae33998452196fe24c90/external/com_grail_bazel_toolchain/toolchain/internal/configure.bzl", line 101
                _download_llvm_preconfigured(rctx)
        File "/root/.cache/bazel/_bazel_root/116cb4b37cb5ae33998452196fe24c90/external/com_grail_bazel_toolchain/toolchain/internal/llvm_distributions.bzl", line 120, in _download_llvm_preconfigured
                fail(("Failed to detect host OS versi...)))
Failed to detect host OS version: 

Unsupported linux distribution and version: rocky, 8.6
ERROR: no such package '@llvm_toolchain//': Traceback (most recent call last):
        File "/root/.cache/bazel/_bazel_root/116cb4b37cb5ae33998452196fe24c90/external/com_grail_bazel_toolchain/toolchain/internal/configure.bzl", line 101
                _download_llvm_preconfigured(rctx)
        File "/root/.cache/bazel/_bazel_root/116cb4b37cb5ae33998452196fe24c90/external/com_grail_bazel_toolchain/toolchain/internal/llvm_distributions.bzl", line 120, in _download_llvm_preconfigured
                fail(("Failed to detect host OS versi...)))
Failed to detect host OS version: 

Unsupported linux distribution and version: rocky, 8.6
ERROR: no such package '@llvm_toolchain//': Traceback (most recent call last):
        File "/root/.cache/bazel/_bazel_root/116cb4b37cb5ae33998452196fe24c90/external/com_grail_bazel_toolchain/toolchain/internal/configure.bzl", line 101
                _download_llvm_preconfigured(rctx)
        File "/root/.cache/bazel/_bazel_root/116cb4b37cb5ae33998452196fe24c90/external/com_grail_bazel_toolchain/toolchain/internal/llvm_distributions.bzl", line 120, in _download_llvm_preconfigured
                fail(("Failed to detect host OS versi...)))
Failed to detect host OS version: 

Unsupported linux distribution and version: rocky, 8.6
@sabarabc
Copy link
Contributor

Try setting the distribution flag to "clang+llvm-9.0.0-x86_64-pc-linux-gnu.tar.xz" here:

schedviz/WORKSPACE

Lines 66 to 69 in 5fb1be3

llvm_toolchain(
name = "llvm_toolchain",
llvm_version = "9.0.0",
)

The problem is that the llvm_toolchain dependency can't detect your distro, so you have to manually specify the version to download.

@JonKohler
Copy link
Author

Yep that helped, configured it like this and it went ahead.

Looking forward though, is there any dependency chain or something we need to "bump" to have that work automagically? Or perhaps document the supported OS versions, etc?

llvm_toolchain(
    name = "llvm_toolchain",
    llvm_version = "9.0.0",
    distribution = "clang+llvm-9.0.0-x86_64-pc-linux-gnu.tar.xz",
)

@JonKohler
Copy link
Author

It's also worth saying that "out of the box" this repo wont run because of #38 and #40, so this only fixes one issue

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