llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.06k stars 11.59k forks source link

Unable to install llvm 19 with apt #109276

Open glebpom opened 2 days ago

glebpom commented 2 days ago

I start getting the following error while trying to install llvm 19 on debian:

 llvm-19-dev : Depends: libllvm19 (>= 1:19.1.0) but 1:19.1.0~++20240919064958+64075837b553-1~exp1~20240919065122.43 is to be installed
root@5338595196ce:/# apt install libllvm19
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libllvm19 is already the newest version (1:19.1.0~++20240919064958+64075837b553-1~exp1~20240919065122.43).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@5338595196ce:/# apt-cache policy libllvm19
libllvm19:
  Installed: 1:19.1.0~++20240919064958+64075837b553-1~exp1~20240919065122.43
  Candidate: 1:19.1.0~++20240919064958+64075837b553-1~exp1~20240919065122.43
  Version table:
 *** 1:19.1.0~++20240919064958+64075837b553-1~exp1~20240919065122.43 500
        500 http://apt.llvm.org/bookworm llvm-toolchain-bookworm-19/main arm64 Packages
        100 /var/lib/dpkg/status
glebpom commented 2 days ago

I'm not sure if it's really a duplicate. Five hours ago, building the proposed fix was started, and the versions here are different.

vient commented 2 days ago

Yeah, I noticed after that that your versions are latest. @sylvestre seems that 19 packages have another issue.

firewave commented 2 days ago

This is a new issue. It was still working yesterday (or maybe even just a few hours ago).

+ apt-get install -y clang-19 lldb-19 lld-19 clangd-19
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 clang-19 : Depends: libclang-cpp19 (>= 1:19.1.0~++20240919065040+64075837b553) but it is not going to be installed
            Depends: libllvm19 (>= 1:19.1.0) but 1:19.1.0~++20240919065040+64075837b553-1~exp1~20240919065053.40 is to be installed
            Depends: llvm-19-linker-tools (= 1:19.1.0~++20[240](https://github.com/danmar/cppcheck/actions/runs/10942033159/job/30378066407?pr=6812#step:6:241)919065040+64075837b553-1~exp1~20240919065053.40) but it is not going to be installed
            Depends: libclang1-19 (= 1:19.1.0~++20240919065040+64075837b553-1~exp1~20240919065053.40) but it is not going to be installed
            Recommends: llvm-19-dev but it is not going to be installed
 clangd-19 : Depends: libclang-cpp19 (>= 1:19.1.0~++20240919065040+64075837b553) but it is not going to be installed
             Depends: libllvm19 (>= 1:19.1.0) but 1:19.1.0~++20240919065040+64075837b553-1~exp1~20240919065053.40 is to be installed
 lld-19 : Depends: libllvm19 (>= 1:19.1.0) but 1:19.1.0~++20240919065040+64075837b553-1~exp1~20240919065053.40 is to be installed
 lldb-19 : Depends: libclang-cpp19 (>= 1:19.1.0~++20240919065040+64075837b553) but it is not going to be installed
           Depends: liblldb-19 (>= 1:19.1.0) but it is not going to be installed
           Depends: libllvm19 (>= 1:19.1.0) but 1:19.1.0~++20240919065040+64075837b553-1~exp1~20240919065053.40 is to be installed
           Depends: python3-lldb-19 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
mccolljr commented 2 days ago

I can confirm that I am also seeing this problem. It started some time in the last 12-18 hours, as I was able to do this successfully yesterday evening.

From a docker build:

4.791 + apt-get install -y clang-19 lldb-19 lld-19 clangd-19
4.817 Reading package lists...
5.584 Building dependency tree...
5.746 Reading state information...
5.800 Some packages could not be installed. This may mean that you have
5.800 requested an impossible situation or if you are using the unstable
5.800 distribution that some required packages have not yet been created
5.800 or been moved out of Incoming.
5.800 The following information may help to resolve the situation:
5.800 
5.800 The following packages have unmet dependencies:
5.858  clang-19 : Depends: libclang-cpp19 (>= 1:19.1.0~++20240919065040+64075837b553) but it is not going to be installed
5.858             Depends: libllvm19 (>= 1:19.1.0) but 1:19.1.0~++20240919065040+64075837b553-1~exp1~20240919065053.40 is to be installed
5.858             Depends: llvm-19-linker-tools (= 1:19.1.0~++20240919065040+64075837b553-1~exp1~20240919065053.40) but it is not going to be installed
5.858             Depends: libclang1-19 (= 1:19.1.0~++20240919065040+64075837b553-1~exp1~20240919065053.40) but it is not going to be installed
5.858             Recommends: llvm-19-dev but it is not going to be installed
5.858  clangd-19 : Depends: libclang-cpp19 (>= 1:19.1.0~++20240919065040+64075837b553) but it is not going to be installed
5.858              Depends: libllvm19 (>= 1:19.1.0) but 1:19.1.0~++20240919065040+64075837b553-1~exp1~20240919065053.40 is to be installed
5.860  lld-19 : Depends: libllvm19 (>= 1:19.1.0) but 1:19.1.0~++20240919065040+64075837b553-1~exp1~20240919065053.40 is to be installed
5.860  lldb-19 : Depends: libclang-cpp19 (>= 1:19.1.0~++20240919065040+64075837b553) but it is not going to be installed
5.860            Depends: liblldb-19 (>= 1:19.1.0) but it is not going to be installed
5.860            Depends: libllvm19 (>= 1:19.1.0) but 1:19.1.0~++20240919065040+64075837b553-1~exp1~20240919065053.40 is to be installed
5.860            Depends: python3-lldb-19 but it is not going to be installed
5.864 E: Unable to correct problems, you have held broken packages.

Attempting installation with:

wget https://apt.llvm.org/llvm.sh && \
    chmod u+x llvm.sh && \
    ./llvm.sh 19
sylvestre commented 1 day ago

regressed here: https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/commit/42f059d5a11da9cf30494c5ba2728eb749cc4127

I think I have a fix for this one.

jthomas-dd commented 1 day ago

Does anyone have a workaround for this of any kind yet?

sylvestre commented 1 day ago

it should be fixed now on most of the distros

glebov-andrey commented 1 day ago

This appears to still be broken at least for Debian 10 (Buster)

ChrisGreenaway commented 1 day ago

Works on Debian bookworm. but not Debian bullseye.

firewave commented 21 hours ago

Can confirm that it is working again with LLVM 19 on ubuntu 22.04.

sylvestre commented 21 hours ago

Thanks for the confirmations.

ChrisGreenaway commented 20 hours ago

Works on debian bullseye.