-
Notifications
You must be signed in to change notification settings - Fork 985
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
ERROR: no such package '@llvm_toolchain//': Unknown LLVM release: clang+llvm-10.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz #8072
Comments
This issue has been raised by others on Discord as well, there's no LLVM v10 for ubuntu 16.04. So, one has to either upgrade their OS or change LLVM version in workspace file, to v8/v9 in: Line 31 in 53a8c3e
Preston planned to fix that (probably by sticking with LLVM that corresponds to some LTS version of OS). |
The work around above is correct. For whatever reason, LLVM didn't upload a distro for ubuntu 16. |
I'm not even on Ubuntu. Just found this: bazel-contrib/toolchains_llvm#53 |
I have Ubuntu 20 on WSL and the bazel supported version 18.04 (LTS) 16.04 (LTS) . Should i downgrade? there seems the only way forward |
There is a fix for this upstream bazel-contrib/toolchains_llvm@5f82830. PR #8839 will update this dependency and unblock building on arch. |
@prestonvanloon this happens again in Ubuntu 22.04, the ifs sequence in bazel-contrib/toolchains_llvm@5f82830#diff-e02b67434274479441be96f58b4196abb68988413811199f7a254f45bfa29888 does not handle specifically 22.04 and defaults to 16.04. |
Also, the workaround of changing the version to 9 in WORKSPACE does not work on Ubuntu 22.04. A workaround that works is to edit /etc/os-release and change where it says "22" to "20". Also, it seems this has been fixed in the head of grailbio/bazel-toolchain https://github.com/grailbio/bazel-toolchain/blob/master/toolchain/tools/llvm_release_name.py#L60-L61 |
With this patch you can use a newer commit from bazel, and then it will work in Ubuntu 22.04: |
🐞 Bug Report
Description
Bazel fails to initialize the toolchain on Archlinux with
Unknown LLVM release
.Has this worked before in a previous version?
Yes, the alpha and rc builds used to work a couple of months ago. I don't recall an exact version though.
🔬 Minimal Reproduction
🔥 Error
🌍 Your Environment
Operating System:
What version of Prysm are you running? (Which release)
The text was updated successfully, but these errors were encountered: