llvm / llvm-project

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

Ubuntu 20.04 llvm.sh 18 all Fails Due To Unresolvable Interdependencies #99502

Closed biserdan closed 1 month ago

biserdan commented 1 month ago

Error when install llvm-18 over script:

apt-get install -y clang-18 lldb-18 lld-18 clangd-18 clang-tidy-18 clang-format-18 clang-tools-18 llvm-18-dev lld-18 lldb-18 llvm-18-tools libomp-18-dev libc++-18-dev libc++abi-18-dev libclang-common-18-dev libclang-18-dev libclang-cpp18-dev libunwind-18-dev libclang-rt-18-dev libpolly-18-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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-18 : Depends: libclang-cpp18 (>= 1:18.1.8~++20240717045021+3b5b5c1ec4a3) but it is not going to be installed
            Depends: libllvm18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
            Depends: llvm-18-linker-tools (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
            Depends: libclang1-18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
 clang-format-18 : Depends: libclang-cpp18 (>= 1:18.1.8~++20240717045021+3b5b5c1ec4a3) but it is not going to be installed
                   Depends: libllvm18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
 clang-tidy-18 : Depends: libclang-cpp18 (>= 1:18.1.8~++20240717045021+3b5b5c1ec4a3) but it is not going to be installed
                 Depends: libllvm18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
 clang-tools-18 : Depends: libclang-cpp18 (>= 1:18.1.8~++20240717045021+3b5b5c1ec4a3) but it is not going to be installed
                  Depends: libclang1-18 (>= 1:17) but it is not going to be installed
                  Depends: libllvm18 but it is not going to be installed
 clangd-18 : Depends: libclang-cpp18 (>= 1:18.1.8~++20240717045021+3b5b5c1ec4a3) but it is not going to be installed
             Depends: libllvm18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
 libclang-18-dev : Depends: libclang1-18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
 libclang-cpp18-dev : Depends: libclang-cpp18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
 libomp-18-dev : Depends: libomp5-18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
 lld-18 : Depends: libllvm18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
 lldb-18 : Depends: libclang-cpp18 (>= 1:18.1.8~++20240717045021+3b5b5c1ec4a3) but it is not going to be installed
           Depends: liblldb-18 but it is not going to be installed
           Depends: libllvm18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
           Depends: python3-lldb-18 but it is not going to be installed
 llvm-18-dev : Depends: llvm-18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
               Depends: libllvm18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
               Depends: libclang-cpp18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.```

To reproduce:

$ wget https://apt.llvm.org/llvm.sh
$ chmod +x ./llvm.sh
$ sudo ./llvm.sh 18 all

Looks like a recent update was made: https://apt.llvm.org/focal/pool/main/l/llvm-toolchain-18/

dtcxzyw commented 1 month ago

Duplicate of #99453

sylvestre commented 1 month ago

oh crap, i know what is going on, working on it

sylvestre commented 1 month ago

started the builds, should be available in a few hours.sorry about that

phelter commented 1 month ago

@sylvestre - are you fixing the noble 24.04 builds as well? - Much appreciated.

Same reproduce sequence - different distro.

The following packages have unmet dependencies: libllvm18 : Breaks: llvm-18-dev (< 1:18.1.8-4) but 1:18.1.8~++20240717045016+3b5b5c1ec4a3-1~exp1~20240717165119.89 is to be installed

biserdan commented 1 month ago

started the builds, should be available in a few hours.sorry about that

Works for me again on Ubuntu 20.04 with LLVM-18, thanks

colesbury commented 1 month ago

This looks like it's broken again. Python's CI installs LLVM on Ubuntu Jammy (for ThreadSanitizer) via:

wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 18

A few hours ago this installed the llvm-18-dev package. Now it no longer installs it.

Before/After Before: ``` + apt-get install -y clang-18 lldb-18 lld-18 clangd-18 Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: libabsl20210324 libclang-common-18-dev libclang-cpp18 libclang-rt-18-dev libclang1-18 libgrpc++1 libgrpc10 liblldb-18 libllvm18 libprotobuf23 llvm-18 llvm-18-dev llvm-18-linker-tools llvm-18-runtime llvm-18-tools python3-lldb-18 Suggested packages: clang-18-doc wasi-libc llvm-18-doc ``` After: ``` + apt-get install -y clang-18 lldb-18 lld-18 clangd-18 Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: libabsl20210324 libclang-common-18-dev libclang-cpp18 libclang-rt-18-dev libclang1-18 libgrpc++1 libgrpc10 liblldb-18 libllvm18 libprotobuf23 llvm-18-linker-tools python3-lldb-18 Suggested packages: clang-18-doc wasi-libc Recommended packages: llvm-18-dev ```
sylvestre commented 1 month ago

@colesbury this is probably a different bug, please open a new issue

colesbury commented 1 month ago

@sylvestre, thanks I filed https://github.com/llvm/llvm-project/issues/101201